Closed albflo closed 4 years ago
Okay now I tested it on the v2 board and it works on that, but not on the v1.4.
Try again with v1.4 and but triple check Lepton module to correctly fit inside board socket I found it to be the cause of malfunction in 90% of cases.
I've gone a little further with new FLIR Lepton SDK (released together with v2.0 I/F board) IMHO this works a lot better than my approach but I never tested it on RPi0. With RPi3A+ I'm currently streaming standard video trough Raspicam module plus IR video trough Lepton and play them realtime on a self made Android app. And BTW I'm still using the old v1.4 board without any issue (but I need to press the Lepton module inside the socket to prevent abnormal behaviours). I designed also a prototype board to hold both RaspiCam module and FLIR Lepton.
Sry for the late responds, yes it helped to replug the camera again, now it works on the v1.4 too! That's great, I looked into that approach and it could be possible to cross compile the RPi0 kernel to add those FLIR modules. I will let you know if I do that and if it was successful!
Hi,
I am currently using your implementation on a RPi 0 W (Raspbian with 4.19.118+) with a Lepton 3.5 and the original breakout board v1.4 and v2. I was able to set everything up and I am able to run your script, but I can't get any frames. By activating DEBUG mode I am able to see that the IRQ are received, but it always tells me that it received a INVALID FRAME. The error gets caused in the
LeptonVid.c
file at line 124 where:ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr);
returns -1. Did you or someone else experience a problem like that? Overall the wiring doesn't show any problems for
/dev/spidev0.0
and the i2c bus and I use 20 cm long wires which shouldn't be too long for this.