How to Use Arduino Interrupts

preview_player
Показать описание
Demonstration of hardware and software interrupts using the Arduino Uno.
Рекомендации по теме
Комментарии
Автор

Super and you saved the day. I come from embedded micro controllers on one hand and PC programming on the other. Needed something that would count my 3, 600 Hz clock (internal interrupt) and reset on external pin transition (external interrupt). You covered both and having just gotten back into it after 20 years I didn't even know if the Arduino could do it. Thanks much. Saves me lots of TTL hardware.

Eurus
Автор

amazing i understood arduino from you and guess what i pass this material without even coming to lectures all thanks to you man youtube is the real university in this world

relaxer
Автор

Thanks for the video. You made it harder for yourself than necessary by using the PIR sensor, since it pulls your signal pin on the Arduino high for a couple of seconds, so that the pin is still high when your dummy loop finishes, and thus lights the LED.
Use a momentary push button switch instead of a PIR sensor.

MartinBgelund
Автор

superb dude !!! well explained ..it took me a while to find good videos like yours'

killerthoughts
Автор

You could used the delay function instead all those for ones to make your point in the beginning...

Popart-xhfd
Автор

Thank you so much for this video (I know you did it ages ago) it helped clear a lot of things up for me!

natashamaimbo
Автор

Good vid, seems to me that at the start when u test the code before the interrupt it is using the sensor state but only after you for loop has finished hense the delay.

Andyz
Автор

Excellent tutorial. Can I ask what video capture software you are using? I am thinking of making some videos showing the computer screen. Thanks.

RagMama
Автор

I still don’t understand those interruptions 😢

duiven
Автор

I cannot see the screen values.
Please make a new video .

joydeepp
Автор

Hello sir, I am facing a problem with Interrupt program when I interfacing Bluetooth module...Without giving any interrupts my program is interrupted when Bluetooth module is connected. Will you please help me to solve this issue...

premchandkarnati
Автор

nice video...can you tell me how to code for running two arduinos at a time but one after other...need to synchronise two unos ..when one working other should be off

sb-rjyb
Автор

If I may suggest that you work out all the bugs in your demo BEFORE you make the video.
Also, you could have used a change variable which would get triggered if the sensor detects an object and also when it stops detecting an object. That way the LED would be on if the sensor detects it and off otherwise. You could print the counter inside your mega loop and show that the interrupts don't have much effect at all in your main loop. That would have been impressive.

joedempseysr.