Hello all,
I have recently started a project which includes driving several servos that I would like to make Micro-P blind (i.e works on both Arduino and Raspeberry Pico). I then tried an easy code to test it out:
// Include the servo library:
#include <Servo.h>
// Create a new servo object:
Servo myservo1;
// Define the servo pin:
#define servoPin1 8
void setup() {
// Attach the Servo variable to a pin:
myservo1.attach(servoPin1);
}
void loop() {
// Tell the servo to go to a particular angle:
myservo1.write(90);
delay(1000);
myservo1.write(180);
delay(1000);
myservo1.write(0);
delay(1000);
}
Code works well on Arduino Uno Rev3, but once flashed on Raspberry Pico W (installed the RP2040 package) output is different: angle varies [45°-135°] instead of [0°-180°].
Did anyone experience this issue before , and/or can help me out to fix it ?
Kind regards,
ElecTron64fr