I am having difficulties with using the Adafruit library with the Galileo board. The example code that they have provided should work, but there are errors for days, mainly with a wire1 variable from Wire.h. I am using the Adafruit 16 channel 12 bit PWM driver, because I will ultimately need to use more than 10 servo motors. I have attached the Adafruit library to the post.
Also, with just using a pin on the Galileo Board, the code (without using the PWM driver) should make the servo turn from 0 - 180 degrees, but it only turns slightly over 90 degree. The code that I used is:
#include <Wire.h>
#include <Servo.h>
int servoPin = 9;
Servo myServo;
void setup()
{
myServo.attach(servoPin);
}
void loop()
{
myServo.write(0);
delay(1000);
myServo.write(180);
delay(1000);
}
Is there a problem with the Arduino IDE version or is the Galileo not fully compatible with Arduino like it should be? Or perhaps something else?
Also, with just using a pin on the Galileo Board, the code (without using the PWM driver) should make the servo turn from 0 - 180 degrees, but it only turns slightly over 90 degree. The code that I used is:
#include <Wire.h>
#include <Servo.h>
int servoPin = 9;
Servo myServo;
void setup()
{
myServo.attach(servoPin);
}
void loop()
{
myServo.write(0);
delay(1000);
myServo.write(180);
delay(1000);
}
Is there a problem with the Arduino IDE version or is the Galileo not fully compatible with Arduino like it should be? Or perhaps something else?