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

Arduino on the Sleepy Pi 2 unresponsive/halted #11

Open
daghemo opened this issue Oct 23, 2018 · 2 comments
Open

Arduino on the Sleepy Pi 2 unresponsive/halted #11

daghemo opened this issue Oct 23, 2018 · 2 comments

Comments

@daghemo
Copy link

daghemo commented Oct 23, 2018

I've uploaded a Sketch to the Arduino on my Sleepy Pi 2.
It wakes up every 10 seconds to print something (date, current, voltage and other) to the serial, but it also wakes up by alarm twice a day, to punch in in the morning and punch out in the evening. The Raspberry is turned on on the first alarm and off on the second one. After every alarm I just powerDown().
The Sketch has been used on two boards for days.

Yesterday one of my boards did not went off in the evening. The time on the board was correct, aligned with the one from the RTC. But I was not able to see something on the serial. That is, the Arduino seemed freezed.

Any suggestions? Is there a way I can prevent this from happening or just a way to reset/refresh the Arduino?

Please, be gentle: I'm not an Arduino expert! ;)

@SpellFoundry
Copy link
Owner

Difficult to tell but this may be the Arduino library i2c having some infinite while loops: arduino/Arduino#1476
You might want to try some of the fixes around the web such as this one: https://rheingoldheavy.com/changing-the-i2c-library/

@daghemo
Copy link
Author

daghemo commented Oct 24, 2018

I do not use I2C directly in my Sketch.
Do you think it could be your own implementation of PCF8523::readTime()? I now it uses the Wire library.

Any proposal to refresh/reset the Arduino on the Sleepy Pi 2, with no impact on the Raspberry Pi? That is, without powering it down.

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

2 participants