It’s me again.
Got GrovePi working nice today with Your help, relays are switching and some other sensors are read fine, but I can’t seem to get temperature sensor working.
Raw value of sensor seems to be always 1023 and when trying to read temperature with t=grovepi.temp(1) i get math domain error:
analog pin 1 raw value: 1023
Traceback (most recent call last):
File “test.py”, line 36, in <module>
File “/home/pi/work/GrovePi/Software/Python/grovepi.py”, line 52, in temp
ValueError: math domain error
Well, that’s of course what you get when trying to calculate (1023-1023)*10000/1023, so the question is; Why the raw value is always 1023?
I use DHT11 based Grove Temperature and Humidty Sensor, which is in the supported sensor list, but obviously i’m missing something here. Maybe it’s because this is my first python project and I haven’t used grove sensors or even arduino before either…
Am I trying to use even right function?