i read few post of people saying that 9v are not that good to run motors that AA are better⌠should i just get like a 4cell battery holder so it will be 6v? will that do it?
Everything you want to work with only needs 5V so running it off the Arduino is fine. no need to play around with an external power source unless your ready to regulate it doen from 6V to 5V so you donât burn out the arduino accidentally feeding that 6V directly into one of the pins.
Start looking at the items your going to run. They will all have spec sheets telling you the min and max voltages they use and how much current they ca draw. Find the max current for all items and add them up. Now you know how much current they will all pull if they are all running maxed out and doing so at the same time.
If you have everything running full bore constantly then yes a 9V can be drained quite fast. But a 9V is a good place to start. If run time becomes a concern you can always turn to using 4 to 6 D cell batteries. Though a better option may be using a 9.6V battery pack from an RC car. Those are made for running heavy loads like motors running hard.
Note that a 9V battery PACK is not the same as a 9-volt battery. Youâd use 6 or 8 rechargeable AA or AAA cells in a holder. And for running motors, rechargable is the way to go, unless you really like buying non-rechargables by the case
8 cells is probably a better choice than 6, since a NiMH cell puts out around 1.2 volts, rather than the 1.5 of a non-rechargable alkaline cell.
Well i was thinking about using a â9V batteryâ for the arduino and then a 2-cell AA (3V) for the motors and connect it to the ext pwr on the motor board
well i got the motors in today and they wont run using a 2cell battery when i take the jump the motors try to move but it never happens, if i remove this 2 cell holder and put the jumper back in and run everything using the 9v it works fine but⌠i have issues⌠if i use this code:
#include <AFMotor.h>
AF_DCMotor motor1(1);
AF_DCMotor motor2(2);
void setup() {
motor1.setSpeed(200); // set the speed to 200/255
motor2.setSpeed(200); // set the speed to 200/255
}
void loop() {
motor1.run(FORWARD); // turn it on going forward
motor2.run(BACKWARD); // turn it on going forward
}
Both motors will spin forward and everything seems to work⌠but if i add a reverse action or a delay the motors will get stock like they will try to work but they wont start and then it works then it stops⌠im going to try to put a cap 0.1 in the motor connectors tomorrow and see how that goesâŚ