Hi I am working on a project where I have a bunch of sensors. I want a way to tell the arduino that if the voltage from the power supply is less than 12v, tell 3 motors to run. (actually its a water pump, a oxygen pump and a micro servo) but the code for 3 motors will do as I only wanna understand the volt command.
I have figured out the circuit. I want to tell the arduino, if the voltage from power supply (I supplied via the Vin pin) is less 12v, just run those "3 motors" but dont run the rest of the sensors.
I've given the schematics, but really sorry I haven't done the code yet. I just copied a bunch of codes from tutorials for the sensors I used.
Would you still like to see it ? -it's really a mess.
I don't really understand, is the 5v not enough ? So since I powered the arduino with 20v (via the solar panels - which goes thru a 20v regulator 1st ofc) can I remove the 5v supply, directly connect the breadboard to the vin and gnd? would that work ?
But I need a total of 19.1v approx. (excluding the 2 water & oxy pumps). The limit of volts in the arduino is 20v - so it should be fine right? and I just realised the Vin is an input. How can I power the breadboard with more than 5v to be enough for components on the breadboard?
and the links ill give tmr, i have to find the sensors again..sorry
If you supply 20v to the Arduino Vin pin, the voltage regulator on the Arduino will get very hot if you take too much current from the Arduino 5v pin. You can damage the Arduino if the regulator fails.
Since you have the two solar cells powering the Arduino only, there is no need that they need to be 20; use 10v on the Vin pin.