Adafruit Servo Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
devin120
 
Posts: 5
Joined: Tue Aug 23, 2016 4:49 pm

Adafruit Servo Shield

Post by devin120 »

So I bought one thinking it would out do the wiring and library of servo in Arduino library.

I cannot for the life of me make this thing work properly.

Whats it good for? Besides the examples. How do I write to a servo?????????

Add library. ok.

Now. Setup. I call my servo.


void() setup {
pwm.begin();
pwm.setPWMFreq(1000);
}

Am I right so far?

Then I go

void loop() {
pwm.setPWM(2, 0, 400);

What does that even mean. What am I doing? Min and max pulse. Its a SERVO. I don't get how to position a servo where I want.

All I want for the love of god is to be able to send a position to a servo. HOW?

In the MOST simple form.

Please. Anyone. From adding the library to the loop.

What does the shield need from me. What does it need to know. How and where do I put that info?

I dont get uint_8 and so on. Im not at that level. I mean. I can operate a servo with the arduino. Why is it SO HARD with the adafruit shield?

Thanks in advance. Im obviously incredibly stupid as theirs not much info on the net about it which means others have it figured out. So. Maybe I should sell my stuff.

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

Re: Adafruit Servo Shield

Post by adafruit_support_bill »

Have you read through the guide? There is a Library Reference section there.
https://learn.adafruit.com/adafruit-16- ... it-library
https://learn.adafruit.com/adafruit-16- ... -reference
What does that even mean. What am I doing? Min and max pulse. Its a SERVO. I don't get how to position a servo where I want.
Servos are controlled by pulse length. To convert degrees to pulse length, see this section of the guide:
https://learn.adafruit.com/adafruit-16- ... lse-length

User avatar
devin120
 
Posts: 5
Joined: Tue Aug 23, 2016 4:49 pm

Re: Adafruit Servo Shield

Post by devin120 »

Thank you I will study this and will come back only if I've tried everything. Thanks!

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

Return to “Arduino Shields from Adafruit”