Pages: [1] 2   Go Down
Author Topic: Reset  (Read 1791 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to reset or reboot the arduino from the program.
Logged

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

Yes. It's very possible.

Deliberately? I don't know.
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Basically you can do this if you have a hardware-programmer to upload your Sketches to the board. It is not possible when your sketches are uploaded with the bootloader.

The full discussion (and a link how to do this ) is here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1250663814/9

Eberhard
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

but i need to reset the millis every 12hours who do i do that
Logged

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

Why?
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would have thought that if you have a transistor to connect the reset pin using a digital write then that should reset it...

Mowcius
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33301
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't do that the data sheet says so.
The processor will not have long enough in reset before it comes out due to the tri-stating of the output pins. If you must do this then use a monostable to generate the reset pulse.
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You can't do that the data sheet says so.
Come on, real men don't read instructions (or datasheets)  ;D

I didn't read that...

Quote
The processor will not have long enough in reset before it comes out due to the tri-stating of the output pins. If you must do this then use a monostable to generate the reset pulse.
Yes that sounds like a good idea.
Could you just put a big cap in the line to provide a longer signal?

Mowcius
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I need that because arduino is going to be up doing this job like 5 to 10 years and we can't break for that I need to reset it for good operation.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33301
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
real men don't read instructions (or datasheets)

So real men can't do electronics.  smiley-wink

Quote
Could you just put a big cap in the line to provide a longer signal?

Well that is a poor man's monostable but the problem with that is the rise and fall time of the edges caused by the capacitor might interfere with the reset function.
It is one of those areas where you might get it to work but it is not repeatable over different processor chips.
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So real men can't do electronics.
They just get it wrong all the time, that's why there's something called an arduino forum smiley-grin

Quote
Well that is a poor man's monostable but the problem with that is the rise and fall time of the edges caused by the capacitor might interfere with the reset function.
It is one of those areas where you might get it to work but it is not repeatable over different processor chips.
Yeah, it's a real man's monostable  smiley-razz

Mowcius
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I need that because arduino is going to be up doing this job like 5 to 10 years and we can't break for that I need to reset it for good operation.

Then the 20$ for a hardware-programmer for implementing a reset function should be a good investment.
Eberhard
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok one other approach  can I put a relay cutting the power for the board  or is it going to be in loop????
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

wayoda in the final project i'm going to use a arduino pro mini ...
Logged

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

The Arduino is not running a Microsoft operating system. It doesn't need to be rebooted twice a day.

What led you to believe that restarting it every 12 hours would be necessary?
Logged

Pages: [1] 2   Go Up
Jump to: