Pages: [1]   Go Down
Author Topic: Software Reset Arduino from a webpage  (Read 237 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 106
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to do a software reset to the arduino from a webpage using ethernetshield?? How?

Thanks in advance!
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48569
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is it possible to do a software reset to the arduino from a webpage using ethernetshield??
Why do you want to? Rather, why do you think you need to? Many things happen when the Arduino is reset. Some involve software. Some involve hardware. There is no way to make the hardware things happen from software. Some of the software things can be made to happen.

However, 99.9% of the time, a software reset is the wrong answer.
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You might be able to install an NPN transistor between the reset pin, a digital pin, and ground, such that setting the digital pin high will cause the arduino to reset.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Portugal
Offline Offline
Edison Member
*
Karma: 37
Posts: 1549
Pretending you know everything then you will learn nothing.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You might be able to install an NPN transistor between the reset pin, a digital pin, and ground, such that setting the digital pin high will cause the arduino to reset.
This is not recommend by AVR documentation and should be avoided.This is because using this method it's not granted the reset will ocur because it could be much faster than the avr clean all internal registers and RAM to a know state.
From atmel documentation:
Quote
You should not try to:
- Use another pin of the AVR to pull the external RESET line. The pins of the AVR are tristated halfway through the minimum reset time, this releases the RESET line and hence nothing happens.
- Jump to program location 0. Jumping to program location 0 does not clear all the registers and hence you do not have a "clean" reset.
« Last Edit: July 07, 2013, 01:48:13 pm by HugoPT » Logged

Debian,Mint,Ubuntu
Arduino Mega 2560
Arduino Nano
Arduino Duemilanove
MAC OS Montain Lion
Raspberry PI Model B


Pages: [1]   Go Up
Jump to: