Search found 15 matches: arduino wdt

Searched query: arduino wdt

by mnfisher
Mon May 11, 2026 11:47 am
Forum: Projects - Embedded
Topic: Mastermind (tm) - Pool reduction and Minimax algorithms
Replies: 15
Views: 2044

Mastermind (tm) - Pool reduction and Minimax algorithms

... t use much RAM apart from one optimisation - I intended to run on an Arduino (or ATTiny!) - but there is a lookup table of all the possible codes (for 4 x 6 colours there are 1296). I'd hit WDT issues on the minimax using my original approach of converting an int (0..1295) into the code using base 6 ...
by Bijumon
Mon Jun 30, 2025 3:49 pm
Forum: General
Topic: Arduino Uno WDT
Replies: 2
Views: 3214

Re: Arduino Uno WDT

Solved..
Thanks...
by Steve-Matrix
Mon Jun 30, 2025 2:19 pm
Forum: General
Topic: Arduino Uno WDT
Replies: 2
Views: 3214

Re: Arduino Uno WDT

Searching these forums is a good place to start. For example:
search.php?keywords=arduino+wdt

There seem to be a few posts with info and solutions to this.
by Bijumon
Mon Jun 30, 2025 1:54 pm
Forum: General
Topic: Arduino Uno WDT
Replies: 2
Views: 3214

Arduino Uno WDT

Hello everyone,

How can Enable WDT and set the timeout period (eg. 1 or 2Sec.) in Arduino Uno. also need to be clear it end of main loop.

Regards
Bijumon.
by bazkhf
Sat Feb 22, 2025 7:52 am
Forum: General
Topic: Inquiry about Enabling the Watchdog Timer and Reset
Replies: 6
Views: 4877

Re: Inquiry about Enabling the Watchdog Timer and Reset

... causes the timer to be automatically cleared, which prevented the Arduino from resetting as I had expected.

Once I understood this, I re-tested ... to activate the Watchdog Timer. The test was successful! After adding the wdt_reset() code to perform the reset, the full code worked as expected ...
by bazkhf
Sat Feb 22, 2025 7:28 am
Forum: General
Topic: Inquiry about Enabling the Watchdog Timer and Reset
Replies: 6
Views: 4877

Re: Inquiry about Enabling the Watchdog Timer and Reset

... have tried the method you mentioned. Here’s what I did:

I selected the Arduino Uno board for programming.
I enabled the AutoClear watchdog option.
I added an LED and connected it to pin D13.
I added the following line before starting the loop: wdt_enable(WDTO_2S);
I added the first part of the code to ...
by bazkhf
Tue Feb 18, 2025 10:39 am
Forum: General
Topic: Inquiry about Enabling the Watchdog Timer and Reset
Replies: 6
Views: 4877

Inquiry about Enabling the Watchdog Timer and Reset

Hello everyone,

I need help with enabling the Watchdog Timer on an Arduino board. I have searched through several articles on the topic, but I wasn't ... will automatically restart the system if it is not reset via code (using wdt_reset()). However, I want to make sure how to properly enable the ...
by mnfisher
Thu Jan 02, 2025 7:18 pm
Forum: Projects - Embedded
Topic: Knight's Tour
Replies: 0
Views: 5132

Knight's Tour

... the esp32 can solve a Knight's tour for a 45 x 45 chess board and the Arduino version here happily solves for 10 x 10.

It is slightly odd - for a ... kludge' - every 1000000 recursive calls it has a 10ms delay to stop wdt issues. Using the heuristic it takes a few ms (on the esp32) even for ...
by mnfisher
Sun Sep 29, 2024 9:38 pm
Forum: General
Topic: Tips for resetting the Arduino
Replies: 5
Views: 5410

Re: Tips for resetting the Arduino

I didn't try - but the pulse would stay high until the MCU resets?

The attached program demonstrates calling address 0... This works AOK.

WDT is used automatically - on PIC / esp32 etc but not so on AVR - again didn't test this.

Martin
by mnfisher
Sun Sep 29, 2024 6:30 pm
Forum: General
Topic: Tips for resetting the Arduino
Replies: 5
Views: 5410

Re: Tips for resetting the Arduino

... sleep) be better?

1) Connect a digital pin to the reset pin - pull pin high to reset
2) Call address 0 (see attached) This outputs some text to UART (at 115200 baud) - then resets after 5s and does it again...
3) Using the wdt timer (#import <avr/wdt.h> (for example wdt_enable(WDTO_15MS); )

Martin