Arduino UNO R4 Lesson 04. Variables, Data Types, and Constants | Arduino Ultimate Training Course
ฝัง
- เผยแพร่เมื่อ 19 มิ.ย. 2024
- This is the 4th lesson of the Arduino UNO R4 Minima Ultimate Training Series. In this video, Joed Goh talks about variables, data types, constants, and macro definitions (#define preprocessor directive). He explains the correct use of variables, constants, and macro definitions when programming microcontrollers with limited memory resources. In his illustrations, he uses the SunFounder's LED traffic light module included in the kit.
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:29 Materials
02:09 Circuit Diagram
02:33 Simple Traffic Light Sketch
04:30 Variables
06:13 Identifiers
06:30 Data Types
12:50 const qualifier
14:49 #define preprocessor directive
17:05 Challenge Activity
18:01 Up Next
------------------------------------------------------------------------------------------------------------------
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/#...
#SunFounder #arduino #programming
i am doing this for my arduno science project. thank you!
You are welcome! 😁
Thank you now watching and learning 😊❤❤❤
Thanks!
@@joedgoh sir I finished it thank you it took me too long because I am a beginner
Your course is fantastic. Please keep up the good work. More and more students will surely enjoy your courses.
Thank you Mike! 🙂
Complimenti ❤
Good evening sir I am ready for lesson 5 😊😊😊
Thanks... Lesson 05 is up!
@@joedgoh thank you sir lesson 5 is my next target asap
But will the traffic light unit draw to much current from the Arduino R4?
In lesson 03 I discussed how to compute for the current-limiting resistors to be used. R4 has a max current of 8mA per pin. I used 1k ohm resistor per LED. You can even use a bigger value resistor but the LED will be a bit dimmer.
@@joedgohHi joedgoh, the pre assembled traffic light unit (the one with the larger LEDS) looks like it has 330ohm smd resistors built in to the unit, by my calculations (5v - 2v / 330) the current flow would be around 9-10ma which is greater than what the Arduino R4 pins can handle, would you suggest using another 330ohm resistor wired in series for each LED? Thanks 🤩 ❤
Yes, that is good! 🙂 thanks