Sensor platform for monitoring PH, Temperature, 02 absorption, and conductivity for Hydroponics Systems
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Now have the sensor platform out in the garden. I used the following components to get things weatherproof and run power.
Here is the inside of the box
Here it is hooked up to the hydroponics tower structure. I am not happy with the organization. I think I will want to mount it to the tower structure. but right now, it works.
I have more information on my blog here: https://catalinatechnology.wordpress.com/2017/01/10/phtemp-meter-now-in-the-garden/
I was getting an invalid voltage reading on the ADC converter. and after tracing all my soldering, I realized that I connected to the wrong Analog pin. Dolt!!! Anyway, now everything working great.
Next steps, adding Dissolved O2 sensor and switch out to post data to Azure IoT hub.
new pic below:
Cleaned up my prototype a bit by moving it off the breadboard and soldered to a smaller perf board. Also added some screw down terminals to connect the external sensors.
One problem is that now the PH sensor is always reading a PH of about 2.5. Either I have something wrong in the wiring (I dont think so), or the probe went bad. I heard that these probes can be a bit weird. I am going to try to attach to a Leonardo Arduino and see if I get different results there. (ie. bypass my ADC converter and just read the analog directly on a real arduino).
The results of the build are below. More to come later.
Create an account to leave a comment. Already have an account? Log In.
I'm just wondering if it would work for long time if used 24/7 underwater, did you already tested?
hi! thanks for sharing your project! where ui can find sketch code?
Hi Brian,
the hardware is now in my hand.
Unfortunately, i clound not find the software :(
Please send me the link
many thanks
Werner
great minds think a like LOL
The Hydro part
https://hackaday.io/project/2964-hydropwnics
The sensing part
https://hackaday.io/project/10457-sunleaf
I'm going to be doing the pH after the next iteration of the sunleaf sensing platform.
Can you give a bit more info on the pH sensor? They tend to be rather finicky and need regular calibration.
I haven't been using it for long. I have tried in 2 different environments (freshwater hydroponics tank and a saltwater fish holding pen in a marina), and tested against a stand-alone PH meter, and it is working pretty well. What I did is an initial test with a PH calibration solution and then did an offset based on what my readings were. the meter was slightly off, so I did an offset to handle it (see below)
#define Offset -0.03 //deviation compensate
then in my loop(){}, I did this (where I added the Offset value to my final pHValue).
static float pHValue, voltage;
int16_t adc0;
adc0 = ads.readADC_SingleEnded(0);
voltage = (adc0 * 0.1875) / 1000;
pHValue = 3.5*voltage + Offset;
What I am going to end up doing is being able to have a calibration mode that I can put the device into (pressing a button), and then place the device into the calibration solution, which will then update the Offset and store in non-volatile memory. I figure that I would do this every week or so to keep it in calibration.
sounds good. pH sensors should be kept wet, either in the solution you're measuring or in 3M KCl. they also gradually age and lose sensitivity, so keep an eye on the slope in addition to the offset value; once the slope drops to 90% or so of its original value the probe is probably no longer reliable. Best way to get a good idea of slope is to do _two_ calibrations at different pH levels that bound your expected measurement range, such as 4.0 and 7.0.
Good advice on the continuing of testing. I keep my standalone PH sensor always in solution when I am not using it and recalibrate every few months.
On this particular sensor, it is going to be submerged 100% of its lifespan. Others have noted that this PH sensor is good for about 6 months. I am going to be using it in two different environments (freshwater for hydroponics and saltwater for Aquaculture). The saltwater is going to be a bit more harsh, so I figure that I am going to give it about 4 months of lifespan before replacing. That isn't terrible since having 1,000 fish floating on the surface, because the PH became toxic for them, is much worse than replacing a $40 sensor every few months.
Become a member to follow this project and never miss any updates
By using our website and services, you expressly agree to the placement of our performance, functionality, and advertising cookies. Learn More
Hi, is it possible to have the code please?Thank you