postronium / SCD30-Raspberry-Pi

Python library for Raspberry pi and the SCD30 CO2 sensor
8 stars 4 forks source link

Cannot detect SCD30 #1

Closed mawmaw1 closed 5 years ago

mawmaw1 commented 5 years ago

Doing the steps in https://raspberrypi.stackexchange.com/questions/37796/how-to-use-i2c-gpio-with-raspberry-pi I still cannot detect the SCD30 using 'sudo i2cdetect -y 1' / 'sudo i2cdetect -y 3' . Do you have any advice? The pins should be connected correctly.

mawmaw1 commented 5 years ago

Managed to detect it with i2c at 0x61. Getting IOError: [Errno 6] No such device or address.

Any suggestions?

mawmaw1 commented 5 years ago

Changed the SMbus to (1) and getting data now, but it doesn't seem to change. Also getting the following: Traceback (most recent call last): File "test.py", line 7, in data = sensor.read_measurement() File "/home/pi/SCD30-Raspberry-Pi/src/scd30.py", line 183, in read_measurement floatData = numpy.array(data, dtype=numpy.int32) OverflowError: Python int too large to convert to C long

UtecRS commented 5 years ago

Still struggling?

Does this help?

Maybe @species can help

mawmaw1 commented 5 years ago

@UtecRS Damn, could've used that library back then ;-) We figured it out, but has since moved to other projects. Thank you.