groupgets / LeptonModule

Code for getting started with the FLIR Lepton breakout board
https://groupgets.com/manufacturers/flir/products/flir-lepton
BSD 2-Clause "Simplified" License
317 stars 197 forks source link

Get temperature from sensor #67

Closed frank1789 closed 4 years ago

frank1789 commented 4 years ago

Hi, I'm currently working with a FLIR lepton 2.5 sensor. My software is based on raspberrypi_video and works well on the Raspberry Pi 3b, I would like to know if there is any way to generate a relationship between the image and the maximum and minimum temperatures. I currently get from the functions:

LEP_GetSysFpaTemperatureKelvin(...)
LEP_GetSysAuxTemperatureKelvin(...)

both should be expressed in Kelvin. I look forward to suggestions and thank you in advance.

You can view my source

hanifizzudinrahman commented 4 years ago

Hello frank1789, i didnt test your code, but as i see, your code is in C programming language. do you have the code for python, because i run it in raspberry pi B?

frank1789 commented 4 years ago

Thanks for the reply, unfortunately I have no python code available to carry out the tests. I also forgot to specify to use branch "feature/temperature" from git repository.

hanifizzudinrahman commented 4 years ago

i use the code from Frank LEPTON 2.zip

But, there is little problem in my project (Lepton 2.5 with board V1.4 + Raspberry Pi 3 B) my schematic is

According with the suggestion above, i make some change in .... * LeptonThread.cpp

when i run the Lepton-CaptureRaw, the result is good like this, but... SS 1

but..., sometimes when i try 10 times run this i can video it the thermal video and when i press the button "Snapsot" it will give me the .jpg picture (1-rgb.jpg, 2-rgb.jpg) and .bin format (1-raw.bin, 2-raw.bin) that this raw format will show a temperature value (i'm not yet with this) but 2 times will fail. The error is "Error transfering SPI packet" and the layer full of red. Can you help me with this? why this happen?

frank1789 commented 4 years ago

project (Lepton 2.5 with board V1.4 + Raspberry Pi 3 B) I use the following:

Raspberry GPIO Breakout Board
(Pin 1) +3.3V VIN
(Pin 3) SDA SDA
(Pin5) SCL SCL
(Pin6) GND GND
(Pin 19)MOSI MOSI
(Pin 21) MISO MISO
(Pin 23) SCLK CLK
(Pin 24) CE0 CS

IMG_0340 IMG_0341