Тёмный

Arduino for beginners. Part 10: Timer Interrupts 

logMaker360
Подписаться 16 тыс.
Просмотров 65 тыс.
50% 1

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

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@venkatyalamati3285
@venkatyalamati3285 3 года назад
Thank you so much for the video sir.. very useful for me
@youpattube1
@youpattube1 7 лет назад
Well done. I like your teaching style. It it one of those videos that I will replay a few times to really absorb and try out what you said.
@shedactivist
@shedactivist 2 года назад
Thanks, that was very useful.
@rursus8354
@rursus8354 7 лет назад
Good! I'm going to use it in the lecture today.
@jagsank1k2
@jagsank1k2 3 года назад
The presentation and explanation is excellent ! Please give the full code in one place ; while we are writing down the code to find if any error is made we have to go through the full presentation (to find out where we have made a mistake )
@markjlewis
@markjlewis 3 года назад
Very helpful, many thanks.
@normheath7447
@normheath7447 6 лет назад
Thanks for a great tutorial. I have watched it a number of times and i still do not under stand why you are setting the" mother LoopCounter equal the functionCounter in the statement" motheLoopCounter=functionCounter;" What is the purpose of setting the loopCounter to the value?
@kintara58
@kintara58 6 лет назад
The part of the video cuts just before this line is added " functionCounter = 0; " motherLoopCounter = functionCounter; interrupts(); Serial.print("function is called = "); Serial.println(motherLoopCounter); if(motherLoopCounter == 12){ functionCounter = 0; } Basically, it resets the functioncounter when it get to 12
@heronpereira5754
@heronpereira5754 7 лет назад
Would the timer interrupts itself? In case you put a small time for interrupt and lots of instructions that take more time than the interrupt.
@hichamharb451
@hichamharb451 5 лет назад
thank you for the video I'm very new to Arduino and I was wondering if you can help me I'm trying to do a 4 way traffic control using ultrasonic sensor but I'm having a problem with a timer basically I want the red, yellow and green to work if a car falls within a certain distance and it stays there for a certain time. lets say a car was within the distance between 10cm and 70cm the timer starts counting to 5 seconds and after 5 seconds if the car still there the red, yellow and green start. I don't have an issue with the distance part but I'm having a problem with getting the timer to start when the car is within that distance and then test after 5 seconds if still there.
@UllulAmar
@UllulAmar 7 лет назад
how can I disable Timer1 interrupt ? is there a statement that can undo < Timer1.initialize(length); > and < Timer1.attachInterrupt(my_function); > only without affecting any other external interrupts ??
@eddydogleg
@eddydogleg 7 лет назад
You should be able to use XXXXXX.detachInterrupt()
@Fogaata
@Fogaata 6 лет назад
Great content, very helpful. Thank you!!!
@staindejs
@staindejs 7 лет назад
thank you for the great video. in the playground link you posted for downloading the timer library, which one are you using? (there is another one that is linked by this "A separately maintained and updated copy of TimerOne is also available, supporting more hardware and with optimizations for more efficient code.")
@logmaker3609
@logmaker3609 7 лет назад
I think they work both, they get updated all the time.
@staindejs
@staindejs 7 лет назад
thank you, sir. i think your answer means that they both work the same from the outside for an entry-level user. keep up the great tutorials.
@abdullahansari9188
@abdullahansari9188 4 года назад
How to count timer overflow in Arduino mega2560 ?
@angelabackred2173
@angelabackred2173 3 года назад
Can we do with button ?
@ycmgxekwa
@ycmgxekwa 7 лет назад
Thanks for the great tutorial.
@logmaker3609
@logmaker3609 7 лет назад
thanks mate my pleasure
@tumenbayarmunkhjargal6677
@tumenbayarmunkhjargal6677 4 года назад
Can I use Timer 2 func?
@jakubstefanek1610
@jakubstefanek1610 8 лет назад
Thank You :) can multitasking/"interupts" be bypassed by more linked arduinos in a "cluster" Can you make I2C/serial comm video with MASTER doing the high level taks and slaves do the parael routines.
@ljl451
@ljl451 8 лет назад
In alternative, the use of millis() would not be ok?
@logmaker3609
@logmaker3609 8 лет назад
+mark No clean programming with interrupts goes with micro´s
@mayurrajendra387
@mayurrajendra387 7 лет назад
Sir, I want to learn library of timerOne so, from where i can start to learn. I wanted to start making my own simple libraries so please help me
@logmaker3609
@logmaker3609 7 лет назад
Dude watch this playlist: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qY5fk9uQkPk.html
@felixsaucedo472
@felixsaucedo472 7 лет назад
is there any way to apply interrupts to PWM signal ?
@logmaker3609
@logmaker3609 7 лет назад
Easy make a normal intterupt and do something with PWM in the ISR...
@felixsaucedo472
@felixsaucedo472 7 лет назад
what do you mean by normal interrupt?
@logmaker3609
@logmaker3609 7 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ZARTUnVUYT0.html
@brunowtf_dk3411
@brunowtf_dk3411 7 лет назад
It is possible to make a timer, for example, 5 hours. instead of 2 seconds
@logmaker3609
@logmaker3609 7 лет назад
No my friend it is limited to 8.6 seconds.
@brunowtf_dk3411
@brunowtf_dk3411 7 лет назад
Have found a solution by counting in a register. Is not pretty but it works :)
@brunowtf_dk3411
@brunowtf_dk3411 7 лет назад
Of course :) but as I said is not pretty, but it works and is a temporary fix until I get the last part for my project...
@danielll9584
@danielll9584 7 лет назад
hi, can you share the code here in the comment section?
@aadishmanrai8408
@aadishmanrai8408 5 лет назад
Can you please write a code that i can upload in Arduino, I want a Small beep sound at 30mins, 1hr, 1:30hr, 2hr(all optional )
@BrandonPrentice
@BrandonPrentice 5 лет назад
Lol is he your slave? Education youtubers are meant to guide you in the right direction, not to do all your homework
Далее
Arduino for beginners.  Part 11:  Libraries
8:19
Просмотров 2,8 тыс.
Level Up Your Arduino Code: External Interrupts
18:55
Просмотров 174 тыс.
Pin Change Interruptions ISR | PCINT | Arduino101
14:19
Arduino Interrupts Revealed
27:02
Просмотров 50 тыс.
Level Up Your Arduino Code: Registers
21:09
Просмотров 186 тыс.
Arduino Interrupts Tutorial
9:30
Просмотров 295 тыс.