Hi,
I've got the following problem: I do want to implement a simple servo control function on an Attiny85, where the servo can be adjusted to any angle I would like it to be. So I installed the Servo8bit library and tried the example function. Everything works fine till here. The servo sweeps itself from 1 to 180 and back. Now I altered the code to look like that, so I can insert it into my main project.
#include "Servo8Bit.h"
Servo8Bit myServo;
void setup(){
myServo.attach(3);
}
void loop(){
myServo.write(0);
delay(2000);
myServo.write(90);
delay(2000);
myServo.write(180);
delay(2000);
myServo.write(90);
delay(2000);
}
But no matter what I do the servo does not move at all. It just goes to a random position and stays there. What do I do wrong?
Troughout my previous Internet research I assume hat the connection to the servo gets lost because if the servo doesn't get a singnal after 20ms it loses connection. But this is just an assumption. I would be very happy if someone knows the answer to my problem or at least a hint.
Thanks