pimoroni / automation-hat

Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini
https://shop.pimoroni.com/products/automation-hat
MIT License
122 stars 41 forks source link

ADC4 not providing sensible readings #24

Closed shortbloke closed 4 years ago

shortbloke commented 4 years ago

I was seeking to implement ADC4 support in my Node-Red module for the Automation HAT and have the groundwork in place. However, it appears that the library is not providing sensible readings for the 3.3V ADC4.

I only have a single Automation HAT to test against, so can't rule out hardware, though I think it's unlikely as I'd never used those headers until today and I seem to recall they always gave low/odd readings which was why I excluded it from my initial implementation.

Environment:

shortbloke commented 4 years ago

Based on response to a query on twitter this issue might just be me and an issue with my HAT. Though would nice to get confirmation.

Gadgetoid commented 4 years ago

It's possible. Do you know what version of the Automation HAT library you have installed? There have been fixes relating to the ADC which might be relevant if it's an old install.

shortbloke commented 4 years ago

I used the latest version directly from source here. I then went and tested using other ads1015 libraries with the same result, so suspect hardware. I've purchased another HAT which should arrive today and I'll test and confirm this weekend.

Gadgetoid commented 4 years ago

Yep, that sounds like hardware. Good luck!

shortbloke commented 4 years ago

Confirmed, ADC4 on new Automation HAT works fine. Closing