Need help with LeptonModule?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

255 Stars 189 Forks BSD 2-Clause "Simplified" License 126 Commits 42 Opened issues


Code for getting started with the FLIR Lepton breakout board

Services available


Need anything else?

Contributors list


The FLIR Lepton™ is the most compact longwave infrared (LWIR) sensor available as an OEM product. The Lepton 2.x camera cores has a resolution of 80 × 60 pixels and the newer Lepton 3.x camera cores have a resolution of 160 x 120 pixels respectively. The Lepton 2.5 and 3.5 are both also radiometric which means they can output a factory-calibrated temperature value for all pixels in a frame irrespective of the camera temperature with an accuracy of +/-5˚C. Lepton contains a breakthrough lens fabricated in wafer form, along with a microbolometer focal plane array (FPA) and advanced thermal image processing.

More Information


This example is for the Beagle Bone Black board and runs a basic video feed. Requires the device's SPI0 tree to be exported to a slot before running. Steps are outlined within this directory.


This is for the Raspberry Pi, you have to enable the spi and i2c ports first for this code to work.

  1. sudo vi /etc/modules
  2. add # in front of spi-bcm2708 and ic2-dev
  3. to compile the code just run "gcc raspberrypicapture.c"
  4. to capture an image run "sudo ./a.out"
  5. a file called image.pgm will be created, you can use GIMP to view the image

See the wiki page for more information:


This is for the Raspberry Pi, see this page for more information

Software modules:


This example shows how to read the i2c ports using an Arduino. Note that most Arduino hardware does not have enough memory to buffer the thermal image. 80602 = 9600 bytes. Some of the Arm based units will work.


Download and install ChibiOS_2.6.5 into the same directory first. This example takes the SPI data stream from the Lepton module, buffers it and send it out the USB VCP device. On the PC the binary stream of data can be parsed easily by looking for the 0xdeadbeef header on each frame.


This example shows how to read stream photos at the rate of about 1 every 2 seconds from the $10 STM32nucleo 401 RE development board. This example uses the mbed toolchain, an extremely simple to use web based IDE.


This super simple win32 example shows how draw the images onto the screen of a windows computer. This software is compiled using MinGW toolchain.


This example shows how to capture a still image from the lepton using Intel Edison.


This simple program will stream frames from the Lepton to a v4l2loopback device. Very useful for interacting with the Lepton in the same way you would a webcam. This was created mainly for use on Raspberry Pi with the original breakout board.


If you'd like to use the breakout board with Python on Linux, check out the pylepton project:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.