I'm working on a project where I have 2 motors lifting this thing like a hinge but it does have enough power. So now i thought of a servo, so I learned some basic stuff but none of them tells me if the Arduino UNO is able to control a servo unconnected from my PC after i would have code. And also what does the button on the UNO do?
The Servo library allows you to control servos - but you'll need separate and adequate
power for the servos, budget at least 1A per servo if they are small, more if large or
high-torque.
The button on the Arduino Uno resets it.
Perhaps if you explained more details of what you are trying to do we could help more - what is
"this thing", what motors, what weight? All the mechanics of the situation are amenable to
calculation given the details. There is little need for guesswork.
"the thing" would be the one in the picture, and i'm going to use the blue micro-servo powered by 5 volts. I want the servo to be controlled by the Arduino, but from all the videos I've seen the Arduino is always connected to a PC, which is not portable.
The Arduino needs to be connected to a PC only during programming.
You will need a power supply of some sort. As soon as it is connected to the Arduino, the last program uploaded will start running.
Ok, Thank you
Micro servos aren't very strong.
I once tried to make a robot using Popsicle sticks and blue micro servos. The servos weren't strong enough to lift the robot even when I didn't add the batteries.
You can kind of get an idea of how strong these servos are from these two videos.
This video had the legs sticking out at about 90 degrees from the body which resulted in too much torque for the servos.
By changing the angle of the legs I was able to get the robot to walk but it was still underpowered.
When using micro servos you need to use things which don't weigh much and you need to keep lever arms short.
Fortunately there are lots of different kinds of servos. If the micro servo isn't strong enough you could try a servo with more torque.