Category: IoT

Sheding some (infrared) light on MLX90614

After implementing the MLX90614 driver for NuttX I noticed that although the write command to change the device I2C address in the EEPROM was reporting success, after the power cycle the new address was not working. Worst: even the previous address was not working.

Basically the device appears damaged and didn’t respond to any I2C command.

Then doing my research I discovered a Melexis document about SMBus communication:

In this document I noticed they are using the address 0x00 instead of the default 0x5a address. After modifying the driver to use the 0x00 address the device accepted the new command.

There are many discussing about this subject on Arduino and similar forum:

Note that someone discovered that using a brute force CRC approach eventually will work and everybody decided to copy it. Too bad guys!

The MLX90614 uses CRC8-CCITT standard to check if data are correct, so any CRC8-CCITT implementation will work, for example this one:

Now on NuttX you can call the mlx90614 example application to change the device’s I2C address this way: (changing from default 0x5a to 0x3a)

nsh> mlx90614 0x3a
Address 0x3a stored on your device!
Please do a power cycle and update the I2C board address!

Listing of projects devoted to IoT

There are many open-source “Deus-ex” solution for IoT (a flashion name), then I decided to list some of these projects here:

AllJoyn (an AllSeen Alliance framework):

Arduino – the King of hobbyist IoT (without Internet) :

Blynk – to create Android and iOS User Interfaces:

Contiki – The Open Source OS for the Internet of Things (they are biased):

Freeboard – A Web Dashboard for IoT visualization:

IoTSyS – Internet of Things integration middleware:

JerryScript – It is a JavaScript engine for IoT:

LiteOS – It appears Huawei is using it for their 10Kb RTOS:

Mbed OS (from ARM):


Mosquitto MQTT Brokwer:

NuttX – The best RTOS for IoT (sorry I’m biased) :

Particle – Open Software/Hardware for IoT:

PushOver for notification:

Qeo communication framework:

Node-Red A visual tool for wiring the Internet of Things:

RIOT-OS – The friendly OS for IoT:

Soletta Project is a framework for making (Linux)IoT devices:

Splunk – Visualize servers and device log data

ThingSpeak – A open and free platform to store and visualize sensor data online:

The Thing System:

Tinq is a software framework for device data exchange (based on Qeo) :

V7 is a JavaScript engine for microcontrollers:

VIPER – Python for IoT:

I am sure it is missing more some thousand of open-source projects. Give me a hint!

More info: