hi! engineers from Openmv.
I just bought a openmv and meet a problem when I connect it to a AMG8833 sensor.
when I tried to run the program it tells me it can read the data that it displayed “0”.
By the way, openmv is really a good product. Thanks for your work!

# AMG8833 Overlay Demo
# This example shows off how to overlay a heatmap onto your OpenMV Cam's
# live video output from the main camera.

import sensor, image, time, fir

ALT_OVERLAY = False # Set to True to allocate a second ir image.

sensor.skip_frames(time = 2000)

# Initialize the thermal sensor

# Allocate another frame buffer for smoother video.
extra_fb = sensor.alloc_extra_fb(sensor.width(), sensor.height(), sensor.RGB565)

# FPS clock
clock = time.clock()

while (True):

    # Capture an image
    img = sensor.snapshot()

    # Capture FIR data
    #   ta: Ambient temperature
    #   ir: Object temperatures (IR array)
    #   to_min: Minimum object temperature
    #   to_max: Maximum object temperature
    ta, ir, to_min, to_max = fir.read_ir()

    if not ALT_OVERLAY:
        # Scale the image and belnd it with the framebuffer
        fir.draw_ir(img, ir)
        # Create a secondary image and then blend into the frame buffer.
        fir.draw_ir(extra_fb, ir, alpha=256)
        img.blend(extra_fb, alpha=128)

    # Draw ambient, min and max temperatures.
    img.draw_string(8, 0, "Ta: %0.2f C" % ta, color = (255, 0, 0), mono_space = False)
    img.draw_string(8, 8, "To min: %0.2f C" % to_min, color = (255, 0, 0), mono_space = False)
    img.draw_string(8, 16, "To max: %0.2f C"% to_max, color = (255, 0, 0), mono_space = False)

    # Force high quality streaming...

    # Print FPS.


Please double check the wiring, make sure gnd and 3.3v are connected, and SCL, SDA are not switched. The AMG was tested recently and the driver code is working.

Hi, iabdalkader!
I am sure that the wiring is ok!
And the firmware version I downloaded is 3.6.2.
My amg8833 address is 0xD0,so I changed the AMG8833_ADDR of py_fir.c of firmware to 0xd0.
But the openmv read the data that it displayed “0”.

Thank you again for your patience in answering my doubts!

Hi I tested the AMG sensor again today with OMV3 and OMV4, and it’s working fine, if there’s no driver bug there’s not much else I can do for you. You can try to run an I2C scan and see if the sensor is detected, if it’s not detected (code gets stuck) it’s either the wiring or maybe the sensor is broken…if you’re absolutely sure the wiring is okay then maybe you should try another sensor:

from pyb import I2C

i2c = I2C(2, I2C.MASTER) # The i2c bus must always be 2.
for a in i2c.scan():

Note this prints 0xd2