You have to use a Reset Button on an Arduino. But sometimes, you have a shield, that is blocking it, or you just can't reach it. But that is an easy fix.
All you need to do this:
- A Breakoutboard
- Two Jumper Wires
- One Pushbutton
- And of course an Arduino
This is a very easy circuit.
What this basically does is, when you press the button, the pin "Reset" is low. When you don't press it, there is no circuit at all, which means it is not high, and not low. According to the official Arduino documentation, you just have to bring the "Reset" pin to low. So that's basically it ! You dont have to make an Arduino sketch for this. That's how easy it is !