0
Offline
Newbie
Karma: 0
Posts: 25
Arduino rocks
|
 |
« on: November 11, 2009, 05:08:10 am » |
Is it possible to reset or reboot the arduino from the program.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 313
Posts: 35506
Seattle, WA USA
|
 |
« Reply #1 on: November 11, 2009, 05:30:09 am » |
Yes. It's very possible.
Deliberately? I don't know.
|
|
|
|
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #2 on: November 11, 2009, 05:31:59 am » |
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/9Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 25
Arduino rocks
|
 |
« Reply #3 on: November 11, 2009, 05:58:21 am » |
but i need to reset the millis every 12hours who do i do that
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 313
Posts: 35506
Seattle, WA USA
|
 |
« Reply #4 on: November 11, 2009, 06:04:54 am » |
Why?
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #5 on: November 11, 2009, 06:14:49 am » |
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)
Online
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #6 on: November 11, 2009, 06:19:55 am » |
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
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #7 on: November 11, 2009, 06:22:26 am » |
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... 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
Newbie
Karma: 0
Posts: 25
Arduino rocks
|
 |
« Reply #8 on: November 11, 2009, 06:26:09 am » |
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)
Online
Brattain Member
Karma: 277
Posts: 25501
Solder is electric glue
|
 |
« Reply #9 on: November 11, 2009, 06:28:30 am » |
real men don't read instructions (or datasheets) So real men can't do electronics.  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
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #10 on: November 11, 2009, 06:31:26 am » |
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  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  Mowcius
|
|
|
|
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #11 on: November 11, 2009, 07:39:58 am » |
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
Newbie
Karma: 0
Posts: 25
Arduino rocks
|
 |
« Reply #12 on: November 11, 2009, 07:58:31 am » |
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
Newbie
Karma: 0
Posts: 25
Arduino rocks
|
 |
« Reply #13 on: November 11, 2009, 08:00:28 am » |
wayoda in the final project i'm going to use a arduino pro mini ...
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 313
Posts: 35506
Seattle, WA USA
|
 |
« Reply #14 on: November 11, 2009, 08:03:22 am » |
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
|
|
|
|
|
|