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

grovepi analogRead() stuck #442

Closed
SnoringBoy opened this issue Mar 2, 2019 · 4 comments
Closed

grovepi analogRead() stuck #442

SnoringBoy opened this issue Mar 2, 2019 · 4 comments

Comments

@SnoringBoy
Copy link

Hi,
I am having an issue that when I call the method grovepi.analogRead(), it is taking forever just like an infinite loop. For the grove_rotary_angle_sensor.py, I don't have any errors on the console. When I test other python programs like grove_led_fade.py. The grovepi module works. I have set up the grovepi by following official website steps. I am very sure the analogRead() brings the problem since I put print statements before and after the analogRead() call. The one before method call is printed. Does anyone know what is happing? Thank you, your help is appreciated.

@avnish19
Copy link

I'm having the same issue.

When placing some simple debug statements in my code, any script I am running stops at a analogRead() call.

I am using GrovePi Zero in my case.

@thisisandrei
Copy link

Same issue here, I am using GrovePi+ with Raspberry Pi Zero W, with Raspbian installed. Anyone figured this out yet?

@thisisandrei
Copy link

So the issue, at least for me, was that I needed to update the firmware, else analogRead was hanging out of the box. Also, if using Raspbian, run all installation and setup commands with sudo.

Specifically, go into the Firmware folder of this repo, chmod 777 *, sudo ./new_fw_search.sh, sudo firmware_update.sh.

I hope this helps. The installation details for getting this going on Raspbian isn't the greatest but it works if you know what you're supposed to do. The out of the box install obviously didn't do a firmware update, even though I followed all instructions.

@RobertLucian
Copy link
Contributor

As far as I remember, this is all covered in the getting started section of the GrovePi's documentation here.

Were you not aware of the documentation? If so, where would you suggest having it put? As of this moment, it's found somewhere in the middle on the repo's README. Others also had problems finding it.

Și salutări ție! Ești al 3-lea român pe care îl văd pe aici.

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

4 participants