Go Down

Topic: Reset (Read 2036 times) previous topic - next topic

DrLabel

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

PaulS

Yes. It's very possible.

Deliberately? I don't know.

wayoda

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

DrLabel

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

PaulS


mowcius

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

Grumpy_Mike

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.

mowcius

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

DrLabel

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.

Grumpy_Mike

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


So real men can't do electronics.  ;)

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.

mowcius

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 :D

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  :P

Mowcius

wayoda

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

DrLabel

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

DrLabel

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

PaulS

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?

Go Up