frg-fossee / eSim-Cloud

A web-based system for designing and simulating electronic (eSim) and Arduino circuits.

Home Page:https://esim-cloud.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

image

  1. Connect as shown above or get the circuit directly from Gallery (name of circuit is Servo)
  2. 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);
    }
}
  1. Press "Start Simulation" (Servo will start to rotate)
  2. Press "Stop Simulation"
  3. Remove/delete wire connecting from connected Arduino pin (pin 3 in above photo) to Signal pin of Servo
  4. Connect a wire from programmed Arduino pin (pin 3) to Signal pin of Servo again
  5. Press "Start Simulation"
  6. 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