Guys! I have a job to present tomorrow using arduino, my project is about irrigation with Arduino, where I have it;
1 Protoboard
1 Arduino ONE
1 2-Channel Relay Module
1 Solenoid Valve 12v
1 12v power supply for Arduino
Check how is my circuit assembled, am I doing anything wrong?
(The image is from the TinkerCad site, but I can not find this project in the website anymore, thats all I have.)
obs: I'm not using humidity sensor.
This is my first time with Arduino.
If anyone can help me to structure a code I would be very happy!
Because it's very simple, but I do not know where to start.
I just want you to do the following action, employee noticed that the plants need water, runs the program that causes the solenoid to open for about 1 minute and after that the system is turned off.
By all means, save that LCD as nostalgic and buy a more equipped one from eBay. They really don't cost much. Either You go for a parallell port communication type or an I2C bus output communication pinsaving solution.
The point of using a relay module is that you can separate the solenoid circuit from the Arduino.
So remove the black ground wire that's between 12volt(-) and breadboard.
A solenoid, wen turned off, creates a high kickback voltage that could upset/restart your Arduino and eventually weld the contacts of the relay together.
You must add a (1N4004) diode across the solenoid to prevent that.
A "once for 1-minute" action can easilly be done in setup().
This is very basic stuff, and you should be able to do that yourself after reading some of the examples that come with the IDE.
Post your best attempts if you get stuck.
Leo..