Materials that I have:
Arduino UNO x1
Protoboard x1
Cables x50
SG90 Servo Motor x2
MG 996R Servo Motor x3
Joysticks x3
What I want to do is, is the next:
Joystick 1: Control 2 MG 996R
Joystick 2: Control 1 MG 996R and 1 SG90
Joystick 3: Control the last SG90
I search for days on the internet for tutorials, guides, people with similar projects w/o results, and I would like to know if someone here knows a tutorial or a guide or similar that can help me with this project.
Best Regards
-Engineer
How are you planning to power the servos ?
UKHeliBob:
How are you planning to power the servos?
I have an external battery with 10V and a USB Cable Type B to power up the Arduino.
I know that you can put all the V you want into the Arduino UNO but it will only come out 5V or 3.3 V so I have an external battery that connects to the protoboard.
Engineer101:
I have an external battery with 10V and a USB Cable Type B to power up the Arduino.
I know that you can put all the V you want into the Arduino UNO but it will only come out 5V or 3.3 V so I have an external battery that connects to the protoboard.
What you "know" is wrong. You cannot put "all the voltage you want into the Arduino UNO" or you will kill it.
Similarly your 10V battery is too much for the servos which are specified for 4.8 to 6V. And connecting high power devices like servos via a breadboard is a very bad idea.
So once more - how do you intend to power your servos?
slipstick:
What you "know" is wrong. You cannot put "all the voltage you want into the Arduino UNO" or you will kill it.
Similarly your 10V battery is too much for the servos which are specified for 4.8 to 6V. And connecting high power devices like servos via a breadboard is a very bad idea.
So once more - how do you intend to power your servos?
Well, removing that, I'm out of ideas. Maybe I can put resistance to reduce the voltage that comes from the battery.
Engineer101:
Maybe I can put resistance to reduce the voltage that comes from the battery.
You can't use a resistor to reduce the voltage from a power supply. Either get a battery that produces the correct voltage or get a suitable voltage regulator that will convert to the lower voltage.
...R
anyways, any suggestions or something?
Get yourself some holders that take 4 AA batteries. That'll get you 6V. Use those to power your servos. You'll need several, hopefully two or three will do it. Connect the grounds to the arduino.
Play around with the servos starting with the sweep example until you're convinced you can control them and know how much rotation each type can manage.
Wire up a joystick so you can analogRead it. Once you can do one, add the others. Then bit by bit, add some code that controls the servos using the pot readings from the joysticks. One at a time for preference - big bang testing is less than ideal.