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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ค. 2024
  • 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

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

  • @VictorPang-iq4yh
    @VictorPang-iq4yh 25 วันที่ผ่านมา

    Hi Joed, can’t wait to learn from your next lesson.

    • @joedgoh
      @joedgoh  22 วันที่ผ่านมา

      Thank you for waiting. Lesson 13 is now out! Please check 😊

  • @alistaircook1997
    @alistaircook1997 2 หลายเดือนก่อน +1

    Great lesson thank you for your time

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

      Thanks for watching 😊
      Pls share..

  • @PhG1961
    @PhG1961 2 หลายเดือนก่อน

    Excellent!

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

      Thank you!

  • @markjosephedep5116
    @markjosephedep5116 2 หลายเดือนก่อน

    Hi prof! Can you do a video tutorial for PUG xml and ruby on rails?

  • @sheekosheko
    @sheekosheko 26 วันที่ผ่านมา +1

    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  25 วันที่ผ่านมา

      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

  • @sheekosheko
    @sheekosheko 26 วันที่ผ่านมา

    Excuse me sir. I would like to contact you

  • @KingKong-kk4bs
    @KingKong-kk4bs 2 หลายเดือนก่อน

    Hi sir, how do we use push button as trigger/ toggle the movement of servo with millis since usually I used delay?

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

      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

  • @gyrurur
    @gyrurur 2 หลายเดือนก่อน

    How to decode ir remote using r4 minima

  • @alistaircook1997
    @alistaircook1997 2 หลายเดือนก่อน

    when will we see your next lesson 13

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

      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! :)

  • @user-ii8fq3le8i
    @user-ii8fq3le8i หลายเดือนก่อน

    Are there solutions to your challenge activities on the web?

    • @joedgoh
      @joedgoh  22 วันที่ผ่านมา

      Hi, I'm sorry but I don't post the Challenge Activity on the web. Thank you for your support 😊

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

    Ciao perché non ci sono più video?

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

      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.

  • @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