Hackaday.io Hackaday.io
Projects
Recently Updated Most Likes Newest Project Lists
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Profiles Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

PH & Temperature Sensor to monitoring Hydroponics

Sensor platform for monitoring PH, Temperature, 02 absorption, and conductivity for Hydroponics Systems

Brian WhartonBrian Wharton
Following Follow project
Liked Like project

Become a Hackaday.io member

Not a member? You should Sign up.

Already have an account? Log in.

Sign up with Github
Sign up with Twitter
OR
Forgot your password?

Just one more thing

To make the experience fit your profile, pick a username and tell us what interests you.

Pick an awesome username
hackaday.io/
Your profile's URL: hackaday.io/username. Max 25 alphanumeric characters.
Pick a few interests
Projects that share your interests
People that share your interests

We found and based on your interests.

Choose more interests.

OK, I'm done! Skip
Join this project
Similar projects worth following
23k views
9 comments
155 followers
34 likes
  • Description
  • Details
  • Files 0
  • Components 6
    • View all
  • Logs 3
    • View all
  • Instructions 0
  • Discussion 9
View Gallery
23k
9
155
34

Team (2)

  • Brian WhartonBrian Wharton
  • WicusWicus

Join this project's team
  • Blog post on initial test
  • Video of test in action
hardware
ongoing project
ESP8266 iot hydroponics

This project was created on 12/30/2016 and last updated 6 years ago.

Description

I created a PH and Temperature sensor to use for my hydroponics system. This is right now streaming back to io.adafruit.com.

Right now, the platform handles PH, air temperature, and water temperature. The goal is to add O2 absorption and conductivity. As well as stream the data to an Azure IoT Hub. That hub will then be able to store certain data in data storage, trigger events, etc.

Components

  • 1 × NodeMcu ESP8266 ESP-12E WIFI Development Board
  • 1 × DS18B20 Temperature Sensor (water proof for H2O temperature readings)
  • 1 × DS18B20 temperature sensor that is going to be soldered to the project board for airtemp
  • 1 × ADS1115 16bit ADC to convert the analog signal from the PH sensor to digital
  • 1 × DC to DC voltage converter to handle the required 5v for the PH sensor (the ESP8266 is 3.3v)

View all 6 components

Project Logs
Collapse

  • PH/Temperature sensor platform now in the garden

    Brian Wharton • 01/10/2017 at 22:12 • 0 comments

    Now have the sensor platform out in the garden. I used the following components to get things weatherproof and run power.

    1. Weatherproof indoor/outdoor box to hold my sensor platform and power
    2. 1' power cord extensions to make it easy to plug in "wall wort" for microcontroller power
    3. Power stake to split extension so that I can run pump and sensor platform

    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/


  • Figured out my problem

    Brian Wharton • 01/05/2017 at 22:24 • 0 comments

    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

    Brian Wharton • 01/05/2017 at 14:59 • 0 comments

    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.

View all 3 project logs

Enjoy this project?

Share

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

Sign up with Github
Sign up with Twitter
OR
ric76 wrote 03/22/2020 at 19:56 • point

Hi, is it possible to have the code please?Thank you

  Are you sure? yes | no

Mateus wrote 05/07/2019 at 19:30 • point

I'm just wondering if it would work for long time if used 24/7 underwater, did you already tested?

  Are you sure? yes | no

ilucaphone wrote 11/23/2018 at 08:47 • point

hi! thanks for sharing your project! where ui can find sketch code?

  Are you sure? yes | no

seidenadler wrote 05/10/2018 at 17:05 • point

Hi Brian,

the hardware is now in my hand.

Unfortunately, i clound not find the software :(

Please send me the link

many thanks

Werner

  Are you sure? yes | no

AVR wrote 01/04/2017 at 02:41 • point

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. 

  Are you sure? yes | no

zakqwy wrote 12/30/2016 at 15:37 • point

Can you give a bit more info on the pH sensor? They tend to be rather finicky and need regular calibration.

  Are you sure? yes | no

Brian Wharton wrote 12/30/2016 at 16:56 • point

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.

  Are you sure? yes | no

zakqwy wrote 12/30/2016 at 17:02 • point

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. 

  Are you sure? yes | no

Brian Wharton wrote 12/30/2016 at 17:06 • point

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.

  Are you sure? yes | no

Similar Projects

Can we get fruit trees to report to us when their fruit is ripe?
Project Owner Contributor

Electronic nose to detect fruit ripening

CraigCraig

This Portenta things have become like an addiction here I post a new project where I used a thermocouple sensor through my Arduino Portenta.
Project Owner Contributor

Portenta and Thermocouple Sensor (with MAX6675)

DIY GUY ChrisDIY GUY Chris

A wireless station that converts RS485 to LoRa, WIFI or Bluetooth.
Project Owner Contributor

RS485-LoRa Wireless Station

MakerfabsMakerfabs

The 2017 Hackaday Prize
Implement a PM 2.5 sensor with Internet and Twitter connectivity to track air quality with a low cost device.
Project Owner Contributor

Low cost Air Quality sensor

valencia.cavalencia.ca

Does this project spark your interest?

Become a member to follow this project and never miss any updates

Going up?

About Us Contact Hackaday.io Give Feedback Terms of Use Privacy Policy Hackaday API

© 2023 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "PH & Temperature Sensor to monitoring Hydroponics", please tell us the reason.

Send message

Your application has been submitted.

Remove Member

Are you sure you want to remove yourself as a member for this project?

Project owner will be notified upon removal.