08 Multitasking in Arduino using millis | Servo Motor and 7-segment Display | Embedded Systems

preview_player
Показать описание
In this video, Joed Goh explains the concept of executing multiple tasks in a single program by using the millis function. The discussion uses a common cathode seven segment display, an SG90 servo motor, LEDs, and a tactile switch to illustrate the concept.

04:13 Demo connection on 7-segment display
07:35 Basic Arduino program to control the 7-segment display
10:25 Using 2D array to control digit counter 0-9
12:33 Multitasking in Arduino
18:23 Servo Motor
27:45 Code and Circuit Connection Challenge

***NOTE:
in line 24 (15:20) with the code:
unsigned currentTime = millis(); // the type long is inferred because the millis return type is unsigned long, that's why it works even without explicitly specifying the type.

However, in c-based related programming languages, you must explicilty specify the type as in:

unsigned long currentTime = millis();

PLAYLISTS:

Embedded Systems using Arduino Uno

Android App Development in Kotlin

Designing Database Solutions with Microsoft SQL Server 2019

Data Structures and Algorithms using C#
Рекомендации по теме
Комментарии
Автор

Man, You were born to teach people, the way You explain is Brilliant! Thank You and please keep doing such amazing videos. God bless You! Respect from Russia.

sergeiabramov
Автор

I don't know how to appreciate you right now only i can say.. thank you so much..❤️🤝🏻

abhijitroutray
Автор

And Life is infinite education itself, Thank you Joed !!!✌

markus
Автор

Wow! I came here to learn how to use millis so that I could run the 4-digit, 7 segment display along with other modules. I learned so much more than I anticipated ; simple little things that I hadn't even thought of, such as using a for loop to assign all pins of the same type. I'm using an ESP32 and my pin numbers are not in order, but I can just use an array and loop through the elements to do the assigning. There were several other things I learned. You've earned my sub; and I really enjoy your style of delivery.

EngineerNotFound
Автор

Your Tutorial So Clear, Great Explained, Thank you sir ! Respect from Indonesia

Bit-Jauhari
Автор

Well Done!!!This is one of the few videos that start by showing the viewer what is the purpose and will be achieved. WELL DONE!!! It is structured as it should be

enriqueeenriquez
Автор

This is the kind of explanation I've been looking for for a long time. I'm not even joking, you really did explain the millis function well, cuz I've been struggling with my final year project. But now I realized it was all in the delays. Thank you so much. You've made a new subscriber.

Engine-Nyandu
Автор

This video is perfectly explained thank you so much! Im currently in a Robot building event and this is going to save me.

notchos
Автор

I love you, I have been searching for this for almost 4 hours

hastyarazad
Автор

crystal clear you're talented at explaining stuff. Well done mate!

educationaltechnology
Автор

Thank you, I've been trying to use for loops simultaneously without using delay and you saved me.

Alexis-evvh
Автор

a very elegant way of teaching, like being born to be so. The explanations exceed your reputation, man you live up to your name. huge: LIKE AND SUB. I will be your follower. thank you for your effort

naboulsikhalid
Автор

Thank you Jeod, I have a clear understanding of this topic. Very interesting.

chitobalazo
Автор

An excellently produced and very clearly explained tutorial. Many thanks. I have subscribed.

bernym
Автор

Great video! Will be watching many more. Excellent presentation!

ChrisWilliams-pupj
Автор

well done sir, excellent for uploading

Hardeepsingh-rexn
Автор

You saved me from many headaches down the road I thank you. I kinda wished I would of got to watch this video before starting my program awww we learning… thank you

KSATica
Автор

good day sir
what about when the push button is pressed and the seven segment will not reset and it will continue to run how to code it?
thanks

rjcjvlogs
Автор

Your presentation is very Nice, Easy to understand. good Job you done. Thank You.

kanniahnaiduvenkatesh
Автор

Best Arduino multitasking vid ever. Super helpful. Thank you!

kitingboarding