jorg
New Member
Posts: 15
Raspberry Pi: Yes
|
Post by jorg on Sept 9, 2020 22:32:02 GMT -8
When running testDust.py I get just readings of 0
when running SkyWeather.py I get eventually:
dustSensor = SDL_Pi_DustSensor.SDL_Pi_DustSensor(pi, config.DustSensorPin) # set the GPIO pin number File "./SDL_Pi_DustSensor/SDL_Pi_DustSensor.py", line 41, in __init__ pi.set_mode(gpio, pigpio.INPUT) File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1344, in set_mode return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode)) File "/usr/lib/python2.7/dist-packages/pigpio.py", line 993, in _pigpio_command sl.s.send(struct.pack('IIII', cmd, p1, p2, 0)) AttributeError: 'NoneType' object has no attribute 'send'
I double checked the wiring and config: DustSensorPin = 19 DustSensorPowerPin = 26
Ordered/received the kit about a month ago - Shinyey PPD42 Read that there is a new version, not sure what I have and are happy to upgrade ...
How do I debug this?
|
|
|
Post by SDL on Sept 12, 2020 9:15:54 GMT -8
I think you don't have pigpio installed. We are selling out our current inventory of the PPD42 and switching to the new Laser based one. Works really well. Here's what I am getting this morning. Terrible air quality!
|
|
jorg
New Member
Posts: 15
Raspberry Pi: Yes
|
Post by jorg on Sept 22, 2020 12:01:16 GMT -8
... odd - that was using unmodified code from you and your SD card. Since then tried to upgrade to python3 (not too successful) ... but now it works ;-)
|
|
|
Post by SDL on Sept 25, 2020 16:51:23 GMT -8
Hmmm. Ah the complexities of the Raspberry Pi Operating System!
BP
|
|