Automatic irrigation system - esp32-poe

Hello I am just starting with my first project with esp32 and need some advice.
It is all very new for me. Hope you can help me.

I am trying to build automatic irrigation system for a small garden.
We have here a water tank for rain water (7 m deep) and water tap.

I would like to place ultrasonic sensor in the water tank - got for this olimex esp32-poe

(ESP32-POE - Open Source Hardware Board)

with waterproof ultrasonic sensor JSN SR04T.

Also I have a RainMachine Mini 8.

My plan is to some how use 24V from master valve of RainMachine as a input for signal for esp32-poe with waterproof ultrasonic sensor .

Once RainMachine starts irrigation this signal should tell esp32-poe with ultrasonic sensor to:

  1. check water level in the tank
  2. If it is 2 or more meters esp32-poe should command sonoff -1 to power on the pump in the water tank .
  3. If it is less than 2 meters esp32-poe should command sonoff -2 to open valve of the water tap.

I hope somebody can help me and point me into right direction how I can use 24V from master valve of RainMachine as a input for signal and how I can connect outputs from esp32-poe to sonoff-1 and sonoff-2 to switch them on or off.

At the moment I got esp32-poe with waterproof ultrasonic sensor working and getting measurements from sensor. Thx & Regards

Myultrasonicsensorlivedforabout8monthsafterthatidied.iswitchedovertoafloatswitchandthatworksperfect.

Btw, try to give your text a bit more understandable layout

Hi thx for your advice. Did you use the waterproof sensor? I have waterproof sensor and hope this one will stay a live :slight_smile: Regards

I tried to use the waterproof sensor JSN SR04T afterwards but never got it to read as reliable as the normal HC SR04. Accuracy was off and once in 10 Rafa the responce was 0. Have you tested your setup at your fixed 2 meters distance?

I switched over to float switches and these are reliable and easy to use. If you only need to know a specific water level (sounds like that in your description, level of x, do something) i can higly recommmend using those.

For the input, you could use a voltage devider to get the signal dosn to acceptable voltage.

I encourage you to edit your opening post to make it easier for others to read, it will help you getting more response.

mchrusto:
Hello I am just starting with my first project with esp32 and need some advice.
It is all very new for me. Hope you can help me.
I am trying to build automatic irrigation system for a small garden.
We have here a water tank for rain water (7 m deep) and water tap.
I would like to place ultrasonic sensor in the water tank - got for this olimex esp32-poe with waterproof ultrasonic sensor.
Also I have a RainMachine Mini 8.
My plan is to some how use 24V from master valve of RainMachine as a input for signal for esp32-poe with waterproof ultrasonic sensor .
Once RainMachine starts irrigation this signal should tell esp32-poe with ultrasonic sensor to check water level in the tank.
If it is 2 or more meters esp32-poe should command sonoff -1 to power on the pump in the water tank .
If it is less than 2 meters esp32-poe should command sonoff -2 to open valve of the water tap.
I hope somebody can help me and point me into right direction.
How I can use 24V from master valve of RainMachine as a input for signal and how I can connect outputs from esp32-poe to sonoff-1 and sonoff-2 to switch them on or off.
At the moment I got esp32-poe with waterproof ultrasonic sensor working and getting measurements from sensor.
Thx & Regards

Sorry had to spread it out.
Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .

esp32-poe, link to spec/data?
Rainman, link to spec/data?

Tom... :slight_smile:

to take any voltage down to a level that can be used, you need to use a voltage regulator

voltage regulator

you did not say if the voltage was AC or DC.
but you can get what you need in a similar board.

Hi
thx a lot for all information.

My olimex eps32-poe with waterproof ultrasonic sensor JSN SR04T is runnig very stable.

I got now 2 Channel Relay Module 5V DC 230V.

My plan now is to use it with esp32-poe to control 2 valevs - one for pump and other one for water tap.

I am still looking for solution how I can use RaimMachine to send signal to esp32-poe.

The RaimMachine output that I have to use a signal is 24VAC 50/60Hz max 10VA.

Regards
Michal

Hi. Good to hear that your ultrasonic module is working great. Would you like to share your code? I wonder if maybe my module is the culprit in my project since i never got it to run reliable.

It would be a great help.

mchrusto:
I got now 2 Channel Relay Module 5V DC 230V.

My plan now is to use it with esp32-poe to control 2 valevs - one for pump and other one for water tap.

I am still looking for solution how I can use RaimMachine to send signal to esp32-poe.

The RaimMachine output that I have to use a signal is 24VAC 50/60Hz max 10VA.

You can use 4 diodes and make a full wave rectifier to get DC voltage
Then a voltage divider to get in the 5volt range.
Hand Draw and post your circuits if need help figiring this out.