|
Post by brakow on Dec 28, 2018 7:43:59 GMT -8
Good Morning,
I have assembled the SmartPlantPi kick starter kit. I am currently using a raspberry pi 3 model B, with all of the parts from the kit. I am also using the SD card purchased from Switch Doc Labs. I have configured and calibrated everything. It is sensing that the plants are dry, but not powering on the pumps. Any help would be appreciated. I will post testing outputs.
Thanks Bill
|
|
|
Post by brakow on Dec 28, 2018 7:49:00 GMT -8
pi@switchdoclabs:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: 40 -- -- -- -- -- -- -- 48 49 -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- pi@switchdoclabs:~ $ cd SDL_Pi_SmartGardenSystem/ pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ sudo python testAllSensors.py [Errno 121] Remote I/O error
Test All SGS Devices Version 1.0 - SwitchDoc Labs
Program Started at:2018-12-28 07:45:04
Temp = 19.388 deg C Humidity = 36.97 % ----------------- Sunlight Vi/IR/UV Sensor ----------------- Sunlight Visible: 1269 Sunlight IR: 5798 Sunlight UV Index: 5.42 358.633928571 Moisture Humidity = 51.23 ------------------------------ Sensor Value=984 --> Fresh Air | 0 Ultrasonic Level Grove Ultrasonic get level and print 8.971cm 8.938cm 8.987cm 8.967cm 8.987cm 9.004cm 8.971cm 8.987cm 9.004cm 8.967cm ---------------------- Main Sensors ---------------------- ADS1115: Present OLED: Present Sunlight Sensor: Present hdc1000 Sensor: Present Ultrasonic Level Sensor: Present
---------------------- Plant / Sensor Counts ---------------------- Sensor Count: 5 Pump Count: 5
---------------------- Extender Devices ---------------------- ADS1115_Ext1: Present ADS1115_Ext2: Not Present GPIO Extender 1: Present GPIO Extender 1: Not Present
---------------------- Future Smart Garden System Expansions ---------------------- SunAirPlus: Not Present Lightning Mode: Not Present Solar Power Mode: Not Present MySQL Logging Mode: Not Present
done with testAll pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ sudo python SGS.py [Errno 121] Remote I/O error Error accessing 0x4A: Check your I2C address Error accessing 0x4A: Check your I2C address
SGS Version 009 - SwitchDoc Labs
Program Started at:2018-12-28 07:45:34
ADS1115: Present OLED: Present Sunlight Sensor: Present hdc1000 Sensor: Present Ultrasonic Level Sensor: Present
---------------------- Plant / Sensor Counts ---------------------- Sensor Count: 5 Pump Count: 5
---------------------- Extender Devices ---------------------- ADS1115_Ext1: Present ADS1115_Ext2: Not Present GPIO Extender 1: Present GPIO Extender 2: Not Present
---------------------- Future Smart Garden System Expansions ---------------------- SunAirPlus: Not Present Lightning Mode: Not Present Solar Power Mode: Not Present MySQL Logging Mode: Not Present
---------------------- Moisture Sensor: Present ---------------------- ----------------- Scheduled Jobs ----------------- Jobstore default: blinkLED (trigger: interval[0:00:05], next run at: 2018-12-28 07:46:25 PST) statusLEDs (trigger: interval[0:00:15], next run at: 2018-12-28 07:46:25 PST) updateState (trigger: interval[0:00:10], next run at: 2018-12-28 07:46:25 PST) checkForAlarms (trigger: interval[0:00:15], next run at: 2018-12-28 07:46:25 PST) forceWaterPlantCheck (trigger: interval[0:00:08], next run at: 2018-12-28 07:46:27 PST) tick (trigger: interval[0:01:00], next run at: 2018-12-28 07:46:55 PST) checkAndWater (trigger: interval[0:15:00], next run at: 2018-12-28 08:00:55 PST) ----------------- Tick! The time is: 2018-12-28 07:46:55.589669
|
|
|
Post by brakow on Dec 28, 2018 7:51:47 GMT -8
When I check the Blynk app, the water level is in the red. At 11.8. I am using a small bucket with roughly 1 gallon of water. The bucket is half full and has water. Re-ran the calibration and notice the levels go from about 23 cm to 8-9 cm. So it is sensing the water, but maybe the system thinks the water is too low to pump? Help when you can, right now it is not watering at all.
|
|
|
Post by brakow on Dec 28, 2018 8:04:42 GMT -8
|
|
|
Post by SDL on Dec 28, 2018 9:02:09 GMT -8
Brakow,
Hmm. I am thinking that you have run the numbers backwards in the calibration routine. Could you post a run of the calibration run?
And also, Give me the numbers that are in your TankCalibration file BEFORE and AFTER!
The first number is EMPTY and the second number is FULL.
BP
|
|
|
Post by brakow on Dec 28, 2018 11:50:03 GMT -8
So I just logged in to the blynk app and saw the below messages in the screenshot. I will attempt to calibrate again and send you the output. But I am almost sure I followed the directions you supplied above.
Tank Empty Screen Shot
|
|
|
Post by SDL on Dec 28, 2018 16:38:35 GMT -8
That is consistent with the system thinking that the tank is empty. That's good news really.
BP
|
|
|
Post by brakow on Jan 2, 2019 15:54:37 GMT -8
Just completed a calibration of the water tank posted below, I will test the system levels and report back shortly.
|
|
|
Post by brakow on Jan 2, 2019 15:54:48 GMT -8
pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ sudo python CalibrateWaterTank.py ############################ Ultrasonic Tank Calibration SwitchDoc Labs Software Version: 001 ############################
Step 1) Empty Water Tank Step 2) Put Ultrasonic Sensor in place on top of tank
hit return to continue: Measuring Empty Level 16.687cm 16.842cm 16.858cm 16.719cm 16.719cm 16.756cm 16.756cm 16.736cm 16.736cm 16.773cm calibrated EMPTY Level= 16.8
Step 3) Fill Water Tank Step 4) Put Ultrasonic Sensor in place on top of tank
hit return to continue: Measuring Full Level 2.175cm 2.143cm 2.282cm 2.228cm 2.261cm 2.110cm 2.179cm 2.143cm 2.265cm 2.126cm calibrated FULL Level= 2.2
############################ Values written to TankCalibration File ############################ Calibration Complete ############################
|
|
|
Post by SDL on Jan 2, 2019 17:09:04 GMT -8
Run TestAll.py and post the results.
BP
|
|
|
Post by Guest2 on Jan 22, 2019 16:07:22 GMT -8
Having pump issues as well. The sensor is showing the pump, but pump is not working.
Re-ran the calibration and values we the same, checked sensors, and everything looks good minus two I/O errors and the pump appears to not be turning on. The system indicates that the pump turned on for a second and turned off, but no water is being sent to the plant.
sudo python SGS.py [Errno 121] Remote I/O error [Errno 121] Remote I/O error Error accessing 0x49: Check your I2C address Error accessing 0x49: Check your I2C address Error accessing 0x4A: Check your I2C address Error accessing 0x4A: Check your I2C address
SGS Version 009 - SwitchDoc Labs
Program Started at:2019-01-22 16:59:50
ADS1115: Present OLED: Present Sunlight Sensor: Present hdc1000 Sensor: Present Ultrasonic Level Sensor: Present
---------------------- Plant / Sensor Counts ---------------------- Sensor Count: 1 Pump Count: 1
---------------------- Extender Devices ---------------------- ADS1115_Ext1: Not Present ADS1115_Ext2: Not Present GPIO Extender 1: Not Present GPIO Extender 2: Not Present
---------------------- Future Smart Garden System Expansions ---------------------- SunAirPlus: Not Present Lightning Mode: Not Present Solar Power Mode: Not Present MySQL Logging Mode: Not Present
---------------------- Moisture Sensor: Present ---------------------- ----------------- Scheduled Jobs ----------------- Jobstore default: blinkLED (trigger: interval[0:00:05], next run at: 2019-01-22 16:59:56 MST) forceWaterPlantCheck (trigger: interval[0:00:08], next run at: 2019-01-22 16:59:59 MST) updateState (trigger: interval[0:00:10], next run at: 2019-01-22 17:00:01 MST) statusLEDs (trigger: interval[0:00:15], next run at: 2019-01-22 17:00:06 MST) checkForAlarms (trigger: interval[0:00:15], next run at: 2019-01-22 17:00:06 MST) tick (trigger: interval[0:01:00], next run at: 2019-01-22 17:00:51 MST) checkAndWater (trigger: interval[0:15:00], next run at: 2019-01-22 17:14:51 MST) ----------------- Pump #1 turned On Pump #1 turned Off Tick! The time is: 2019-01-22 17:00:51.328206
|
|
|
Post by Guest2 on Jan 22, 2019 16:12:27 GMT -8
OLED screen is also showing plant moisture is at 17% and displaying "Alarm!" message the "Plant Dry".
|
|
|
Post by SDL on Jan 23, 2019 16:26:31 GMT -8
OK. Have you carefully checked the wiring? Post a picture for me to check.
BP
|
|
|
Post by scottaandy on May 23, 2019 12:15:55 GMT -8
I'm experiencing the pump not turning ON when the moisture threshold is below 60. All sensors, OLED, and neopixel are working. SGS 002 Blynk app is displaying all readings nicely.
I have checked the pump. It does work when connected to 5V.
Here's my run:
pi@switchdoclabs:~ $ cd /home/pi/SDL_Pi_SmartGardenSystem pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $ sudo python SGS.py[Errno 121] Remote I/O error [Errno 121] Remote I/O error Error accessing 0x49: Check your I2C address Error accessing 0x49: Check your I2C address Error accessing 0x4A: Check your I2C address Error accessing 0x4A: Check your I2C address
SGS Version 009 - SwitchDoc Labs
Program Started at:2019-05-23 13:09:06
ADS1115: Present OLED: Present Sunlight Sensor: Present hdc1000 Sensor: Present Ultrasonic Level Sensor: Present
---------------------- Plant / Sensor Counts ---------------------- Sensor Count: 1 Pump Count: 1
---------------------- Extender Devices ---------------------- ADS1115_Ext1: Not Present ADS1115_Ext2: Not Present GPIO Extender 1: Not Present GPIO Extender 2: Not Present
---------------------- Future Smart Garden System Expansions ---------------------- SunAirPlus: Not Present Lightning Mode: Not Present Solar Power Mode: Not Present MySQL Logging Mode: Not Present
---------------------- Moisture Sensor: Present ---------------------- ----------------- Scheduled Jobs ----------------- Jobstore default: blinkLED (trigger: interval[0:00:05], next run at: 2019-05-23 13:09:13 PDT) forceWaterPlantCheck (trigger: interval[0:00:08], next run at: 2019-05-23 13:09:16 PDT) updateState (trigger: interval[0:00:10], next run at: 2019-05-23 13:09:18 PDT) statusLEDs (trigger: interval[0:00:15], next run at: 2019-05-23 13:09:23 PDT) checkForAlarms (trigger: interval[0:00:15], next run at: 2019-05-23 13:09:23 PDT) tick (trigger: interval[0:01:00], next run at: 2019-05-23 13:10:08 PDT) checkAndWater (trigger: interval[0:15:00], next run at: 2019-05-23 13:24:08 PDT) ----------------- lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False Tick! The time is: 2019-05-23 13:10:08.772894 lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False Tick! The time is: 2019-05-23 13:11:08.774063 lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False Tick! The time is: 2019-05-23 13:12:08.772180 lastAlarm= True activeAlarm= False lastAlarm= True activeAlarm= False ^Cexiting program Pump #1 turned Off done Segmentation fault pi@switchdoclabs:~/SDL_Pi_SmartGardenSystem $
I've checked the wiring set-up twice. Please, advise on how next to troubleshoot. Thanks.
|
|
|
Post by scottaandy on May 23, 2019 12:21:42 GMT -8
Here's the
pi@switchdoclabs:~ $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: 40 -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- pi@switchdoclabs:~ $
|
|