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

ความคิดเห็น • 16

  • @davidcho3884
    @davidcho3884 5 หลายเดือนก่อน

    i am doing this for my arduno science project. thank you!

    • @joedgoh
      @joedgoh  5 หลายเดือนก่อน

      You are welcome! 😁

  • @mixme8655
    @mixme8655 6 หลายเดือนก่อน

    Thank you now watching and learning 😊❤❤❤

    • @joedgoh
      @joedgoh  6 หลายเดือนก่อน

      Thanks!

    • @mixme8655
      @mixme8655 6 หลายเดือนก่อน

      @@joedgoh sir I finished it thank you it took me too long because I am a beginner

  • @mikehuang8035
    @mikehuang8035 6 หลายเดือนก่อน

    Your course is fantastic. Please keep up the good work. More and more students will surely enjoy your courses.

    • @joedgoh
      @joedgoh  6 หลายเดือนก่อน

      Thank you Mike! 🙂

  • @michelealbanese4438
    @michelealbanese4438 6 หลายเดือนก่อน

    Complimenti ❤

  • @mixme8655
    @mixme8655 6 หลายเดือนก่อน

    Good evening sir I am ready for lesson 5 😊😊😊

    • @joedgoh
      @joedgoh  6 หลายเดือนก่อน

      Thanks... Lesson 05 is up!

    • @mixme8655
      @mixme8655 6 หลายเดือนก่อน

      @@joedgoh thank you sir lesson 5 is my next target asap

  • @310765
    @310765 6 หลายเดือนก่อน

    But will the traffic light unit draw to much current from the Arduino R4?

    • @joedgoh
      @joedgoh  6 หลายเดือนก่อน +1

      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.

    • @310765
      @310765 6 หลายเดือนก่อน

      ⁠@@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 🤩 ❤

    • @joedgoh
      @joedgoh  6 หลายเดือนก่อน

      Yes, that is good! 🙂 thanks