Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hanging terminal - pylepton_capture output.png #37

Open
Henrikcox opened this issue Nov 26, 2019 · 2 comments
Open

Hanging terminal - pylepton_capture output.png #37

Henrikcox opened this issue Nov 26, 2019 · 2 comments

Comments

@Henrikcox
Copy link

I am working with a raspberry pi 3 (and have also tried on a raspi zero w) and the FLIR radiometric dev kit from SparkFun (Lepton 2.5).

When I run
pylepton_capture output.png

I get an unresponsive terminal, after hitting Ctrl-C I get the following output

File "pylepton_capture", line 37, in image = capture(flip_v = options.flip_v, device = options.device) File "pylepton_capture", line 10, in capture a, _ = l.capture() File "pylepton/Lepton.py", line 158, in capture time.sleep(0.185)

I have tested the Lepton on a digital analyzer and the CS and MISO channels of the SPI seem to be communicating OK. SCK is identical to the CS channel though and I am unsure of the cause or fix to this.

Digging into the code, it seems to get stuck in the def capture function (in Lepton.py) in the while True loop. It seems that the capture_buf array is never populated with data from the pixels collected by the Lepton.

I'm not 100% sure this is the root of the issue, or what this affects either. Any advice on this issue in general is appreciated in advance.

@superbuck
Copy link

I had the same problem, turned out that it was wrong wiring problem.

@alexandre-mazel
Copy link

And so for more information, the documentation say to connect CS to 26 but it works on my Raspberry 3 when I connect to 24 (aka CEO instead of CE1).

Can save you hours of research and doubts...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants