Shop OBEX P1 Docs P2 Docs Learn Events
FLIR Lepton 2 --> VGA — Parallax Forums

FLIR Lepton 2 --> VGA

RaymanRayman Posts: 13,855
edited 2021-06-23 14:24 in Propeller 2
The FLIR Lepton2 is thermal imager with 80x60 resolution.

This code interacts with FLIR over I2C and then receives video data over SPI.

The frame rate is 9 Hz, although it sends the same frame repeatedly until a new one is available.

This code takes the raw data and then scales it to between 0 and 255 for the VGA driver.
There are several palettes to choose from.

Update: Added a version (2C) that works with Prop Tool 2.5.3.

Comments

  • RaymanRayman Posts: 13,855
    I'll work on Lepton3 next...
  • Nice!
  • Looking great Rayman
  • RaymanRayman Posts: 13,855
    I just realized that I broke the I2C when I added VGA...

    Reason is that old p1 I2C driver had 16-bit addressing where P2 needs 24-bit for large programs...

    I've put fixed code in top post.
  • That's really neat.
  • Very nice work
  • RaymanRayman Posts: 13,855
    edited 2020-11-16 19:36
    I got a Lepton 3.5 talking and showing an image, but this one is a lot more picky....

    Might have to use a smartpin synchronous serial receive mode to boost the serial data rate.

    Seems I need to move from 9 MHz to 20 MHz on SPI clock to get the best data...
  • RaymanRayman Posts: 13,855

    Updated the code a bit so it works latest Prop Tool, posted in top post just now.
    Don't have a VGA monitor handy, so it's rigged to just send first pixel value over serial.
    But, the VGA code is still there, it probably works, just needs to be called.

Sign In or Register to comment.