28040 Parallax Inc, 28040 Datasheet - Page 7

Board Mount Temperature Sensors Infrared Thermometer 90 Deg Mod MLX90614

28040

Manufacturer Part Number
28040
Description
Board Mount Temperature Sensors Infrared Thermometer 90 Deg Mod MLX90614
Manufacturer
Parallax Inc
Datasheet

Specifications of 28040

Temperature Threshold
+ 380 C
Package / Case
SIP-5
Digital Output - Number Of Bits
16 bit
Supply Voltage (max)
5 V
Description/function
Temperature Sensor
Maximum Operating Temperature
+ 70 C
Minimum Operating Temperature
0 C
Supply Current
20 mA
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
"A"
SEROUT pin, baudrate, [0, "!TEMA", slaveaddr, alarmlowbyte, alarmhighbyte]
The MLX90614 module has an alarm pin shown by the silkscreen ALR. This pin is high when the alarm
value temperature is exceeded. Use the "A" command to send the module new sensor alarm settings. No
data will be serially transmitted back from the module when the alarm value is set. The new alarm value
takes effect immediately, however power must be cycled on the MLX90614 module in order for the new
alarm settings to take effect in the EEPROM ($20).
Example:
Suppose you want to set the alarm for 373 K (100 °C). The sensor functions in units of 0.02 counts/K.
For example, 373 / 0.02 = 18,650 counts. This value is sent to the module in two pieces - alarmlowbyte
and alarmhighbyte. When 100 °C is exceeded the ALR pin will be high.
"S"
SEROUT pin, baudrate, [0,"!TEMS",slaveaddress]
The "S" command will stop continuous temperature data from the module. To change the startup default
a “S” can written into the high byte of the slave address EEPROM ($2E).
Example:
The example above sends a stop request at the slave address ($5A) to quit reading data.
"!ID" Get the Version Number
SEROUT pin, baudrate, [0,"!ID", slaveaddress]
The "ID" command will cause the module to return a 3 byte version number.
Example:
By using "ID" the module will return 3 bytes. Byte 1 is the Major number, Byte 2 is the decimal point and
Byte 3 is the Minor number. These PBASIC statements may be placed at the start of any PBASIC program
to detect module response.
Copyright © Parallax Inc.
Alarm
Alarm = 18650
SEROUT pin, baudrate,[0,"!TEMA",$5A,alarm.lowbyte,alarm.highbyte]
SEROUT pin, baudrate,[0,"!TEMS",$5A]
LOW 1:PAUSE 5:INPUT 1:PAUSE 50
SEROUT pin, baudrate, [0,"!ID",$5A]
SERIN pin, baudrate, 500, OVER, [STR VERSION\3]
GOTO START
OVER: DEBUG "no slave found"
START: DEBUG "version is ",STR VERSION\3
Set Sensor Alarm
Stop Sensor Continuous Data
VAR
WORD
MLX90614 Infrared Thermometer Modules (#28040-28042)
'reset module
'read ID
v2.0 11/18/2008 Page 7 of 8

Related parts for 28040