Тёмный
No video :(

LESSON 29: Dos and Don'ts for Arduino Software Interrupts 

Paul McWhorter
Подписаться 381 тыс.
Просмотров 38 тыс.
50% 1

You guys can help me out over at Patreon, and that will keep this high quality content coming:
/ paulmcwhorter
This lesson is a follow on to the tutorial in lesson 28. In today's lesson we discuss what to do and what not to do in programming software interrupts on teh Arduino.

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

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@320mb
@320mb 4 месяца назад
Thanks Paul, I'm working my way thru all these earlier tutorials, mainly for the functions, if/else statements and Interrupts and other good lessons you provide....
@twainstasiuk1945
@twainstasiuk1945 6 лет назад
Awesome Work,, really good tutorials. There's only a few lessons I haven't seen ( lesson 21-26) but have you covered functions,libraries,and real time clocks so that we can quickly implement them? I'm kinda being selfish here as I could go search around for someone else's work but often times many video presenters assume to much background knowledge, the camera is moving around,, or there's music to entertain us which all seem to detract from a good learning experience. Your,, this is what it is,, this is how to use it ,, method without going into register etc etc details style is excellent for educational purposes! Enjoy the show!
@paulmeistrell1726
@paulmeistrell1726 3 года назад
Thanks for the quick lesson Paul. Something else to use is the boolean "not !" to cut down on service time.
@villainsbridgeclub5268
@villainsbridgeclub5268 6 месяцев назад
So grateful for this dude.
@Aridzonan13
@Aridzonan13 5 лет назад
Thanks for the tip. Had a delay in my interrupt loop. Got it fixed in short order. Need to break out of the main() to read a thermostat.
@Ziplock9000
@Ziplock9000 6 лет назад
5:22 It might seem like it's ignoring the delay but it's not. It's filling up the stack with each interrupt call that are overlapping. If the interrupt calls happen so frequently that the servicing routines take longer, the stack will grow and grow until you get a stack overflow.
@paulmcwhorter
@paulmcwhorter 6 лет назад
YOu sir, know a lot more about this than I do. I am an electrical engineer, and just play with arduino. I am not a computer science expert.
@anubhavbhura13
@anubhavbhura13 3 года назад
Sorry for a late comment, but could you explain this a bit more? Or if you have any resources I could read up on this could you share it? Thanks a lot
@eyemastervideo
@eyemastervideo 3 года назад
@@anubhavbhura13 I think it's like a buffer. Let's say you interrupt every second but delay in the interrupt for 5 seconds... That means every second your getting a delay called of 5 seconds. The stack only has some space. After 5 seconds you have 5 delay calls in progress.... It gets worse as time goes on and then there's no more space to store the calls, so you get an overflow. I'll be trying this out myself. Thanks
@zuko2349
@zuko2349 6 лет назад
I am trying to build the distance measurement with ultrasound 1st time for my last year undergraduate project. Thanks for the tutorials
@renatocanhaify
@renatocanhaify 6 лет назад
Thank you so much for your work. I would suggest you new topics: I2C, arduino communication with integrated circuits, filtering. Thank you again
@conversationwithgod272
@conversationwithgod272 4 года назад
Paul is really amazing, i do believe that like this man can make a great invention. Carry on great man , you are the best.
@sarfrazalam3032
@sarfrazalam3032 6 лет назад
You're really a good tutor . Why don't you make a tutorial videos on avr microcontroller !! Hoping for positive response .
@niceday2015
@niceday2015 2 года назад
The dislike must be envy the talented kind tutor,the lecturer is a true master.
@erygion
@erygion 4 года назад
Thank you Mr. Mcwhorter. Cleared up the questions I had. I was thinking of using an interrupt for a OLED display for feedback on a spwm sketch... now I won't lol
@VasilisKarastergios
@VasilisKarastergios 6 лет назад
Good day to you sir all the way from Greece.
@loptica62
@loptica62 6 лет назад
Just keep up the GREAT work !
@andrewferg8737
@andrewferg8737 4 года назад
Thanks! You answered my questions in this video!
@charleswindsor9595
@charleswindsor9595 6 лет назад
Thank you I found this lessen and Lesson 28 very helpful
@MN-be7sx
@MN-be7sx 5 лет назад
Hello Sir, Really need your help, Can you please make a lesson on how to count running hours of a generator or a motor etc. Actually what I want to do, I have two electric sources one from Grid and other one through Generators. Each source running at a time, And I want to monitor their max & min value of coming voltage, current voltages, max & min values of Amperes, current coming amperes, KWH, how many time each source has been run, and counting of their running time of each source. Really appreciate if you make a lesson on that. Thank you
@mcpojack
@mcpojack 6 лет назад
Would be interested in a NodeMCU tutorial possibly interfaced with a weather station type application. Love your tutorials, I have learned a bunch!! Please keep up the good work. I follow your Fusion 360 stuff also since I am a 3D printer buff. Too many hobbies!! 3D printing, CNC, Arduino, Drones, etc. etc.
@rccanuck4473
@rccanuck4473 4 года назад
Would an interrupt be a good tool to make an out put high once an hour. ie. making a cuckoo clock
@thambirajahpathmanathan7080
@thambirajahpathmanathan7080 4 года назад
Verry nice helpfull to me,Thanks a lot
@mohamedalsada9122
@mohamedalsada9122 6 лет назад
You are amazing.. Please please continue the Arduino lessons part
@mafiaboy16
@mafiaboy16 6 лет назад
Can't wait for the next lessen this info helps my 10 miles long
@hamidhamoh7212
@hamidhamoh7212 6 лет назад
AWESOME WORK
@MikevomMars
@MikevomMars 3 года назад
What about sleep modes and wake up via interrupt (f.e. when receiving a bluetooth signal)? This would be quite handy for lots of projects.
@michaelcostello6991
@michaelcostello6991 4 года назад
Excellent. Thanks
@twainstasiuk1945
@twainstasiuk1945 6 лет назад
Really good lessons on interrupts! I've used them from snippets but honestly never really understood what I was doing or how to make my own,,, now I do! All of a sudden the reference pages are easier to read at Ardunio.cc. Hahaha,, awesome and thank you for yet another quality teaching video! :)
@paulmcwhorter
@paulmcwhorter 6 лет назад
Glad you found it helpful.
@btomas225
@btomas225 3 года назад
It really baffles me as to why the compiler doesn't produce at least a warning that delay() is ignored in ISR's. Additionally, you can add millis() to the list of things that don't work in ISR's and ditto that for Timer1. I, and I'm certain others too have found these anomalies the hard way, sigh....
@naveenvaid4318
@naveenvaid4318 3 года назад
Hello sir i have a multiplexing data 7 segment 3 digit i want to change that data into lcd for the use with arduino uno what is the code please help me ...............so ncye of you
@domoledlight
@domoledlight 5 лет назад
Really good good Lesson , I have a question about software interrupts; i have 2 RF 433 mhz fonctions one receiving the other sending , i want to stop receive fonction when i send something in order to do not RF trouble sorry for my english
@AliRashidi97
@AliRashidi97 3 года назад
I have a question. why did the Arduino ignore that delay? was it because of the duration of the interrupt?
@paulbizard3493
@paulbizard3493 6 лет назад
Keep up the good work, thanks. :)
@pareshmhatre4019
@pareshmhatre4019 2 года назад
Mr. You are real hardworking Robot among us!
@abdulbasitjavaid
@abdulbasitjavaid 6 лет назад
sir please give the lesson on the buffers in Arduino and advance c programming used on Arduino and raspberry pi.thanks
@yeahyeahKeepDreaming
@yeahyeahKeepDreaming 6 лет назад
Great content! How about a msp430 lesson series
@basilsunnyalukka4491
@basilsunnyalukka4491 6 лет назад
Having difficulty Working with Bluetooth module can you make a tutorial on that.
@kyrylmelekhin2667
@kyrylmelekhin2667 6 лет назад
Is this interrupt similar to the function of " int 3 " in x86 assembly?
@karelenmarritkruyswijk393
@karelenmarritkruyswijk393 5 лет назад
Thank you again. Tried analogWrite, and even that seems to be to slow to work ;-)
@embeddedbypk1190
@embeddedbypk1190 6 лет назад
why is it not running with analog write can you provide a program for the same
@jayateerthkulkarni1561
@jayateerthkulkarni1561 6 лет назад
sir.. gotta question How do I learn designing codes without anyone's help..? If I want to build a Arduino based robot then the code should be designed by me. I don't like copying them from any web.. How do I do it?
@Ziplock9000
@Ziplock9000 6 лет назад
Books, videos, blogs
@Steve-GM0HUU
@Steve-GM0HUU 3 года назад
👍
@fsimz
@fsimz 6 лет назад
Where have you been Paul, waiting for more videos on the series 'Keys to a Successful Engineering Career'
@paulmcwhorter
@paulmcwhorter 6 лет назад
Wow, I did not think anyone was watching that series, so I went back to making Arduino lessons. I would like to make some in the series you mention on how to give a good presentation. Engineers are notorious for being poor presenters, so would like to teach on that when I get some time.
@fsimz
@fsimz 6 лет назад
Yes, how to give a good presentation and how to get out of the basement into the sunlight, I could use some advice on that
@paulmcwhorter
@paulmcwhorter 6 лет назад
The advancement I made in my career were not always because I was the best engineer in the room . . . but because I was the best communicator in the room.
@jaylay320
@jaylay320 6 лет назад
We want the series back!! :)
@khankhan-xx6wv
@khankhan-xx6wv 6 лет назад
Hi, how can I connect 6 dc motors in Arduino
@pharaohboy8657
@pharaohboy8657 4 года назад
You will need to use 3 of the l293d IC motor driver check lesson 37 of his new series also your comment is two years ago so I think I didn’t help u that much
@peterkowald7092
@peterkowald7092 4 месяца назад
You think using strings in an ISR is fast!!!! Hmmm think again, it’s a single line routine and managed to push it to a heap of useless tune rating code. Bad bad lessons for beginners
@erice.1636
@erice.1636 3 года назад
I stopped watching when I saw you using Delay()
@balajimct169
@balajimct169 6 лет назад
All the other lessons in Arduino are very good, finally upset with interrupt. Please post the direct code instead of library. Programmers like me need the source code to understand. Please don't use my code, just posted for clear understanding. Timer1 is for only one. no comments in code, please forgive. e.g.: byte outputPin[] = {2, 3, 4, 5}; int ledStatus[] = {LOW, LOW, LOW, LOW}; int waitTime[] = {40, 30, 20, 10}; unsigned long previousMillis[] = {0, 0, 0, 0}; unsigned long currentMillis[] = {0, 0, 0, 0}; void setup() { // put your setup code here, to run once: Serial.begin(115200); for (int i = 0; i
@Ziplock9000
@Ziplock9000 6 лет назад
There's on point listing the code of a library when you can access it yourself and it will go out of date.
@khankhan-xx6wv
@khankhan-xx6wv 6 лет назад
Please reply me
Далее
Using Arrays with Arduino
13:51
Просмотров 29 тыс.
Haaland Showed Me How It's Done.. 😜
00:11
Просмотров 2,8 млн
Oxxxymiron, ooes - журавли
00:19
Просмотров 57 тыс.
Make your own very crude Walkie-talkie with an Arduino
10:25
How to Use Arduino Interrupts The Easy Way
33:28
Просмотров 82 тыс.
Program, Interrupted - Computerphile
6:41
Просмотров 127 тыс.
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 192 тыс.
An Introduction to Interrupts
14:07
Просмотров 161 тыс.