How to Use Millis to Master Arduino Multi-tasking
Rachel De Barros Rachel De Barros
53.6K subscribers
43,599 views
0

 Published On Apr 17, 2023

Discover how to take your Arduino projects to the next level with this essential guide to multitasking using the millis() function instead of delay(). Learn how to efficiently manage multiple tasks on your Arduino, even if the Arduino can only execute one line of code at a time.

Arduino Millis Tutorial with Code ▶︎ https://racheldebarros.com/how-to-use...

In this tutorial, we'll cover:

1. The limitations of using delay() and why millis() is a game changer for Arduino multitasking.

2. Practical examples and step-by-step instructions to replace delay() with millis() in your projects.

3. How to create non-blocking code to handle concurrent tasks more effectively.

4. The benefits of implementing state machines to manage independent tasks simultaneously.

Whether you're a beginner or an experienced Arduino enthusiast, this video will provide you with valuable insights and techniques to enhance your projects' responsiveness and complexity. Don't miss out on unlocking the full potential of your Arduino microcontroller.

Video Chapters:
0:00 Intro
0:42 Limitations with Using Delays
1:24 What is Millis?
1:56 How Long Can Millis Count?
2:43 What Does Millis Look Like?
5:00 Circuit Diagram
5:47 Blink the Red LED: Understanding your first millis() sketch
22:15 Add a Fading Blue LED
30:34 Add a Push Button Toggling Green LED
36:44 Add a Sweeping Servo
45:20 Servo Library Conflicts
49:07 Wrap Up & Final Thoughts


Build & Code Along:
🛒 Arduino Uno or Clone: https://amzn.to/476UQIB
🛒 Breadboard: https://amzn.to/497qA1V
🛒 Jumper Wires: https://amzn.to/3tSo3Zd
🛒 LEDs: https://amzn.to/46IWArx
🛒 330 Ohm Resistors (or resistor kit): https://amzn.to/492V3OB
🛒 Push Button: https://amzn.to/407vuIa
🛒 Micro Servo: https://amzn.to/40fUyNm


Join the Engineering Artists Community ▶︎ https://racheldebarros.com/community


Some links included here are to affiliate sites. If you purchase something through them, I may earn a small commission — which costs you nothing! I am very grateful for your support when you use my links to make a purchase.

#arduinotutorial #arduinomillis #arduino #millis

show more

Share/Embed