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

Created version for Lepton 3 and Raspberry Pi. Used SPI 1! #53

Open da-nie opened 6 years ago

da-nie commented 6 years ago

Created version for Lepton 3 and Raspberry Pi. Used SPI 1!

christianjungwirth commented 5 years ago

Hello,

i have tried your code and it principle works. But i have the problem, that the camera hangs after 2-3 minutes. Even when i press the fcc button the frezzed image is still on the screen.

do you have any advices for me? Could it be for example the frame buffer? I have tried this with a raspberry 3.

Thanks for help.

christian jungwirth

da-nie commented 5 years ago

Hello. My lepton 3 works for a long time. You may have long wires. I used Raspberry Pi B.

christianjungwirth commented 5 years ago

Hello danie,

i think i have found the Problem, i have compiled the code from the Folder raspberry_video but your Version is that one in the Folder raspberrypi_lepton3_video.

When i start your Version i only get a black window with a red square in the upper left Corner. I have debugged your code a little bit and everytime in lepton_conroll.cpp at line 39 it Returns "NO_SEGMENT".

I have attached a Screenshot on which Position i mean. pic

Could you Support me a little bit please? i have also tried your Suggestion with the wires, but that was not the solution. Which wires do you are using?

Could be the kernel the Problem?

Thank you for your Support.

best regards Christian Jungwirth

da-nie commented 5 years ago

Version in the Folder raspberry_video used lepton with resolution 80x60. My version in the Folder raspberrypi_lepton3_video used lepton3 with resolution 160x120. What lepton module do you have? Apparently, you have 80x60.

christianjungwirth commented 5 years ago

I'm pretty sure that i have a lepton 3 with Resolution 160x120.

My lepton Module ist 500-0726-01-ND and my breakout board is 250-0587-00-ND

The raspberry_video from novacoast (https://github.com/novacoast/Lepton-3-Module) works pretty well for me, but i am interested in your code because it Looks very interinsting.

da-nie commented 5 years ago

I correctly understood that the my program "raspberrypi_lepton3_video" does not work for you? The image was not created always? Or the image was sometimes? Hm. My programm used spi 1!
In module main.cpp:

define SPI_PORT_INDEX 1

define SPI_PORT_HANDLE spi_cs1_fd

Maybe, you used not spi1? You used spi0?

Change SPI_PORT_INDEX to SPI_PORT_INDEX 0 and change SPI_PORT_HANDLE to spi_cs0_fd and compile.