Mxl 90614 sensor

hi
is it possible to have the choice in devices to have the infrared sensor mxl90614…
that would be great.

Hey that device looks cool…
May copy this to new ideas department…

I would like to see (in general) a Generic I2c input option on the add device menu. It would be not that much more complicated to:
Add Sensor > Generic > I2c and fill out the address and register(s) of interest into an xbit variable. This would save repeating set up of a lot of ‘one off’ gadgets. Your team your side would soon see ‘what was hot’ and copy and paste it as a common device into the drop down pathway for others to follow…
~ Andrew

I created this sample below for the Adafruit MLX90614 using Blynk and Particle integration. To use Cayenne I’m beginning to explore Node Red similar to the post here: Using Node-RED as a Local Fallback Server

#include <Adafruit_MLX90614.h>
/*
mlx.readAmbientTempC()
mlx.readObjectTempC()
mlx.readAmbientTempF()
mlx.readObjectTempF()
*/

#include <blynk.h>

char auth[] = "<Auth token from Blynk>";

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
    Serial.begin(9600);
    delay(5000); // Allow board to settle
     Blynk.begin(auth);
     mlx.begin();
}


BLYNK_READ(V1){
     int objtemp = mlx.readObjectTempF();
     Blynk.virtualWrite(V1,objtemp);
     delay(100);
}

BLYNK_READ(V2){
     int ambtemp = mlx.readAmbientTempF();
     Blynk.virtualWrite(V2,ambtemp);
     delay(100);
}

void loop()
{
    Blynk.run();
}

Hope it helps.

1 Like

Thanks for posting it @iotdevicechain. Let us know how you progress with Node Red + Cayenne :slight_smile:
-Benny

Showing some love to Cayenne below after redoing the project. Along with some widgets I was able to map the Adafruit MLX90614 readouts to the virtual pins.

#include "cayenne-particle.h"
#include <Adafruit_MLX90614.h>
/*mlx.readAmbientTempC()
mlx.readObjectTempC()
mlx.readAmbientTempF()
mlx.readObjectTempF()*/


char auth[] = "<Auth Code>";

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
    Serial.begin(9600);
    delay(5000); // Allow board to settle
    Blynk.begin(auth);
    mlx.begin();
}


BLYNK_READ(V1){
     int objtemp = mlx.readObjectTempF();
     Blynk.virtualWrite(V1,objtemp);
     delay(100);
}

BLYNK_READ(V2){
     int ambtemp = mlx.readAmbientTempF();
     Blynk.virtualWrite(V2,ambtemp);
     delay(100);
}

void loop()
{
    Blynk.run();
}
1 Like

Cool stuff, thanks for sharing your code…it helps when other users are searching for the code for that specific sensor.

If you had a project you built, we’d love to see it posted in our ‘Projects Made with Cayenne’ category.

Cheers,

-Benny