Installing Wi-Fi controlled valve for watering my plants

avatar
(Edited)

Dear friends from STEM community,

Today, I finished installing solenoid valve for watering plants in front of my house. The valve is operated by a switch that can be controlled over the network through WiFi. I can use timers for opening the switch and I think, for the moment, I will be using the timer mostly.

The circuit for the switch was built by me. I used esp8266 to run a relay. I put an optocoupler between them; as can be seen below in (fig 1) and the relay run the solenoid valve in the garden.


fig (1) Testing the WIFI-controlled switch




fig (2) The switch module is powered with 12 V power supply


fig (3) The solenoid valve in the garden


For the firmware, I used Tasmota firmware from http://ota.tasmota.com/tasmota/release/ . First, I tried the web installer to install the firmware but it didn't work for some reason. So, I used tasmotizer installer from https://github.com/tasmota/tasmotizer and the firmware was installed seamlessly. For installing the firmware, I used esp8266 connector as below in (fig 4).

fig (4) esp8266 programmer


Configuring the esp8266, after the firmware installation, was easy. I just need to do it through web page with device ip as below. I needed to choose the right module - in my case, I chose 'Generic (18)' for my esp8266 module and set up the right pin for the relay. And the nice thing about this firmware is it has 16 timers that I can use to set for opening/closing my solenoid valve (fig 5). It has other feature like connecting to MQTT server but I am not going to use it currently.

fig (5) The Tasmota web interface and the timer


Now, raining season is going to end very soon and there won't be rain in winter season (unless there is storm). So, I just set this up to reduce my workload and for testing home automation.

Below are some of the plants that my new system will provide water. This is my first step in home automation. I hope I can expand more and I think next time, I will use a ready made hardware like 'Sonoff Basic' because setting up hardware is quite a hassle that took much of my time.

Thank you for reading. Have a nice day!

@princekham
4th Oct 2022
Myanmar.



0
0
0.000
20 comments
avatar

Great idea and really cool!
!LUV
!PIZZA
!MEME
!hiqvote

0
0
0.000
avatar



@princekham you !PIMP, the HiQ Smart Bot has recognized your request and will start the trail now. !PIZZA


Delegate HP to @hiq.hive, BEE to @hiq.bee,
PHOTO to @hiq.photo, FUN to @hiq.fun,
ONEUP to @hiq.oneup or PIMP to @hiq.pimp
to support the HiQ Smart Bot and its trails,
and grab "massive" rewards!

If you have at least 10 HIQS staked
and your daily limit is not exceeded,
then juicy votes will follow!

Check out HiQ - The Hivestyle Magazine,
fomo into HiQs - The Support Token
& vote our fucking Witness!

This is a semi automatically created manual curation. !LOL
Currently this sexy Smart Bot is in the testing phase though.
For further questions, feel free to contact @hiq.redaktion via comment or Discord.

0
0
0.000
avatar



@asterkame you !PIMP, the HiQ Smart Bot has recognized your request and will start the trail now. !PIZZA


Delegate HP to @hiq.hive, BEE to @hiq.bee,
PHOTO to @hiq.photo, FUN to @hiq.fun,
ONEUP to @hiq.oneup or PIMP to @hiq.pimp
to support the HiQ Smart Bot and its trails,
and grab "massive" rewards!

If you have at least 10 HIQS staked
and your daily limit is not exceeded,
then juicy votes will follow!

Check out HiQ - The Hivestyle Magazine,
fomo into HiQs - The Support Token
& vote our fucking Witness!

This is a semi automatically created manual curation. !LOL
Currently this sexy Smart Bot is in the testing phase though.
For further questions, feel free to contact @hiq.redaktion via comment or Discord.

0
0
0.000
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

0
0
0.000
avatar

Cool,ESP8266 seems like it can do anything😂

0
0
0.000
avatar

I made ardunio drone and also CNC engarving

0
0
0.000
avatar

I see. !luv I cannot turn to that parts yet.

0
0
0.000
avatar
avatar

can you tell about this token what can i do with it because Iam newer to Hive

0
0
0.000
avatar

Hi there! The main thing you can do with this token is give it away. The purpose of the LUV token is to show some love to another person on the Hive chain by using the command !LUV. You need to have 10 LUV already, but then you can give one per day for free. Let me (@crrdlx) know if you have any questions.

0
0
0.000
avatar

that is my higher school project mey I post about it

0
0
0.000
avatar

I see. You post it already ? I didn't find it.

0
0
0.000