1

I am using an Arduino UNO. When lighting an LED with the switch button on a joystick module, I have two situations:

  • If the LED's cathode is connected to GND on the digital pin side of the Uno, the LED only dimly lights up on button press.
  • If the LED's cathode is connected to GND on the analog pin side of the Uno, the LED fully lights up on button press.

The device is receiving power from my laptop, and I am writing a digital HIGH/LOW to the LED pin (on press/release).

Is this a fault in my board, or is there a (perhaps more enlightening) reason why this is happening?

closed as unclear what you're asking by per1234, Milliways, Juraj, sempaiscuba, gre_gor Sep 17 '18 at 15:48

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2

Despite double checking my cables before asking this question, it seems I had connected the LED's cathode to digital pin 13, and not GND. The issue is now resolved. Takeaway: Triple check your cables :)

Not the answer you're looking for? Browse other questions tagged or ask your own question.