Тёмный

Arduino UNO R4 Lesson12 - millis Function | Handling Multiple Tasks | Non-Blocking Code 

Education is Life
Подписаться 12 тыс.
Просмотров 2,9 тыс.
50% 1

This is the 12th lesson of the Arduino UNO R4 - Ultimate Training series. Joed Goh discusses how to use millis function instead of delay to manage multiple tasks.
Where to buy?
Amazon US
SunFounder Ultimate Sensor Kit with Original Arduino Uno R4 Minima -
amzn.to/3FCX06P
SunFounder Ultimate Starter Kit with Original Arduino Uno R4 Minima -
amzn.to/3MqfSKd
SunFounder Official Website:
www.sunfounder.com/?ref=hmqmlw0e
------------------------------------------------------------------------------------------------------------------
TABLE OF CONTENTS
00:00 Introduction
01:40 Materials
04:48 Circuit Connection
07:70 PWMServo Library
09:22 millis Function
09:56 The Sweep Sketch
12:36 LED Blink using millis
15:38 Controlling Servo using millis
20:19 Reading Button with millis
21:48 Challenge Activity
Arduino UNO R4 Lesson11 - Servo Motor | Single-Axis Solar Tracker using Photoresistors
• Arduino UNO R4 Lesson1...
Arduino UNO R4 Lesson06. How to Read Analog Sensors? Potentiometer | Bits, Bytes, & Binary Numbers
• Arduino UNO R4 Lesson ...
PWMServo Library
github.com/PaulStoffregen/PWM...
------------------------------------------------------------------------------------------------------------------
PLAYLISTS:
Arduino UNO R4 Minima Ultimate Training Course
• Arduino UNO R4 Minima ...
SunFounder Kit Product Review
• SunFounder Learning Kit
Designing Database Solutions with Microsoft SQL Server 2019
• Designing Database Sol...
Artificial Intelligence and Machine Learning Foundations
• Artificial Intelligenc...
IoT Development
• Internet of Things
Android App Development in Kotlin
• Android App Developmen...
Embedded Systems using Arduino Uno
• Embedded Systems using...
Data Structures and Algorithms using C#
• Data Structures and Al...
References:
www.arduino.cc/reference/en/l...
www.programmingelectronics.co....
#SunFounder #arduino #trafficlight #button #millis #servomotors #servo #multitasking

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

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@alistaircook1997
@alistaircook1997 4 месяца назад
Great lesson thank you for your time
@joedgoh
@joedgoh 4 месяца назад
Thanks for watching 😊 Pls share..
@VictorPang-iq4yh
@VictorPang-iq4yh 2 месяца назад
Hi Joed, can’t wait to learn from your next lesson.
@joedgoh
@joedgoh 2 месяца назад
Thank you for waiting. Lesson 13 is now out! Please check 😊
@PhG1961
@PhG1961 3 месяца назад
Excellent!
@joedgoh
@joedgoh 3 месяца назад
Thank you!
@samnus
@samnus 17 дней назад
i have a challenge also to you. Blink a LED every 1 second continuously using a simple sketch with 3 lines of code using 2 functions only. Materials needed are Arduino uno, 220 ohms resistor and LED.
@joedgoh
@joedgoh 17 дней назад
Your instruction is incomplete. Does it have to be custom function or a built-in function like a simple digitalWrtie and digitalRead will do?. Is it required to use millis because you posted it on this topic? By the way, using 220 ohms resistor on UNO R4's gpio when connecting to an LED is not advisable, as its max current is only 8mA. I might not be able to answer your challenge because I don't know anything. I just teach and share what I know. I don't challenge others just to prove that i am better than them, because I am not. Please teach me and the others how it is done. Thank you.
@sheekosheko
@sheekosheko 2 месяца назад
I have a question and its. How can use single Arduino. Into multiple sensors like. Developing home automation systems using RFiD,Light,Fans, and temp. Using 1 Arduino and mobile app
@joedgoh
@joedgoh 2 месяца назад
Hi, your question is broad and cannot be answered directly here with a simple chat. It is a combination of concepts that you will learn in the future if you continue watching this series. Thank you
@markjosephedep5116
@markjosephedep5116 3 месяца назад
Hi prof! Can you do a video tutorial for PUG xml and ruby on rails?
@gyrurur
@gyrurur 3 месяца назад
How to decode ir remote using r4 minima
@vijaysulakhe5605
@vijaysulakhe5605 Месяц назад
My request... kindly make such videos for Pi Pico W....it has lot of resources... and students ( and we also) are very much cost conscious...I can have 3 Pi Pico at cost of one R4...£ $ € Rs matter...many thanks.
@joedgoh
@joedgoh 25 дней назад
Hi. Thanks for your suggestion and I understand your concerns. However, as of now, I do not have any sponsor for R pi pico W. If it wasn't for SunFounder who provided me with the Arduino kit and sponsoring this series, I would not be producing videos anymore because it is hard and time consuming. I only do it on a part-time basis. Producing online lessons is also costly. When I have a spare time and/or sponsorships, I'll produce the R pi pico W series. Thank you for understanding! 😊
@KingKong-kk4bs
@KingKong-kk4bs 3 месяца назад
Hi sir, how do we use push button as trigger/ toggle the movement of servo with millis since usually I used delay?
@joedgoh
@joedgoh 3 месяца назад
The same way as I have discussed in this lesson. How do you use it using delay by the way? Let me see your code first.. thanks
@sheekosheko
@sheekosheko 2 месяца назад
Excuse me sir. I would like to contact you
@user-ii8fq3le8i
@user-ii8fq3le8i 3 месяца назад
Are there solutions to your challenge activities on the web?
@joedgoh
@joedgoh 2 месяца назад
Hi, I'm sorry but I don't post the Challenge Activity on the web. Thank you for your support 😊
@alistaircook1997
@alistaircook1997 3 месяца назад
when will we see your next lesson 13
@joedgoh
@joedgoh 3 месяца назад
Hi Alistair, I'm sorry for not being able to produce lesson 13 this week. I've been out of the country since last week (Japan 😃 ). I will start lesson 13 by next week. Thanks for watching! :)
@michelealbanese4438
@michelealbanese4438 2 месяца назад
Ciao perché non ci sono più video?
@joedgoh
@joedgoh 2 месяца назад
Hi, I will upload lesson 13 soon. I had a project for a month and I was not able to produce a video. Thank you for waiting.
@vijaysulakhe5605
@vijaysulakhe5605 Месяц назад
Will these work on R3 also?
@joedgoh
@joedgoh Месяц назад
Yes, codes here are compatible with R3
@vijaysulakhe5605
@vijaysulakhe5605 Месяц назад
@@joedgoh Thanks...for making such interesting educational videos.
@joedgoh
@joedgoh Месяц назад
You are welcome 😊 Glad to be of help. Pls share.
@vijaysulakhe5605
@vijaysulakhe5605 Месяц назад
@@joedgoh I told all my students.👍
@joedgoh
@joedgoh 25 дней назад
Thank you so much :)
@chitobalazo
@chitobalazo Месяц назад
Hi Joed, I installed avr boards 1.0.5 as per your video. However it’s not finding .
@joedgoh
@joedgoh Месяц назад
You have to install it. github.com/PaulStoffregen/PWMServo Please see my previous lesson
Далее
Incredible magic 🤯✨
00:53
Просмотров 2,5 млн
Arduino Uno R4 Review - Best Arduino Board Ever?
9:16
7 Years of Software Engineering Advice in 18 Minutes
18:32
STM32 Guide #2: Registers + HAL (Blink example)
30:02
Просмотров 185 тыс.