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

Показать описание
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#
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#
Комментарии