Тёмный

Arduino Watch Dog Timer / AVR 

0033mer
Подписаться 34 тыс.
Просмотров 15 тыс.
50% 1

Опубликовано:

 

11 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@fitzgeraldmistral97
@fitzgeraldmistral97 5 лет назад
It's weird that I've never seen anyone else use this functionality in arduino. It's really handy.
@sullivanzheng9586
@sullivanzheng9586 3 года назад
It is frequently used in industrial firmwares say MCU firmware that controls ABS where MCU freeze can cost human lives.
@serpih
@serpih 4 года назад
Great channel, I use an Arduino to open a door automatically, and I don't know why every one or two weeks I have to reset the Arduino. I use a mechanical solution to solve the problem. Now I know WatchDog is the best solution :).
@0033mer
@0033mer 4 года назад
Thanks for sharing
@signalworks
@signalworks 5 лет назад
I’m so excited every time a notification from you comes up!
@0033mer
@0033mer 5 лет назад
First comment .... Thanks!
@RyanThompsonrthomp
@RyanThompsonrthomp 4 года назад
How the hell do other youtube videos make this concept so hard to understand. KISS for life baby. Thank you!
@0033mer
@0033mer 4 года назад
You are so welcome!
@PhG1961
@PhG1961 5 лет назад
Awesome well explained videos. Right to the point ! Love it !
@jardel_lucca
@jardel_lucca 5 лет назад
Very concise tutorial as always. Excellent.
@boonedockjourneyman7979
@boonedockjourneyman7979 5 лет назад
Fantastic. Important topic. Maybe extend to include a hardware control contactor.
@antoniopetito
@antoniopetito 5 лет назад
Fun fact: it’s also called “pat the dog” 😁
@antoniopetito
@antoniopetito 3 года назад
Little insecure?
@jasonmare33
@jasonmare33 2 года назад
thanks very clear!
@0033mer
@0033mer 2 года назад
You're welcome!
@Bright8888
@Bright8888 5 лет назад
Thanks for the clear explanation. I have had the issue of the micro controller (PIC) entering an endless loop due to some kind of electromagnetic interference coming from a nearby appliance. I guess, enabling the watchdog timer is always a good idea. But the very fact that there is an option to disable it means that it may not be always required. In what situations is it desirable to disable the watchdog timer?
@0033mer
@0033mer 5 лет назад
You can program the configuration fuses on the ATmega328p so that the watchdog timer is permanently enabled. The watchdog timer can also be used to generate an interrupt when it times out for timing applications and it is desirable to be able to disable this function during code development.
@novivi4390
@novivi4390 5 лет назад
When doing developpement and correcting bugs it would be better to don't have the board resest at any moment. Once your project is finished you can chronometer the loop time and then choose the smallest watchdog for your code.
@Bright8888
@Bright8888 5 лет назад
@@novivi4390 - Thanks.
@UpcycleElectronics
@UpcycleElectronics 5 лет назад
I'd like to see you use the WDT interrupt feature too. That sounds like it has some good debugging potential. I also have a challenge, if possible, can you come up with a way to single step an ATmega328? It's more of an abstract curiosity. I figure it's probably impossible without hardware emulation. I came across a guy that built a circuit to single step a 68k using a few simple tricks. Replicating that tutorial is on my list of stuff to try as a 68k is supposed to have a 400KHz absolute minimum clock. The idea got me wondering if this is possible with any basic uCs or if it is just an old MPU thing. Thanks for the upload. -Jake
@0033mer
@0033mer 5 лет назад
I mostly program in Forth which is a "threaded" language and is very easy to debug. Some Forth implementations have a built in debugger and single stepper. If you search around there are some debugging tools for the AVR micros. sites.google.com/site/wayneholder/debugwire
@sonuguru143
@sonuguru143 Год назад
Hello Sir, I need your help. I want to set watchdog timer for my arduino program. My condition is if digital read pin 5 goes low for max. 8 second then arduino should reset. Please guide me.
@randalm7904
@randalm7904 5 лет назад
What kind of code language are you using?
@0033mer
@0033mer 5 лет назад
The code was written using the Forth programming language. www.forth.com/forth/
@MrPaulw517
@MrPaulw517 3 года назад
0033mer, I have a question about my RF POWER OUTPUT METER I saw in one of your videos running a LoRa radio, you response to my request would be greatly appreciated.
@0033mer
@0033mer 3 года назад
My email address is available under the "About" tab on my channels main page.
@MrPaulw517
@MrPaulw517 3 года назад
@@0033mer Sorry, don’t see an email address on the about page on your main page?
@noweare1
@noweare1 5 лет назад
I there a way to use the watch dog to kind of look back and figure out what happened or is it just to get the micro back doing what it is supposed to do.
@0033mer
@0033mer 5 лет назад
The watch dog is just a resettable down counter timer and it does not know what caused the timer to time out.
@noweare1
@noweare1 5 лет назад
@@0033mer Ok, thanks
@LUCKY007725
@LUCKY007725 3 года назад
nice demo, but you did not show the real code which you programmed to arduino, please share the your code. thanks
@0033mer
@0033mer 3 года назад
Code starts at 3:55
@LUCKY007725
@LUCKY007725 3 года назад
@@0033mer I new with the programming and I don't know how these syntax in arduino ide... please guide
@0033mer
@0033mer 3 года назад
The program is written in Forth as I do not use the Arduino IDE. Check out other videos on my channel for more examples. Forth has been used by NASA in their space probes and satellites for many years. Check out the Forth.com website. www.forth.com/resources/space-applications/
@LUCKY007725
@LUCKY007725 3 года назад
@@0033mer thanks
@Microsree28134
@Microsree28134 Год назад
Kindly share the code
@0033mer
@0033mer Год назад
Code starts at 3:55
@Microsree28134
@Microsree28134 Год назад
I am very new to Arduino.so i can't replicate the code which was shows in u r video, in Arduino IDE.kindly share the code in proper format it will be very much helpful me🙏
@0033mer
@0033mer Год назад
I do not use the Arduino IDE. The code is written in Forth. flashforth.com/atmega.html
@Microsree28134
@Microsree28134 Год назад
@@0033mer Could you please assist me in converting this code for the Arduino IDE? I'm specifically looking for this feature for my ATtiny85 remote control power consumption.
@Microsree28134
@Microsree28134 Год назад
@@0033mer Could you please assist me in converting this code for the Arduino IDE? I'm specifically looking for this feature for my ATtiny85 remote control power consumption.
Далее
DIY Watchdog Timer - Super Simple
4:21
Просмотров 2,8 тыс.
Charlieplexing Using A Microcontroller  / Arduino
7:14
Forth Code Development / Over The Air Programming
9:44
Arduino External Interrupts  / AVR
7:38
Просмотров 4,3 тыс.
The Watchdog Timer on Arduino
14:09
Просмотров 106 тыс.