[SOLVED] Reading Grove Temperature Sensor Mini with Python and Up^2

I have the Intel UP^2 GrovePi+ kit https://www.seeedstudio.com/UP-Grove-IoT-Development-Kit-p-2994.html and I am wondering if there is any python code to read the Temperature and Humidy Sensor Mini ? I see a wiki, but it links to RPi examples which don’t seems to work as it is not an Pi.

Any help would be appreciated.

Cheers,
-Joe

Answered my own question , use the th02 library,

Here is a sample python program reading the Grove Temperature & Humidty Sensor Mini using the GrovePi+ on a Intel UP^2

Cheers,
-Joe

Hi @joe1,

I think this is what you are looking for - were you looking at the same scripts?:

As for why it doesn’t work on UP2, well that’s something that we can’t help you much. What we know about UP2 is that it’s supposedly a drop-in replacement for the Raspberry Pi, so it should already work for you. If not, then probably there’s a compatibility bug on UP2 that needs to be remedied.

Thank you!

Hey @RobertLucian - Thank you very much for the reply. Unfortunately it is not a drop in replacement. The RPi python packages and smbus packages do not work on the UP^2. But the sample scripts were helpful to get most of the sensors in the kit working. I’ve got the led, lcd, temperature and light sensor working. Just the rotary encoder and button left to go :slight_smile:

I’ve got them all posted here: https://github.com/joemcmanus/IntelUp2Grove

Cheers.
-Joe

Hi @joe1,

I’ve got one suggestion for you. You might want to start using the beta version of the GrovePi as there are a lot of fixes in it that make it more reliable than the current one (v1.2.7). Since it’s not yet public, here’s a post with some instructions on how to get it installed.

Thank you!

This topic was automatically closed after 3 days. New replies are no longer allowed.