I'm a novice at this so I might be overlooking something but I've a problem that's driving me mad.
I just got the 16 channel pwm servo shield and hooked it up to an Arudnio Uno and some servos.
I'm running the 1.8.5 Arduino IDE straight off the windows store on a windows 10 machine.
I downloaded Adafruit-PWM-Servo-Driver-Library-master.zip and renamed the file therein to Adafruit_PWMServoDriver and put that directory into C:\Users\paul\BANNED\Documents\Arduino\libraries and confirmed that the files Adafruit_PWMServoDriver.cpp and Adafruit_PWMServoDriver.h were in the directory. I had closed all instances of the IDE.
I try to upload the example pwmtest and I get the below error. The file that it can't find is the one I'm trying to run and I've confirmed that it does in fact exist. what gives?
Try installing the library using the Library Manager: Sketch -> Include Library -> Manage Libraries...
and then see if you can get the example sketch to build: File -> Examples -> Adafruit PWM Servo Library -> pwmtest
Hi, I am having the same problem uploading. I go into Manage libraries add the .zip and then look for it under examples but it never shows up. Then I if just go into the folder from my desktop and get this message when I try to compile. What should I do?
/Users/r19kaste/Desktop/Adafruit_PWMServoDriver /examples/servo/servo.ino:20:37: fatal error: Adafruit_PWMServoDriver.h: No such file or directory
#include <Adafruit_PWMServoDriver.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
I have Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino Uno" programmer is AVRISP mkll
Then try reading this for an overview of manual library installation: https://learn.adafruit.com/adafruit-all ... nstall-use
However, it should be available under the Library Manager, and that should be an easier way to install it.
ok thanks, I got that to work. I am trying to use the shield to control 2 servos(Standard Size - High Torque - Metal Gear Servo
1142 )and have them both work at the same pace. I am used to working with Spektrum servos which use degrees, while these servos use pulses could you explain pulses to me and how they compare to the 0-180 degrees? I was trying to use this
Servos don't move instantly to the set angle, so you need to wait a little. The actual value depends on servo and is a matter of tuning.
This has some details that might help: viewtopic.php?f=50&t=103718&p=519073&#p519073
and in general, 1ms = the minimum angle and 2ms = the maximum angle, but you can often go beyond these limits.
ok so now my uno/ shield combo just won't move. I try uploading to the uno and run a simply led blink/servo sweep and it works, then when I plug the shield in and run the normal example code the servo just sits there. both LEDs are lit and the power works because it won't move. what should I do? the upload also works and I have pressed the reset button a few times.
Now I got a new Uno and everything works except the servo when connected to the shield. I can get one my spectrum 0-180 servo to work with just the Uno and then when I connect the shield and use one of the high torque Adafruit servos with servo example code or PWM code it doesn't move, but the current is flowing bc I cant move the horn. here are the pictures. The Uno is connected to a 6v and the shield has 5v
Attachments
adafruit shield 4.JPG (339.86 KiB) Viewed 1855 times
If the scanner sketch does not see the shield, see if you can touch up the soldering by reflowing it to get better wetting. Then try the scanner sketch again.