|
Post by rschre on Mar 8, 2020 12:00:36 GMT -8
My setup:
RPi 2B w/Stretch Pi to Grove interface Board Lightning Detector has been installed and running fine for months now (Buzzer, LCD and Thunderboard connected per SwitchDoc online instructions)
Problem description:
-- I have connected the HD3301 to Grove connector D20/21; it is getting power as the fan is running but no LEDs lighted on the HD3301 board
-- system already had pigpio 1.64-1 installed.
-- Running testAQI.py returns "my AQI= 17". But testSDL_Pi_HM3301.py produces no results - just sits there
-- following error when running sudo pigpiod
"...initInitializ: bind to port 8888 failed (Address already in use)Can't initialise pigpio library."
-- Thought daemon might already be running but doesn't seem to be as running per "pidof pigpiod"
Would appreciate some suggestions. Hope I can run HD3301 on the RPi 2 B in parallel with the Thunderboard if at all possible.
Thanks.
Richard
|
|
|
Post by SDL on Mar 8, 2020 12:52:54 GMT -8
It sounds like you have a problem with something binding to port 8888. I tried pidof pigpiod and it worked on my system. You an try this too:
ps xaf | grep pigpiod
Did you reboot the system?
There are no LEDs on the HM3301 board.
I know it works well as we are running it here.
The default SDA and SCL in the code are: SDA = 20 SCL = 19
Something is binding 8888.
John
|
|
|
Post by rschre on Mar 8, 2020 14:30:10 GMT -8
John,
Port 8888 was the culprit. I had completely overlooked that rpimonitor was installed and it takes over that port. Got rid of it for now and things are working as they should.
The HD3301 code I downloaded has SDA and SCL = 20 and 21. Are 19 and 20 maybe an earlier version?
At the moment, the AQI inside the house is 4 - not bad!
Thanks for the help and the additional info. This is a great device.
Richard
|
|
|
Post by SDL on Mar 8, 2020 15:18:44 GMT -8
Richard, Great! The pin numbers are arbitrary. 20 and 21 match the next version of SkyWeather which supports this device. We have our new weather station prototype in the basement of my home and we had a pizza burning incident upstairs in the kitchen and boy did the air quality sensor pick that up! You can see the filters on the furnace start to take it out all the way back down to 4 by morning. Here is our Blynk app for SkyWeather showing just that.  John
|
|
|
Post by rschre on Mar 8, 2020 18:10:51 GMT -8
John,
Great example! We didn't have a "pizza incident", but when I moved the sensor to another part of the house the AQI began to climb so I turned on the air handler fan and the value dropped back to 4. Proves the filter does help air quality quite a bit
The graph is interesting -- makes me start thinking about a complete new weather station as my original Davis station is now over 15 years old and nearing end of life.
Richard
|
|
|
Post by SDL on Mar 10, 2020 15:48:40 GMT -8
Richard,
Boy, we have some great choices for you to build your own station now (with the Air Q sensor built in!)
BP
|
|