Post by pmoise on Apr 25, 2019 23:39:01 GMT -8
Hello,
After running the system for several weeks without any problem, the Waterlevel sensor seems to have a problem in Blynk which prevent automatic watering.
I confirm the pump are working very well when using manual watering.
I confirm the moisture sensor works well as when I manually water, Blynk and OLED report moisture change
In the tankcalibration file, I can read
52.1, 35.0
On the blynk app in the log I can read Plant # pumpWater overruled - Tank Empty
this is the device in action
thanks for your help
Pascal
Those are the command I did run on the raspberry
pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: 40 -- -- -- -- -- -- -- 48 49 4a -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ cd SDL_Pi_SmartGardenSystem
pi@raspberrypi:~/SDL_Pi_SmartGardenSystem $ sudo python testAllSensors.py
Test All SGS Devices Version 1.0 - SwitchDoc Labs
Program Started at:2019-04-24 15:42:46
Temp = 24.806 deg C
Humidity = 67.18 %
-----------------
Sunlight Vi/IR/UV Sensor
-----------------
Sunlight Visible: 265
Sunlight IR: 508
Sunlight UV Index: 0.08
227.571428571
Moisture Humidity = 32.51
------------------------------
Sensor Value=909 --> Fresh Air | 0
Ultrasonic Level
Grove Ultrasonic get level and print
34.731cm
34.661cm
34.829cm
34.731cm
34.715cm
34.747cm
34.764cm
34.833cm
34.641cm
34.796cm
----------------------
Main Sensors
----------------------
ADS1115: Present
OLED: Present
Sunlight Sensor: Present
hdc1000 Sensor: Present
Ultrasonic Level Sensor: Present
----------------------
Plant / Sensor Counts
----------------------
Sensor Count: 9
Pump Count: 9
----------------------
Extender Devices
----------------------
ADS1115_Ext1: Present
ADS1115_Ext2: Not Present
GPIO Extender 1: Present
GPIO Extender 1: 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@raspberrypi:~/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
52.190cm
52.170cm
52.137cm
52.154cm
52.117cm
52.137cm
52.137cm
52.154cm
52.121cm
52.170cm
calibrated EMPTY Level= 52.1
Step 3) Fill Water Tank
Step 4) Put Ultrasonic Sensor in place on top of tank
hit return to continue:
Measuring Full Level
35.005cm
34.968cm
34.952cm
34.968cm
34.915cm
34.952cm
34.972cm
34.968cm
34.935cm
34.952cm
calibrated FULL Level= 35.0
############################
Values written to TankCalibration File
############################
Calibration Complete
############################
pi@raspberrypi:~/SDL_Pi_SmartGardenSystem $
After running the system for several weeks without any problem, the Waterlevel sensor seems to have a problem in Blynk which prevent automatic watering.
I confirm the pump are working very well when using manual watering.
I confirm the moisture sensor works well as when I manually water, Blynk and OLED report moisture change
In the tankcalibration file, I can read
52.1, 35.0
On the blynk app in the log I can read Plant # pumpWater overruled - Tank Empty
this is the device in action
thanks for your help
Pascal
Those are the command I did run on the raspberry
pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: 40 -- -- -- -- -- -- -- 48 49 4a -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ cd SDL_Pi_SmartGardenSystem
pi@raspberrypi:~/SDL_Pi_SmartGardenSystem $ sudo python testAllSensors.py
Test All SGS Devices Version 1.0 - SwitchDoc Labs
Program Started at:2019-04-24 15:42:46
Temp = 24.806 deg C
Humidity = 67.18 %
-----------------
Sunlight Vi/IR/UV Sensor
-----------------
Sunlight Visible: 265
Sunlight IR: 508
Sunlight UV Index: 0.08
227.571428571
Moisture Humidity = 32.51
------------------------------
Sensor Value=909 --> Fresh Air | 0
Ultrasonic Level
Grove Ultrasonic get level and print
34.731cm
34.661cm
34.829cm
34.731cm
34.715cm
34.747cm
34.764cm
34.833cm
34.641cm
34.796cm
----------------------
Main Sensors
----------------------
ADS1115: Present
OLED: Present
Sunlight Sensor: Present
hdc1000 Sensor: Present
Ultrasonic Level Sensor: Present
----------------------
Plant / Sensor Counts
----------------------
Sensor Count: 9
Pump Count: 9
----------------------
Extender Devices
----------------------
ADS1115_Ext1: Present
ADS1115_Ext2: Not Present
GPIO Extender 1: Present
GPIO Extender 1: 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@raspberrypi:~/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
52.190cm
52.170cm
52.137cm
52.154cm
52.117cm
52.137cm
52.137cm
52.154cm
52.121cm
52.170cm
calibrated EMPTY Level= 52.1
Step 3) Fill Water Tank
Step 4) Put Ultrasonic Sensor in place on top of tank
hit return to continue:
Measuring Full Level
35.005cm
34.968cm
34.952cm
34.968cm
34.915cm
34.952cm
34.972cm
34.968cm
34.935cm
34.952cm
calibrated FULL Level= 35.0
############################
Values written to TankCalibration File
############################
Calibration Complete
############################
pi@raspberrypi:~/SDL_Pi_SmartGardenSystem $