Hi everyone,
I am new to electronics but am very experienced with residential electrical systems. I need some help figuring out what I need.
I have a couple ball valve motors that work on 5vdc phone charger power supplies. I am using them to turn water supplies on/off and they are smart valves, so I can operate them remotely already. I want them to be able to be able to automatically turn on or off if a temperature sensor detects a preset temp and also if a smoke sensor detects a preset amount of smoke.
Can you direct me to the proper board(s) that would work for my use case and could function on the same 5vdc 2-3a power supply?
Thanks,
Sam
The arduino NANO would be ok voltage wise, how many pins will you need (sensors and valves)
I'll have two valves, each having a smoke and temp sensor. So 4 sensors total. I'd probably prefer two separate boards
Lot's of room on one, do you need/want IoT/cloud access, WiFi/web access? If not a straight NANO will do. You will need a relay for each valve or if adventurous the modern equivalent being a MOSFET driver both will work. The temp and smoke detectors do not sound like standard Arduino temp sensors so that may require some circuit building.
Wifi access would be nice.
Not sure if I want to go through the learning process to do all of this, though, haha. Sounds like it will be quite involved. I was hoping for a more plug and play type thing
Forget the WiFi then. The valves are simple, simply connect the valves to the relay NO contacts, supply whatever voltage you need for the valves. The control side of the relay is 1 wire to Ground, 1 to a digital pin. Code simplistically is write HIGH to the pin.
The temperature is best done by buying Arduino-compatible temperature sensors. It is two wires, G and signal, the code just reads the pin periodically. The smoke detector will take some digging, but I think I know a website that has done that.
As far as code, you will look for examples for reading the temp, and for driving a relay. plus the smoke one that I will go see about right now.
Here is the website with a project to measure all kinds of stuff. I don't know what you mean by smoke but this sketch has a few sensors, pick and choose what you need,
https://bitl.to/4At2
Thanks very much for the info and looking that up! I will look into it some more