OpenMV N6 - Shield with camera and Flir Lepton 3.5

Hi there,

Is there anyone with this extension board who can run any example with the FLIR Lepton 3.5? OpenMV IDE latest version detects the N6 board and the FLIR Lepton 3.5 correctly, but no example is working for me. Any example ends with the error: RuntimeError: Sensor control failed.
I am using the latest firmware for my N6 board, and I am sure that the Lepton module itself is working
Thank you

Martin

Hi, is your hardware setup exactly? Can you give me more details? Are you using the dual sensor? I’m adding examples for a PR for that right now:

# This work is licensed under the MIT license.
# Copyright (c) 2013-2026 OpenMV LLC. All rights reserved.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# This example shows off using the the FLIR Lepton overlayed
# on top of a color sensor.

import time
import csi
import image
import math

alpha_pal = image.Image(256, 1, image.GRAYSCALE)
for i in range(256):
    alpha_pal[i] = int(math.pow((i / 255), 2) * 255)

# Setup the color camera sensor.
csi0 = csi.CSI()
csi0.reset(hard=True)  # force hardware reset.
csi0.pixformat(csi.RGB565)
csi0.framesize(csi.QVGA)

csi1 = csi.CSI(cid=csi.LEPTON)
csi1.reset(hard=False)  # no hardware reset - just configure lepton
csi1.pixformat(csi.GRAYSCALE)
csi1.framesize(csi.QVGA)

clock = time.clock()

img1 = image.Image(csi1.width(), csi1.height(), csi1.pixformat())

while True:
    clock.tick()
    img0 = csi0.snapshot()
    csi1.snapshot(blocking=False, image=img1)
    img0.draw_image(img1, 0, 0, color_palette=image.PALETTE_IRONBOW,
                    alpha_palette=alpha_pal,
                    hint=image.BILINEAR)
    print(clock.fps())

Hi,
Thank you for the fast response. I am using a dual-sensor module (a multispectral thermal camera module). Your example is working for mi that is great. I tested all examples in the Examples-CAMERA-FlirLepton section, and none are working for me. Your code works nicely, so I will start with it. Currently, I need to read the full temperature matrix and call some functions as FCC
Thank you
Martin

See this PR for examples: scripts/examples: Add color and lepton sensor module examples. by kwagyeman · Pull Request #3145 · openmv/openmv · GitHub