MLX90614 infrared thermometer sensor add to dashboard


#1

Hello

We are having problems adding the MLX90614 infrared thermometer sensor on to the cayenne dashboard.
We successfully connected our arduino uno to the dashboard but cant seem to be able to add the MLX90614 sensor; please it uses the adafruit library and is connected to A4 and A5 pins.

here is a link for the sensor ::

Appreciate any help


#2

@wassimmir_82 welcome to cayenne community.
can you provide more detail on which device you are using to connect to cayenne.
if using a wemos D1 check this link http://www.esp8266learning.com/mlx90614-infrared-thermometer-example.php
if you can get this setup then its easy to add MLX905614 to cayenne.


#3

yes we are using arduino uno and the same setup as the link you provided and the same sketch code.
We are using A4 and A5 as shown on this link / picture

how would we proceed to add it to cayenne ?


#4

have a look at this article to connect your arduino to cayenne using a esp8266 shield.

once connected use:

CAYENNE_OUT(1)
{
	Cayenne.virtualWrite(1, x);
}

where x stores the value from the sensor.


#5

already using Ethernet shield and the board is connected to cayenne…


#6

you have connected to cayenne using MQTT or regular connection?


#7

regular connection


#8

add this to your code and then add a custom value widget with virtual pin 1.

CAYENNE_OUT(V1)
{
Cayenne.virtualWrite(V1, x);
}


#9

hi @wassimmir_82,

Were you able to get going here? Thanks for all your help @shramiksalgaonkar!

~Benny


#10

no we are having trouble with the Cayenne.virtualWrite(V1, x); statement
if someone would like to help would appreciate


#11

@wassimmir_82 what trouble??


#12

@wassimmir_82 any luck?