Temperaturmessung mit ESP32 und LU90614 IRTempSensor
LU90614 Uart Communication Protocol
1. Baud rate 9600, data bit 8, stop bit 1, no parity check;
2. The set parameters can be saved after power failure;
3. Temperature mode sending command: 0xFA 0xC5 0xBF
4. Material temperature mode sending command: 0xFA 0xC6 0xC0
5. Start measuring temperature and upload temperature command 0xFA 0xCA 0xC4
6. Temperature value return command:
One packet of data: [header] [instruction] [ DataH ] [DataL] [ reserved byte1] [ reserved byte 2 ] [reserved byte 3] [ reserved bit 4 ] [check byte]
header:
0xFE, which is a fixed header;
Instruction:
0xAA, this is the material temperature mode the unit is Celsius 0xAC=Body!
DataH
0xnnis the integer of material temperature
DataL
0xnnis the decimal place
7. Example 1 (measuring the current " ambient"temperature):
Send: →
0xFA 0xC6 0xC0(not sent if the current temperature measurement mode) 0xFA 0xCA 0xC4
Return: ←
0xFE 0xAA 0x28 0x1E 0x00 0x00 0x00 0x00 0xEE
Analysis of returned data: 0x28h=40d 0x1E=30d =>so the current material temperature is 40.30 °C.
0xFE + 0xAA + 0x28 + 0x1E + 0 + 0 + 0 +0 =0x1EE
7. Example 2 (measuring the current "body" temperature):
Send: →
0xFA 0xC5 0xBF 0xFA 0xCA 0xC4
Return: ←
0xFE 0xAC 0x28 0x1E 0x00 0x00 0x00 0x00 0xF0
Analysis of returned data: the current temperature is 40.3 °C.
Quelltext TestProgramm:
Quellcode von ESP32_LU90614_Debug.ino