Hi all,
I've been trying to set up a Lepton Thermal Camera (breakout v1.4) with both a raspberry pi 3 and a zero W. I started with
this wiring and setup guide and have been troubleshooting with all the suggestions mentioned in this thread with no luck.
Running sudo ./raspberrypi_video
- Black pop up window with red square in the upper left corner. 'Perform FCC' button works and causes the Lepton camera's shutter to close and open.
Running sudo ./raspberrypi_capture [with output file name]
- Message 'spi mode: 0 bits per word: 8 max speed: 16000000 Hz (16000KHz)', terminal hangs on a blank command line. Ctrl-c to quit
Running sudo ./raspberrypi_overlay [with options such as '-a 155']
- terminal hangs on a blank command line (pi camera IS connected for this one
Running sudo ./raspberrypi_qt
- All-red window pops up, 'snapshot' creates and rgb#.jpeg file, error message in terminal 'Error transferring SPI packet'
To troubleshoot I have:
- Carefully removed and put back the Lepton module from its breakout board.
- Placed the CS pin in #24 (CE0) and #26 (CE1) and matched it correspondingly for spidev in the LeptonThread.cpp script (0.0 for CE0, 0.1 for CE1)
- From an answer in this thread, the wiring guide I've followed is allegedly false. So I experimented my full pin layout between these two patterns (found on ):
- [SPI0] MOSI: #19, MISO: #21, SCLK: #23, CE0: #24, CE1: #26
- [SPI1] MOSI: #38, MISO: #35, SCLK: #40, CE0: #12, CE1: #11
- Set DEBUG_LEPTON to true in the Lepton_thread.h script, then back to false but commented out the debug defines surrounding line 48, and changed 'sequence' to 'sequencex'
- Changed the SPI speed to 18000000 from 10000000
- Checked the voltage through the Lepton breakout board while plugged in to make sure it isn't fried (its shutter also goes off every few mins).
In addition to LeptonModule (C/C++) I have also tried the same with pylepton (Python) with identical results.
Any insights and advice are appreciated in advance