Did anyone succeed with accessing the FLIR Lepton?
My experience so far:
I tried to access the lepton using the Edison Arduino breakout board with the Pure Engineering lepton breakout board, using pins 10 - 13 for CS, MOSI, MISO and CLK. I'm powering the lepton via its backside pins for VIN and GND with 3.3 volts.
I tried to access it with Arduino, node.js, python and C but was not successful with any of these.
Accessing the lepton on my RaspberryPi is completely straight forward. I did code my own program there as well, strictly considering the data sheet of the lepton:
- SPI_MODE3, a clock rate between 2.2 to 20 MHz, MSB mode, 8 bits per word
- Synchronizing with the device with CS high, >=185ms pause, CS low
- Continuously reading 164 bytes, interpreting the first 2 bytes to check for “discard” packets or packet number respectively
This works like a charm on the RaspberryPi but implementing this with the Edison leads me to desperation.
When interpreting the first 2 bytes of the 164 byte packets, I’m only getting discard packets. But I’m quite sure that even the information about this “discard” is unreliable as analyzing the whole packets (164 bytes) let me doubt. Sometimes something like a “structure” is recognizable with the first 20 bytes set to anything > 0, then 8 bytes set to 0 and again 10 bytes set to anything > 0 with the remaining 126 bytes set to 0. At least when cutting power from the lepton while streaming on the SPI changes the pattern a little as packets then can either contain more 0 bytes or sometimes only 0 bytes. Other times the output seems completely random. Anyhow, compared to the output on the Pi, this is completely faulty information.
MRAA lib is up to date, Edison firmware as well.
I have attached my C program. When running it unaltered like attached, it should print packet numbers of received valid (non-discarded) packets. This print never occurs.
Just as a side note: Changing the SPI bus from 5 to 0 does not help as well (one finds various information on which bus to use on edison with its two breakout boards...).
Any help is appreciated!