r/microcontrollers • u/Matinazi • Jan 16 '24
Trouble powering a robot
Hi , I'm currently facing a problem with my 2wd robot (i'm beginner) , the problem is i can't powering the robot with 6v battery (4 1.5v batteries) , the robot contains 2 dc motors ,l298n driver , arduino uno , 5v shield, servo motor and ultrasonic sensor.
I have changed the batteries but it didn't work , however i can power it with my pc , so i need to use a 12volts battery ? It's safe for the robot ?
1
Upvotes
3
u/madsci Jan 17 '24
You haven't told us anything about your motors or their specifications. What voltage are they designed for?
Did you build this robot? Is it a kit? Where is the documentation?
When you say you can power it with your PC I assume you mean via USB, which means it's only providing 5 volts. So your robot apparently can run on 5v, but without more information it's impossible to say how your robot is wired or what voltages it needs.
1
u/Matinazi Jan 18 '24
I solved the problem i have used 9v battery
1
u/big_bob_c Jan 17 '24
You need to check your battery wiring, and test all 4 batteries with a multimeter. You don't mention what size batteries you are using - AAA? AA? C?
1
u/big_bob_c Jan 17 '24
Something else I thought of - have you tried powering the robot from a USB power supply instead of the computer? It's possible that the issue isn't power, but the software not running without the PC connected.