WeatherHat Analog Inputs

Can someone explain to me how to use the analog inputs? There is no mention in the libary of them at all. I am wanting to hook up an external tempature sensor

The chip use is the same one used on this.
IO Expander Breakout - Pimoroni
These examples should work with minor edits.
ioe-python/examples at master · pimoroni/ioe-python (

Ill take a look, What pins are used on the weather hat for analog?

You’ll need to look at the schematic for that info.
weather_hat.sch (

Surely this should be in the documentation. Its an advertised feature!

I agree, but at present its not there. No pinout yet either. So you’ll have to do a little sleuthing.

An analog example with the right pins would probably be a good addition to the Weather HAT repo, I’ll add it to my to-do.

In the meantime, this IOE example should show you how to read an analog input - you’ll need to give it the correct IoE pin for the channel you’re using (12, 11, 10 or 9, they’re the numbers inside the MCU box on the schematic) and the correct I2C address for the IoE expander on Weather HAT (0x12).

1 Like

Thankyou :) it turns out the thermometer I brought is 1wire! Managed to get it working (eventually)

1 Like