Servo not detecting Arduino after reconnection
rinon13 opened this issue · comments
Description: Signal pin of Servo not able to detect/get value from Arduino's pin after deleting and connecting to it again. Error message "Arduino not found" is shown.
Steps to Reproduce:
- Connect as shown above or get the circuit directly from Gallery (name of circuit is Servo)
- Add .ino code
#include <Servo.h>
Servo myservo;
int pos = 0;
void setup() {
myservo.attach(3);
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) {
myservo.write(pos);
delay(15);
}
for (pos = 180; pos >= 0; pos -= 1) {
myservo.write(pos);
delay(15);
}
}
- Press "Start Simulation" (Servo will start to rotate)
- Press "Stop Simulation"
- Remove/delete wire connecting from connected Arduino pin (pin 3 in above photo) to Signal pin of Servo
- Connect a wire from programmed Arduino pin (pin 3) to Signal pin of Servo again
- Press "Start Simulation"
- Error message "Arduino not found" will be shown and Servo will not work
Video of entire process:
Servo_Double_Connection_Issue.webm
Expected behavior: Servo should work after connecting back to programmed pin of Arduino (pin 3 in our case)
- OS: Ubuntu 22.04.1 LTS
- Browser: Firefox 110
Tested on:
- develop
- simulation.iitbx.in
Fixed in #477