Hi, I have a problem when running servos from my Bare Bones Board.
When I attach a servo to BBB 'A0' (pin 14), and change the pin number in the servo 'sweep' test program, nothing happens. However, when I hook it up to +5v, GND, and pin 9, it all works fine.
From what I gather, the A0-A5 stack of pins on the side is specifically for sensors and servos. I'm not doing anything fancy, just plugging hte servo directly to the pin(s) and running the test program.
Did you declare the pin as OUTPUT? I always thought that if you used the pin address(14) that it automatically changed it to OUTPUT, but maybe it needs to be declared?
It may be a timer issue? pin 9 is a hardware PWM pin using Timer1 I believe. The labeling shows pin9,10,and11 as PWM.
I realise that the library says pins 9 and 10 are the only pins compatible with it, yet the Bare Bones Board specifically says that the stack of pins there can be used to control servos as well as sensors. And yes, I've already consulted that page for help, and I realise what it says there, but that still doesn't change the fact that I was lead to believe that these pins could be used to control servos as well.
Also see the headers page for 3 pin male and female headers for connecting to servos or analog sensors.
If I'm not understanding something correctly here, then let me know, but don't think I haven't looked for an answer already. I'm just not sure which place to believe. I'm thinking that if I want to use these pins to control a servo, I'll have to do it without the servo library.
I think he was stating that you can use 3 pin servo cables to attach sensors to the analog section. I don't see anything that states that actual servos can be hooked up to the analog pins. Of course you can also use 3 pin servo cables to hook up servos, but I saw nothing that stated analog section could be used. You'd never be able to power that many servos off of the on-board regulator anyway.
I haven't found the time yet to write up a tutorial on using this library but it is similar to the one you are using, except that it uses microseconds instead of degrees for servo position.