I have linked an external push red colored button to my arduino but when I press it, instead of giving me HIGH or LOW, it resets the arduino. I am a beginner to this stuff so could someone help?

  • 3
    It is odd that you omitted your code and a schematic or image or even description of your wiring but made sure to let us know that the button is red =)
    – timemage
    Jan 21, 2021 at 15:16
  • 4
    Yes. Change it to a green button and all will be well :P
    – Majenko
    Jan 21, 2021 at 15:32
  • Why don’t you show (or at least describe) how you’ve connected the button so we don’t have to guess? There are very many ways to connect an external red button to an Arduino.
    – StarCat
    Jan 22, 2021 at 12:47

1 Answer 1


enter image description here

If your button creates a short circuit between 5V and GND pins... it will certainly act like a RESET. Let's try to make sure you are not creating a dead short on an Arduino pin so you avoid prematurely killing your controller.

  • Thank you. Changing it to 3.3 V also does the trick Jan 21, 2021 at 15:45
  • 1
    @SiddharthAgrawal please fix the real issue. Creating a short on 3.3V maybe doesn't reset the Arduino, but in general, shorts are to be avoided. Unless you like fire, sparks, and/or broken electronics.
    – Gerben
    Jan 21, 2021 at 16:16
  • Ok I'll add the resistance. Thanks Jan 21, 2021 at 16:54

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