Questions tagged [reset]

Use this tag for discussing resetting the processor.

Filter by
Sorted by
Tagged with
21
votes
1answer
62k views

Reset an Arduino Uno in code

Is it possible to reset an Arduino (i.e., to reboot it) from code (i.e from the sketch itself)? I know that is possible with a special circuit but is there a chance to make it just with code? Below ...
10
votes
1answer
2k views

How to reset Arduino from software

As you know, the Arduino IDE resets the Arduino when the Serial Monitor is opened. I want also my program to do it. But I don't know how. I examined the source code of the Arduino IDE (Serial.java &...
6
votes
3answers
4k views

Two function Reset button - long/short press

I am trying to make a circuit using an ATmega328, that has a reset button that behaves like many consumer devices: A short press just restarts the micro-controller A long press (5 seconds?) causes ...
6
votes
2answers
51k views

How does the reset button work on the Arduino?

I'm confused about how and when to use the reset button on the Arduino. Do I simply press the button while it is on? Is it simply restarting the board or clearing the uploaded code as well? Currently ...
6
votes
1answer
231 views

Why do MEGA2560 digital pins go high on serial disconnect?

I'm trying to set up a system using an that delivers a specific number of digital pulses to a device using one of the digital pins. The number of pulses delivered is specified over a the Mega's USB ...
5
votes
4answers
14k views

Watchdog timer stuck in restart loop? (green led flashing)

I am trying to set up a way to reboot arduino on command. The code below should do that but it seems like my arduino just get's stuck in some sort of a loop where I cant upload or get any serial ...
5
votes
2answers
1k views

Power on reset with arduino uno can never happen. Can this be fixed?

When an Arduino Uno is powered on, the USB chip's DTR output pin may (is, in fact) low for a while. This means that the capacitor C5 is connected from the 328p reset pin to ground. Thus, when power ...
5
votes
2answers
6k views

Arduino serial port reset in Serial monitor & Python

So am I using an Arduino with a shield to gain some voltage values for an ECG. I am then plotting that data in Python. However whenever I "observe" the serial port, be that through the Arduino serial ...
5
votes
2answers
215 views

Jumping to bootloader from application code in atmega328p

I'm trying to program an Arduino Uno (atmega328p) using only the serial Tx/Rx lines (no DTR, so no automatic reset). This is so I can upload code via WiFi/TCP using an ESP-01. To achieve this, I need ...
4
votes
7answers
34k views

Arduino Pro Micro clone not recognized, flickering RX LED

I have an Arduino Pro Micro clone that seems to be in some sort of reset loop. The RX LED is flickering very fast and very dim. The power LED also seems to flicker at the same frequency but has normal ...
4
votes
1answer
4k views

Disable Reset when Com Port Connected/Disconnected

I've noticed that when I open and close the com port my Arduino is connected to, the device resets. This makes the program run the setup profile again and it loses the previous variable states. Is ...
3
votes
5answers
6k views

How do I repurpose Arduino's reset button

Is there a way to repurpose the reset button for the code, like an on-board button? I don't need it to reset, but it would be useful to make it run through a list of RGB LED cycles.
3
votes
1answer
359 views

How does one design for the power on transient conditions?

Following on from the question Reset an Arduino UNO by an command (software) and the excellent answer provided by mpflaga, the comment addressing option (1) suggests that there are design ...
3
votes
2answers
182 views

Why is there a limitation in using Serial.println on ESP8266?

I'm trying to upload this code on ESP8266, and when I do, it just resets continuously. This also happens when you have memory bugs, but obviously, this code has no memory bugs! Here is the code: #...
3
votes
2answers
49 views

Arduino Nano randomly resetting

I am currently struggling with an intermittent problem with an Arduino project. Background I am using a LabVIEW program to control a few pieces of hardware. One of them is a NEMA 17 stepper motor that ...
3
votes
1answer
606 views

Why Arduino Severino (S3V3) sometimes needs reseting when uploading a sketch?

I have an original Arduino UNO R3 that I bought and an Arduino Severino (S3V3) that I've built. I have no problems uploading sketches to the UNO, but sometimes, when uploading to the Severino board, ...
3
votes
1answer
138 views

Why is the atmega chip reset three times during programming?

