Hi All,
I am currently trying to use i2c to read data from the MLX90614 IR Thermometer.
data sheet here: http://www.sparkfun.com/datasheets/Sensors/Temperature/SEN-09570-datasheet-3901090614M005.pdf
I have been trawling through the datasheet and PICAXE i2c tutorial materials but withour success.
My code currently looks like this:
' IR thermometer test code
' I2C bus comms
' 100Khz 7bit address
thermoread:
do
i2cslave %10100000,i2cslow,i2cword 'sets up i2c addressing for MLX90614(Slave address0x5A)
readi2c $07,(w0) 'reading from RAM 007h, returning 16 bit value
sertxd (#w0,13,10)
pause 1000
loop
All I keep getting is a return value of 255 which I think is default when things aren't working.
Has anyone had any success with this device or could point out where I am going wrong?
Thanks
Darryl
I am currently trying to use i2c to read data from the MLX90614 IR Thermometer.
data sheet here: http://www.sparkfun.com/datasheets/Sensors/Temperature/SEN-09570-datasheet-3901090614M005.pdf
I have been trawling through the datasheet and PICAXE i2c tutorial materials but withour success.
My code currently looks like this:
' IR thermometer test code
' I2C bus comms
' 100Khz 7bit address
thermoread:
do
i2cslave %10100000,i2cslow,i2cword 'sets up i2c addressing for MLX90614(Slave address0x5A)
readi2c $07,(w0) 'reading from RAM 007h, returning 16 bit value
sertxd (#w0,13,10)
pause 1000
loop
All I keep getting is a return value of 255 which I think is default when things aren't working.
Has anyone had any success with this device or could point out where I am going wrong?
Thanks
Darryl