Powering a 24 Volt sensor with an arduino? Answered
Ok here is the issue. Right now I am designing a rain water collection system by having my down spout drain into a 55 gallon plastic drum. I want to cap the drum to avoid spillage. The problem is what happens when the drum is full and the rain is still coming in. I know there are plenty of mechanical ways to solve this problem but I wanna have fun with an Arduino I have laying around. What I am thinking is run a pipe out of the bottom that has an irrigation valve installed (for anyone who is reading that that isn't aware of what an irrigation valve is, it is and inexpensive solenoid valve that is used for unground sprinkler systems). I figure I will add a water level sensor to the inside of the barrel and then hook the sensor and valve together via my Arduino. From there type a little code and violaa I have an over fill protection device!
Here is the problem: An irrigation valve is 24v and the Arduino is 6volts. I know I can get the 24 volts from a power supply down to 6volts via resister, but then how would power the valve? My goal is to NOT have to buy a 12volt 1" solenoid (i didn't want to spend a lot of money on this project). I am not sure if there is a solution to this problem, but being a very green/inexperienced electronics hobbyist figured could hurt to ask.