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

Mastermind (tm) - Pool reduction and Minimax algorithms

... 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) ...
by Bijumon
Mon Jun 30, 2025 3:49 pm
Forum: General
Topic: Arduino Uno WDT
Replies: 2
Views: 3156

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

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

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

Re: Inquiry about Enabling the Watchdog Timer and Reset

... to function. But after writing my last message, I realized that this option causes the timer to be automatically cleared, which prevented the Arduino from resetting as I had expected. Once I understood this, I re-tested the code without enabling the AutoClear watchdog option and only included ...
by bazkhf
Sat Feb 22, 2025 7:28 am
Forum: General
Topic: Inquiry about Enabling the Watchdog Timer and Reset
Replies: 6
Views: 4234

Re: Inquiry about Enabling the Watchdog Timer and Reset

Hello Martin, Thank you once again for your help! I 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 ...
by bazkhf
Tue Feb 18, 2025 10:39 am
Forum: General
Topic: Inquiry about Enabling the Watchdog Timer and Reset
Replies: 6
Views: 4234

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 able to fully understand the correct way to enable the Watchdog as needed. I understand that the Watchdog ...
by mnfisher
Thu Jan 02, 2025 7:18 pm
Forum: Projects - Embedded
Topic: Knight's Tour
Replies: 0
Views: 5027

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 ... '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: 5318

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

Re: Tips for resetting the Arduino

... 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