I'm trying to understand the auto reset process and why a capacitor hooked up between DTR and Reset works so I ran it through my logic analyzer and I'm seeing the chip reset three times during the ...
3
votes
1answer
160 views

ESP8266 always resetting after 65 second of running

I have a simple code where ESP8266 is asking MySQL database about actual state of LED (whether 1 or 0) and when DB has 1 ESP8266 turns LED on... But my problem is after 65-66 seconds of server running ...
3
votes
1answer
637 views

Is there a Serial write buffer limit and does the Arduino reset if it is hit?

I have an Arduino Mega 2560 that is resetting every 32 seconds if the serial monitor is not attached. Just before it resets, there is a flash of TX, then it goes. If ther serial monitor is attached it ...
2
votes
3answers
4k views

Resetting an Arduino with a timer

I want to run an Arduino autonomously - but although I apply a watchdog sometimes the systems hangs and can only be restarted by physically interrupting the power-supply (or hitting reset). So I need ...
2
votes
4answers
2k views

Is there any way I can stop the Arduino Mega 2560 from resetting all variables after losing and reconnecting power?

I am using an Arduino Mega 2560 board. I have tried connecting a 115 Ω resistor from 5V to Reset, and 10 µf capacitor form reset to GND (to disable autoreset), and the variables still seem ...
2
votes
1answer
5k views

ESP8266 - Sending a software Reset Command

I have an ESP8266 running an Arduino code to control a dual relay device ( Up, Down, Off ), both from a physical switch and MQTT commands. After mounting the device in place I have no access in case ...
2
votes
1answer
106 views

Why does the Leonardo take 8 seconds to restart?

My problem is, that my system takes 8 seconds to start the programm after I push the Reset button on my Leonardo. During that period the L-LED is pulsating. What could be the problem?
2
votes
1answer
1k views

Auto Reset during programming Arduino

I know this that when you try to program a pro mini without a DTR pin it will give you a error as the atmega needs to be reset during programming. So I had a doubt why does the microcontroller needs ...
2
votes
2answers
1k views

Watchdog approach

I'm developing up a project that is designed to run 24/7 (an energy monitor) logging via wifi. Due to a variety of considerations I've ended up with a design that links an Arduino Nano with an ...
2
votes
2answers
474 views

ESP12E Soft WDT reset stack trace leads to libraries

Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly when the web client is closed but when i leave the ...
2
votes
1answer
179 views

Arduino(s) not resetting on Serial connection lost / re-established - why?

it seems that I accidentally found a way to make my two Arduino nano clones run without resetting on serial connection close/reconnect. On one hand, this behavior is much closer to the desired ...
2
votes
1answer
69 views

Using external reset to trigger radio receipt

I am designing a low-power RF application using an ATTiny (Adafruit Trinket). When the system receives a radio signal, it needs to read some sensors, and transmit with that data. Because I am short ...
2
votes
2answers
4k views

How to Factory reset ESP8266? [closed]

I want to use ESP8266 to send emails. I tried twice flashing the Firmware to a particular firmware as suggested in a tutorial. Now both my ESP are unresponsive to AT commands. Let me know the way to ...
2
votes
1answer
555 views

Triggering a soft reset (Arduino Leonardo)

I want to trigger a soft reset on my Arduino Leonardo, and after some searching settled on using the watchdog timer, as it seemed to be the easiest and cleanest way to do it. However, I don't think ...
2
votes
1answer
1k views

What are the causes of Arduino lockup?

We know watchdog timer if enabled RESETs when Arduino is locked up somewhere inside the code. As the title suggests has anyone experienced this unless they put deliberately a while(1) loop inside the ...
2
votes
1answer
2k views

Arduino Pro Mini RESET button suddenly stopped working

I am powering my Pro Mini(3.3V version) using an external battery (~6.5V 700mA) . I used to connect it to the RAW and GND pins on my pro mini and everything ran fine. Today when I powered up my ...
2
votes
1answer
562 views

AsyncWebServer giving wdt reset

I am using 3 Esp32 modules. One being master and other two being nodes. Nodes are connecting to the master's AP. Master is connected with GSM module to execute the web api. Master esp is having a ...
2
votes
0answers
571 views

