Installing Wi-Fi controlled valve for watering my plants

in #hive-1635212 years ago

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.

Sort:  


Credit: arthursiq5
Earn Crypto for your Memes @ hiveme.me!

Yes. Thank you!
!LUV !PIZZA !MEME !hiqvote


Credit: cmmemes
Earn Crypto for your Memes @ hiveme.me!

Loading...

PIZZA!

PIZZA Holders sent $PIZZA tips in this post's comments:
@princekham(2/5) tipped @asterkame (x1)

Please vote for pizza.witness!

Yay! 🤗
Your content has been boosted with Ecency Points, by @princekham.
Use Ecency daily to boost your growth on platform!

Support Ecency
Vote for new Proposal
Delegate HP and earn more

Cool,ESP8266 seems like it can do anything😂

I made ardunio drone and also CNC engarving

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

that is my higher school project mey I post about it

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

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

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.


@haritha1995, this post has been manually curated with LUV

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. 
 

Loading...