Closed techboycr closed 4 years ago
Heyhey,
Thank you for testing this on the ESP32 and filing out an issue. This is actually a known issue as of currently, due to the slow SPI interface that the Arduino libraries utilize. A more thorough explanation of what’s happening is on the other issue: https://github.com/NachtRaveVL/Lepton-FLiR-Arduino/issues/2
Essentially, you’re experiencing a de-sync and that’s not surprising given that this has long since been the major bottleneck of the library.
I’ve been working on a new version of the library and a completely different fast SPI transfer mechanism in my spare time as of more recently. I don’t have a time table for any of it, as I have only time in the evening after the day job to work on such, but I would recommend instead to go the route of RasPi to utilize the FLiR as of currently.
On a different note: did you experience any compilation difficulties with compiling the library on ESP32? I admit I haven’t looked too far into the Espressif toolkit there (although I did install it for sake of future experimentation), as I’ve been busy with a lot of other projects lately.
Thanks again! NR
Hello Hello!
Well this piece of software you did is just amazing, thanks for that! I will give it a different try tonigh and I will keep you inform on my findings.
And to answer your not I didn’t experience no problems at compiling time, So that led me to think that maybe we will be able to make it work soon.
Thanks for your help!
Hi
I'm using ESP32 with lepton 3 and Pure Thermal Breakout board
I keep getting NACK on address and what appear to be default values whenever I try to output module info on serial monitor
LeptonFLiR::readNextFrame LeptonFLiR::receiveCommand cmdCode: 0x100 LeptonFLiR::waitCommandBegin LeptonFLiR::readRegister regAddress: 0x2 LeptonFLiR::checkErrors lastI2CError: 2: Received NACK on transmit of address LeptonFLiR::receiveCommand cmdCode: 0x218 LeptonFLiR::waitCommandBegin LeptonFLiR::readRegister regAddress: 0x2 LeptonFLiR::checkErrors lastI2CError: 2: Received NACK on transmit of address LeptonFLiR::readRegister regAddress: 0x2 LeptonFLiR::checkErrors lastI2CError: 2: Received NACK on transmit of address LeptonFLiR::readNextFrame Errors reading state encountered. Aborting. 0
Awesome initiative thanks a lot!
I am trying to run it in ESP32 (Sparkfun ESP32 Thing Plus) and Flir Lepton 2.5 with the latest Flir Breakout board, but is not getting the frames This is the debug output with one get frame.
`Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:8896 load:0x40080400,len:5816 entry 0x400806ac LeptonFLiR::init spiCSPin: 21, storageMode: 3, tempMode: 0 LeptonFLiR::init imageData: 1447B, spiFrameData: 367B, total: 1814B LeptonFLiR::init SPIPortSpeed: 15.00MHz (SPI_CLOCK_DIV16)