Panasonic AMG8833 IR sensor

Installing the sensor

The datasheet of the AMG8833 you can find here. You can connect the sensor with the "I2C/NFC" connector on the FMU. To mount the sensor, you can solder 5x1 jacks to a breadboard so the sensor can be placed on the board. On the back of the breadboard you can solder the cables for the FMU plug according to the label on the sensor. For the power supply use the connector "VIN". You just need to solder the cables at the lower row. The upper row is just for a stable assembly. The end of the cable has to be plugged into the FMU plug as shown below.

Example Code

Example code for using the MLX90614 under PX4 is available under the NXP HoverGames GitHub:

The example was written in C++ and bases on the "px4_simple_app" in the examples folder of the PX4 Firmware. You can find the example in the folder "hg_amg88xx" and includes the files "CMakeLists.txt", "hg_amg88xx.h" and "hg_amg88xx.cpp".

For running the example the command hg_amg88xx has to be added under the keyword "EXAMPLES" in the file "default.cmake" from the folder ".../src/Firmware/boards/nxp/fmuk66-v3" . Also copy the folder "hg_amg88xx" in the folder ".../src/Firmware/src/examples".

HG_AMG88xx temp_amg;
float pixels[AMG88xx_PIXEL_ARRAY_SIZE];
‚Äč
temp_amg.readPixels(pixels, AMG88xx_PIXEL_ARRAY_SIZE);

First creating an object of the "HG_AMG88xx"-Class. Then you can call the readPixels(float *buf, uint8_t size) for reading the actual temperature of all 64 pixels. Then you can print every pixel using a for-loop.