Power supply voltage: 3-5 volts
Power supply current: 7mA
Wiring:
Red - VCC
Black --- GND
Yellow --- RC (serial UART TTL-Rx/I2C -- SCL)
White --- TD (serial UART TTL-Tx/I2C -- SCL)
The module defaults to serial UART mode and automatically outputs data. When the PS solder joints on the PCB are soldered, it is in I2C mode.
1. Internal registers of the module:
0x00(读写) |
器件ID地址 |
1~254;0为广播地址;默认为ID:0xA4,与8位IIC地址相同,所以该地址必须为2的倍数。 |
0x01(读写) |
波特率设置 |
0~7:2400,4800,9600,19200,38400,57600,115200,230400 |
0x02(读写) |
更新速率 |
0:1hz;1:2hz;2:5hz;3:10hz |
0x03(读写) |
输出模式 |
0:连续输出;1:查询输出 |
0x04(读写) |
输出格式 |
0:十六进制;1:字符; |
0x05(读写) |
保存设置 |
0x55:保存当前配置;0xAA:恢复出厂设置 |
0x06(读写) |
TO_off温度偏移 |
0-255,默认值100=0偏移,TO补偿=(TO_off-100)/10 |
0x07(读写) |
E发射率 |
1~100(对应0.01~1.00) |
0x08(读) |
TO(目标温度)高8位 |
0~255 |
0x09(读) |
TO(目标温度)低8位 |
0~255 |
0x0a(读) |
TA(环境温度)高8位 |
0~255 |
0x0b(读) |
TA(环境温度)低8位 |
0~255 |
0x0c(读) |
BO高8位 |
0~255 额温转换体温值高8位 |
0x0d(读) |
BO低8位 |
0~255 额温转换体温值低8位 |
0x0e(读写) |
芯片型号 |
0~3 |
0x0f(读) |
固件信息 |
0~255 |
串口功能(发送接收模式):
帧描述:
地址 |
功能码 |
数据 |
校验和 |
1字节 |
1字节 |
N字节 |
前字节校验和低8位 |
2、模块支持功能码:
写单个寄存器 |
0x06 |
读寄存器 |
0x03 |
3、模块响应时间
波特率=9600 |
约为10ms |
波特率=115200 |
约为1ms |
5、模块事例:
写寄存器,配置寄存器。
配置查询模式输出,主站发送帧为:A4 06 03 01 AE (十六进制0x01=查询模式输出)
A4 |
06 |
03 |
01 |
AE |
器件地址 |
写功能码 |
寄存器 |
数据 |
校验和低8位 |
配置波特率为115200,主站发送帧为:A4 06 01 06 B1 (十六进制0x06 = 115200)
A4 |
06 |
01 |
06 |
D9 |
地址 |
写功能码 |
寄存器 |
数据 |
校验和低8位 |
模块响应帧为:A4 06 01 06 B1 与主站发送帧相同,表示配置成功
配置发射率为0.98,主站发送帧为:A4 06 07 62 13 (十六进制0x62 = 十进制98)
A4 |
06 |
07 |
62 |
13 |
器件地址 |
写功能码 |
寄存器 |
数据 |
校验和低8位 |
模块响应帧为:A4 06 07 62 13 与主站发送帧相同,表示配置成功
注:设置发射率耗时较多
配置温度偏移+1度,主站发送帧为:A4 06 06 6E 1E (十六进制0x6E= 十进制110)
A4 |
06 |
06 |
6E |
1E |
器件地址 |
写功能码 |
寄存器 |
数据 |
校验和低8位 |
配置温度偏移-1度,主站发送帧为:A4 06 06 5A 0A (十六进制0x5A= 十进制90)
A4 |
06 |
06 |
5A |
0A |
器件地址 |
写功能码 |
寄存器 |
数据 |
校验和低8位 |
所有配置如果需要掉电保存,需要发送掉电保存指令A4 06 05 55 04
读寄存器,主站发送帧为:A4 03 07 07 B5
A4 |
03 |
07 |
07 |
B5 |
器件地址 |
读功能码 |
起始寄存器 |
寄存器数量 |
校验和低8位 |
模块响应帧为:A4 03 07 07 62 0C EB 0C 3F 0E 20 87
A4 |
03 |
07 |
07 |
62 0C EB 0C 3F 0E 20 |
87 |
器件地址 |
读功能码 |
起始寄存器 |
寄存器数量 |
E TO TA BO |
校验和低8位 |
Frame resolution:
The starting register 07 starts from the emissivity register, and the number of registers 7 is 07 08 09 0A 0B 0C 0D. The data of these 7 registers is sequentially output
Emissivity
Target temperature
Environmental temperature
Forehead temperature conversion to body temperature
Serial port data continuous output:
a. Send read data frame: Set the starting register and the number of registers.
b. Set the output mode to continuous output mode, that is, write 1 to register 03.
Serial port data query output:
a. Set the output mode to query mode, that is, write 0 to register 03.
b. Send read data frame: Set the starting register and the number of registers.
Note: The output format of the data is determined by the read data frame. The continuous/query mode is determined by register 03.
Frontal temperature compensation:
Changing the value of register 06 can compensate for the forehead temperature. If the target measured value is greater than the target actual value, the register value can be reduced, and vice versa, the register value can be increased.
IIC Function:
This function requires soldering PS solder joints. The IIC address is the 00 register value, defaulting to A4. The IIC rate needs to be less than 400K.
The number of registers written per module is 1. The writing sequence is as follows, and after sending the device address, it should take more than 4us time
start |
address |
ACK |
reg |
ACK |
data |
ACK |
stop |
起始 |
0XA4 |
模块 |
0x07 |
模块 |
0x57 |
模块 |
结束 |
模块支持多寄存器连读,读时序如下,在发送第二个器件地址后需延时16us
start |
address |
ACK |
reg |
ACK |
address|1 |
ACK |
datas |
NACK |
stop |
起始 |
0XA4 |
模块 |
0x07 |
模块 |
0xA5 |
模块 |
N datas |
模块 |
结束 |
6. Serial port upper computer testing software
Module size diagram
Previous Article:
Single point sensorNext Article:
No More!Copyright © 2005-2023Shenzhen Lites Electronic Technology Co., Ltd All Rights Reserved Record number: Guangdong ICP backup2024178703-1