How to enable auto reset in Arduino Leonardo?

I am trying to program an ATMega32u4 microcontroller through arduino IDE. I have added external oscillator(16Mhz) and capacitors and few other connections according to the Schematic. I had put a ...
2
votes
0answers
408 views

Arduinino & Max7219

I'm using a MAX7219 and 6 (six) seven segment displays I used my own board and two purchased on ebay - no difference in operation. MOSI, and CLK are correct and verified with my scope (Tektronics) CS (...
1
vote
2answers
117 views

Store value in EEPROM to perform different actions on reset?

I want the same button to wake up (reset) and put it to sleep but this is hard if the button is tied directly to the rst pin. My thought was to read and store a value in EEPROM so tell the chip what ...
1
vote
1answer
82 views

Standalone ATmega328P stops responding when RX is connected

I have followed this demo and have set up a standalone ATmega328P being programmed from a Raspberry Pi via the SPI lines. I have also added a 16 MHz crystal with 22 pF capacitors, as well as I have ...
1
vote
1answer
68 views

Arduino Resetting in Automotive Application

I have a complicated problem with my Arduino circuit being reset/crashing, I will try to describe the best I can. The Setup: Basically I have a Arduino 328P circuit that is monitoring some ...
1
vote
3answers
2k views

Using attachInterrupt() to make a reset button for my code?

I have used attachInterrupt() to reset my program to the beginning. It actually interrupts while running the 3 states as shown below inside of the if statement but when I press the actual button it ...
1
vote
2answers
5k views

Reset Arduino Uno R3 from Serial when it freezes (stops looping)?

I have an Uno that loops processing serial commands and reading from a DHT11 sensor. For whatever reason, the device often stops responding. I put an LED on a pin and gave it a blink to see whether ...
1
vote
1answer
2k views

Using 555 as an external Watchdog

I would like to use a 555 circuit as an external watchdog for my Arduino project. The project is a cellular tracker that goes to sleep for an hour, wakes up and does some measurements, uploads them ...
1
vote
1answer
242 views

Using RST pin as external power switch

I have Arduino Nano with powered over USB. I have the request for external (physical) slide switch acting as power on/off for Arduino even if USB is always connected. Looking at documentation and ...
1
vote
3answers
88 views

Arduino Mega keep states after reprogramming

Based on: https://forum.arduino.cc/index.php?topic=440978.0 And some previous experience with Arduinos. What I would like to accomplish here is that I have a 8 channel relay board with the relays in ...
1
vote
1answer
111 views

ESP8266 reseted due to relay / AC plugged

My Wemos card is reseting for unknown reason. For example, the pump plugged on the relay works fine till 1am and then the pump stop. After a few research I figured out the ESP should reset because all ...
1
vote
1answer
768 views

Firmware backup and restore

I need to have the firmware stored somewhere on the board in order to get back to it after flashing a new firmware. Is there a way to store a backup of the firmware somewhere, and use a button to ...
1
vote
1answer
2k views

How to keep a 24 hour maximum and minimum temperature

I am keeping a simple weather station to monitor humidity and temperature in my greenhouse. I have a ds18b20 and dht probes. everything works great and I even used a little trick to hold my maximum ...
1
vote
2answers
287 views

MFRC522 ReadNUID example reboots unless I include a null if statement

I'm fairly new to Arduino (and C), but not to embedded electronics and programming. I'm using an MFRC522 module (the common one) with a Nano, and getting some strange results. They are on a very ...
1
vote
1answer
335 views

Run different code on different type of reset in arduino nano

I would like to program the arduino such that if I reset it by disconnecting and then reconnecting the usb.. A particular led glows BUT If I press the manual reset button on my nano... I want a ...
1
vote
1answer
413 views

Float to integer conversion for control program crashes arduino

I have a program which estimates battery capacity, range as well as runs different control loops on an arduino MEGA2560 to control an eBike. I was using floating points which gave me quite a slow ...
1
vote
1answer
4k views

WDT & Software RESET in ESP8266 + Arduino IDE

I am working on ESP8266 in Arduino IDE. I want to know how to Software RESET the ESP8266. Any sketch/example would be useful. Moreover, how to initialise WDT in ESP8266. Kindly help!