Lesson 14: Arduino Millis (no delay) and map functions | SunFounder Robojax
ฝัง
- เผยแพร่เมื่อ 8 มิ.ย. 2024
- In this lesson we learn how to use millis() function with explanation and examples. We implement it such that Arduino program runs without delay and all program runs in the duration of time. Then we learn how to use map() so we can control LED with proper percentage like 60% intensity or speed or motor with percentage like 85% and we are not worried to have value from 0 to 255. Both with example.
آشنایی با ملیس به فارسی
• Video
Purchase this kit from SunFounder website robojax.com/L/?id=367
This lecture is part of Robojax Arduino Course based on SunFounder kit with lesson 1 starts here: bit.ly/sunfouder
The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
*** Purchase this SunFounder Arduino Learning kit from Affiliated Stores **
Amazon USA:amzn.to/3iAYIh7
Amazon Canada:amzn.to/3Fm76cV
Amazon Germany :amzn.to/3UtVOYG
Amazon UK: amzn.to/3VuRNV1
Amazon France: amzn.to/3iCKfko
Amazon Spain: amzn.to/3Vu7uvA
Amazon Italy: amzn.to/3EYGu0v
Amazon Japan: amzn.to/3h0nbf1
SunFounder website: robojax.com/L/?id=367
eBay: ebay.us/xYb1lT
AliExpress: s.click.aliexpress.com/e/_DlS...
Download Arduino Code: docs.sunfounder.com/projects/...
Use Chapters from timeline or click on the time
00:00 Introduction
1:18 What is millis()
3:07 Demonstration 1
8:07 Example 2 push button
12:12 Example 3
17:19 mapp ()
19:45 map code demonstration
22:39 map() using a custom function
Tutorial by Ahmad Shamshiri form Canada
If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link bit.ly/donate-robojax
Power Supply I use:
DC 30V 60A Power supply: s.click.aliexpress.com/e/_98Ah5c
DC 60V 30A Power supply: s.click.aliexpress.com/e/_APyPJ0
Follow me on Facebook robojaxTV
Follow me on Twitter: / robojaxtv
Follow me on Instagram: / robojax
Follow me on TikTok : tickTok.com/@robojaxtv
Tutorial by Robojax.com
Get other projects code and learn Arduino
robojax.com/
#SunFounder #robojaxSunFounder #robojaxMillis
*** AFFILIATE PROGRAM ***
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. - วิทยาศาสตร์และเทคโนโลยี
Thank you so much for this video. I’ve been needing to study millis().
you are welcome. In this video I have expaliend it with two examples which is much better I believe th-cam.com/video/obBX9hyH5mM/w-d-xo.html
Thanks! Now to wrap this around my head so that I can manage temp and humidity with arduino simultaneously!
You are welcome. The best thank you for me is to subscribe to my channel. Your subscription is stamp of approval and my videos will be suggested to more people and this will help me. I appreciate it. thanks❤️
Sir how to change 60 to 90 using LCD ?
watch and learn from this video. you can't just say 60 or 90. you need 4 value to use map.