It might be difficult to replicate, as I'd been running that setup for several weeks before the bad thing happened.
I'm still using it (after restoring the json file). The issue has not recurred so far.
Wippersnapper: Fatal error suddenly appeared
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- T_Mo
- Posts: 1258
- Joined: Thu Mar 15, 2018 7:10 pm
- T_Mo
- Posts: 1258
- Joined: Thu Mar 15, 2018 7:10 pm
Re: Wippersnapper: Fatal error suddenly appeared
Note that there is another bad habit of the INA219 when used with Wippersnapper.
For no apparent reason, at random times, the INA219 will stop reporting updates to its feeds (both voltage and current).
Looking at the USB serial port when this happens, the device is no longer being polled for data. There are no error messages, it just isn't reporting data, so the feeds don't get updated.
The only fix for this is to cold-start the unit. Pushing the board reset button won't fix it. You have to disconnect all power sources and restart it from scratch.
Looking at the code in the INA219 library (I think it was the CP library, but can't remember for sure), there are comments that indicate the part has a known issue when exposed to current spikes. However the library includes some work-around for it. Maybe the work-around isn't totally successful, or maybe Wippersnapper doesn't have the same work-around.
For no apparent reason, at random times, the INA219 will stop reporting updates to its feeds (both voltage and current).
Looking at the USB serial port when this happens, the device is no longer being polled for data. There are no error messages, it just isn't reporting data, so the feeds don't get updated.
The only fix for this is to cold-start the unit. Pushing the board reset button won't fix it. You have to disconnect all power sources and restart it from scratch.
Looking at the code in the INA219 library (I think it was the CP library, but can't remember for sure), there are comments that indicate the part has a known issue when exposed to current spikes. However the library includes some work-around for it. Maybe the work-around isn't totally successful, or maybe Wippersnapper doesn't have the same work-around.
- brubell
- Learn User Page
- Posts: 2133
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Wippersnapper: Fatal error suddenly appeared
The current spike theory may be the case, especially if the fix wasn't pushed to the Arduino Library. Is this the issue you are referring to? https://github.com/adafruit/Adafruit_Ci ... /issues/10For no apparent reason, at random times, the INA219 will stop reporting updates to its feeds (both voltage and current).
Looking at the USB serial port when this happens, the device is no longer being polled for data. There are no error messages, it just isn't reporting data, so the feeds don't get updated.
- T_Mo
- Posts: 1258
- Joined: Thu Mar 15, 2018 7:10 pm
Re: Wippersnapper: Fatal error suddenly appeared
I don't recall seeing that issue, so that's not it.
I'll try to find the comments I noticed in some library code.
I'll try to find the comments I noticed in some library code.
- T_Mo
- Posts: 1258
- Joined: Thu Mar 15, 2018 7:10 pm
Re: Wippersnapper: Fatal error suddenly appeared
Here is the reference for the work-around in the CP INA219 library.
https://docs.circuitpython.org/projects ... na219.html
https://docs.circuitpython.org/projects ... na219.html
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.