Ability to change a Pin to High, to close a connection between reset and ground


i have project in progress runs loop 24/7. have found after 2½ days glitch , stuck. or 1 of many functions in void loop stuck , need come , push reset button correct this.

so wish make circuit 'push reset' button after 12 hours.

i have googled around , seen ability connecting pin 12 reset, , put in startup loop make pin12 = high. have seen how can flawwed , arduino in infinite reset loop if doesn't pull pin high enough.

so want fix flaw setting 'switch' close connection when pin 12 told go high.

aka, when arduino starts, pin 12 low. , well. there 10k  pull down resistor keep so. when script tells pin 12 go high, connect ground reset , reset arduino.

what electronic part should use accomplish this? npn/pnp transistor? mosfet?

why not use watchdog timer.  for.  reset watchdog each time through loop.  if program hangs watchdog doesn't reset time out , can reset processor.

better yet try find out why glitching , fix that.  else bandaid.


Arduino Forum > Using Arduino > General Electronics > Ability to change a Pin to High, to close a connection between reset and ground


arduino

Comments