Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED not glowing/blinking when connected to Resistor and Arduino #469

Closed
rinon13 opened this issue Feb 17, 2023 · 1 comment
Closed

LED not glowing/blinking when connected to Resistor and Arduino #469

rinon13 opened this issue Feb 17, 2023 · 1 comment

Comments

@rinon13
Copy link
Contributor

rinon13 commented Feb 17, 2023

Description: LED is not glowing when either pins (POSITIVE or NEGATIVE) is connected to Arduino's Digital Pins with a resistor in between.

Steps to Reproduce:

LED_Resistor_AllDigitalPins

  1. Implement similar circuit as shown.
  2. Copy .ino code
int NEG_PIN = 12;

void setup(){
    pinMode(POS_PIN, OUTPUT);
    pinMode(NEG_PIN, OUTPUT);
    digitalWrite(NEG_PIN, LOW);
}

void loop(){
    digitalWrite(POS_PIN, HIGH);
    delay(500);
    digitalWrite(POS_PIN, LOW);
    delay(500);
}
  1. Press "Start Simulation"
  2. LED won't blink as expected in .ino code.

Expected behavior: LED should blink.

Reason for the problem: When a resistor is connected between the LED's pins and the Arduino's digital pins, the LED is unable to fetch the value of the digital pins.

  • OS: Ubuntu 22.04.1 LTS

Browser: Firefox 110 (Ubuntu)

Tested on:

Additional Context:

  1. LED will work as intended (blink in intervals) when NEGATIVE pin is connected to GND instead of a digitally programmed LOW Arduino Pin ( digitalWrite(NEG_PIN, LOW); ).

LED_Blink_Issue2

@firuza
Copy link
Collaborator

firuza commented Mar 3, 2023

Fixed in #467

@firuza firuza closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants