Jump to content

Servos and Arduinos

hi nerds!

i'm doing a prosject in school where i need 4 servos to work in patterns, but when i try to code this, the servo only twitch (even though i put it to 180degrees) anyone have som suggestions on how to make them actually move as i want?


 

Link to comment
Share on other sites

Link to post
Share on other sites

Real servo only go 180 degrees. If I remember correctly you tell it what angle to go to.  

 

Try typing 90. 

 

Also for the love of arduinos and not frying stuff make sure it’s wired properly. You need an EXTERNAL power source to move the arduino motor. Arduino pins only handle 20 milliamperes. To spin the motor, it’d take too much current and burn the board. You need an external power source like a power bench. 

 

I’ll double check my source code for when I programmed a servo in a few hours if I remember. I’m not home right now. 

Link to comment
Share on other sites

Link to post
Share on other sites

i use an external psu and the wireing works with some codes, i will post my code when i get to my work computer tomorrow

Link to comment
Share on other sites

Link to post
Share on other sites

-= Moved to Hobby Electronics =-

COMMUNITY STANDARDS   |   TECH NEWS POSTING GUIDELINES   |   FORUM STAFF

LTT Folding Users Tips, Tricks and FAQ   |   F@H & BOINC Badge Request   |   F@H Contribution    My Rig   |   Project Steamroller

I am a Moderator, but I am fallible. Discuss or debate with me as you will but please do not argue with me as that will get us nowhere.

 

Spoiler

  

 

Character is like a Tree and Reputation like its Shadow. The Shadow is what we think of it; The Tree is the Real thing.  ~ Abraham Lincoln

Reputation is a Lifetime to create but seconds to destroy.

You have enemies? Good. That means you've stood up for something, sometime in your life.  ~ Winston Churchill

Docendo discimus - "to teach is to learn"

 

 CHRISTIAN MEMBER 

 

 
 
 
 
 
 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Attach a file of your Arduino code, I'll verify it for you!

 

-Basil

Link to comment
Share on other sites

Link to post
Share on other sites

On 5/3/2018 at 1:32 AM, Nimgg said:

i use an external psu and the wireing works with some codes, i will post my code when i get to my work computer tomorrow

Remember not exceed 10.5 volts to avoid overheating, though anywhere from 7-12 is safe, I am saying this as a daily user of Arduino for small breadboard circuitry with sensors.

 

-Basil

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×