Reset Arduino programmatically
To reset Arduino, the Arduino Microcontroller boards have an external pin and a button to reset it and start program execution from the beginning.
But sometimes it is important to reset it programmatically. To Reset Arduino using programming, there is a very simple command.
To reset Arduino using hardware, we have two methods, either resetting using an external pin or resetting it using the button.
Resetting the Arduino using hardware:
Either manually press the Reset button, or bring the RESET pin to LOW to reset the Arduino.
To Reset Arduino programmatically:
Use the following command to reset the Arduino and the code execution will start from very beginning.
asm volatile (” jmp 0″); |
Related Links:
- Increasing the length of Serial Buffer in Arduino
- Interfacing GPS Shield for Arduino(ublox NEO-6M-0-001) with Arduino Mega 2560
- Increasing the length of Serial Buffer in Arduino
- Interfacing Soil Moisture Sensor with Arduino
- Interfacing MPL3115A2 Altitude Sensor with Arduino UNO/ Mega
- Interfacing Water Flow Sensor with Arduino
- Downloading a webpage from internet using Arduino
- Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega