*Arduino* Using a push button to power LEDs with if/else statement

Поділитися
Вставка
  • Опубліковано 23 жов 2024

КОМЕНТАРІ • 2

  • @RonCastle-c8s
    @RonCastle-c8s 2 місяці тому +1

    hello, i'm having trouble finishing this process after uploading the sketch, my set up is still not working, no led is turning on, i have also tried it with just one led, with a simpler sketch but still no success, what could i have been doing wrong all along?

    • @quicktechtutorials7289
      @quicktechtutorials7289  2 місяці тому

      @@RonCastle-c8s Hello and thanks for reaching out! A couple simple things I can think of to start off is making sure your LEDs are in the correct direction. The anode (longer lead) must connect to positive as if it's in the other direction, it won't light up. Also, if you are using a breadboard, double check that all your wires are in the correct rows and plugged in to the appropriate port on the Arduino board. Finally, make sure you have the correct resistor size in series. If it's too large, the LED won't light up due to too much resistance. Let me know if you're still having issues after that.