Running a servo with Arduino Uno

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Ugetsu
 
Posts: 3
Joined: Fri Aug 11, 2017 9:12 am

Running a servo with Arduino Uno

Post by Ugetsu »

Hello, I wanted to use an Arduino Uno board with a Servo (Micro Servo - High Powered, High Torque Metal Gear ) for a cosplay, but for some reason I can't get the servo to run at all.

I attached the red wire to 5v, the yellow one to ~9 and the brown one to GND and opened the sweep example from the library and uploaded it to the board. But the servo won't move... am I missing something? can anybody help me? (also for some reason the "void loop" and "void setup" dont turn orange like they do in some videos I've watched.. they are blue and gray)

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: Running a servo with Arduino Uno

Post by adafruit_support_bill »

Did the code upload successfully to the board? You would have see the leds on the board flickering and the upload would be confirmed in the message window at the bottom of the IDE.

User avatar
Ugetsu
 
Posts: 3
Joined: Fri Aug 11, 2017 9:12 am

Re: Running a servo with Arduino Uno

Post by Ugetsu »

Thanks for the fast reply, yes the lights flickered and it confirmed the upload.

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: Running a servo with Arduino Uno

Post by adafruit_support_bill »

Please post a photo showing how you have everything connected.

User avatar
Ugetsu
 
Posts: 3
Joined: Fri Aug 11, 2017 9:12 am

Re: Running a servo with Arduino Uno

Post by Ugetsu »

Sorry, I dont know how but I got it to work after i reopened the sweep example and uploaded again. Everything is fine now thanks :'D

User avatar
adafruit_support_bill
 
Posts: 88089
Joined: Sat Feb 07, 2009 10:11 am

Re: Running a servo with Arduino Uno

Post by adafruit_support_bill »

Good to hear. Thanks for the follow-up.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”