Arduino millis() function: 5+ things to consider

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

We designed this circuit board for beginners!

SHOP OUR FAVORITE STUFF! (affiliate links)
---------------------------------------------------

Get your Free Trial of Altium PCB design Software
We use Rev Captions for our subtitles

Arduino UNO R3:

Budget Arduino Kits:

Multimeter Options:

Helping Hands:

Soldering Stations:

AFFILIATES & REFERRALS
---------------------------------------------------

FOLLOW US ELSEWHERE
---------------------------------------------------
Рекомендации по теме
Комментарии
Автор

6 years ago i learnt the basics of arduino from open source hardware, and now i see you again doing this amazing stuff .
amazing

rishabhsstudio
Автор

The best video ever explaining millis. Thank you and please keep up the great work.

miker
Автор

It's been 4 years man I'm still waiting on you to tell me the tensile strength of a rubber band

loganphillips
Автор

One minor point of critique:
Explanations on absolute programming basics (like: What is a variable, what are datatypes, basics about functions etc.)
are best explained in a seperate, dedicated video.
Otherwise, it makes the video feel a bit tedious despite the well structured nature of this video.
Particularly unpleasant for people with some level of programming experience.

Other than that, this video was quite helpful.

ichbrauchmehrkaffee
Автор

its just incredible how fast things can happen in programming, every millisecond is important

BurnerStudio
Автор

Thank you. This video is the first step in my next project: Calculating the RPM of my stepper motor. The Arduino code that runs my stepper motor driver, turns a Pin connected to the PUL pin of the Driver to HIGH, has a delay of 500, then turns the pin to LOW. This code loops to run the motor at a constant RPM. This video will help. But if you have any suggestions/video recommendations to calculate the RPM, let me know. Thanks!

KW-eipi
Автор

1:40
Correction. Most Arduinos use a ceramic resonator. This is not as accurate as a crystal. Generally, a crystal is needed for things like serial communication in order to control the baud rate. The crystal pictured in the time stamp is used for this purpose. It is the crystal for the USB to serial converter. In this case the converter is another AVR microcontroller, an ATmega16U2. The crystal resonator used for the ATmega328 is pictured just below "ITAL" in the Made in Italy text.
-Jake

UpcycleElectronics
Автор

For a moment i was confused and angry? Why the hell You have only 107k broo...Ur content is soo sooo soo awsm you should me 10 millions

atharavhedage
Автор

Thanks for this amazing video

Challenge q2: The values goes from 0 to 32, 767, then from -32, 768 to 0 and this cycle repeats.

sdk
Автор

Hey! who are you man. Believe me you have some very special, good gifted skills in terms of explaining things. The way you elaborate is simply magnificent. This is a great learning experience and please continue this. Thanks

TheUsman
Автор

Damn these videos are soooo good for beginners. Its a shame it dosn't have more views.

Andrigamt
Автор

So what’s the tinsel strength of an elastic band?

daleball
Автор

Nice video, but there are some inaccuracies:

1. The timer/counter does not start counting “as soon as power is applied”: it starts counting when initialized by the Arduino core (see the setting of the TCCR0B register in init(), in wiring.c). Admittedly, this happens very shortly after power is applied.

2. The timer/counter does not overflow after 49 days: it overflows every 1024 µs. The 49.7 day rollover is for the millis() count, which is a different thing.

3. millis() does not give the running tally stored in the timer/counter: it returns a count of the timer/counter overflows, plus some correction to account for the fact that the overflow happens every 1024 µs instead of every millisecond. The micros() function, unlike millis(), does make use of the running tally kept by the timer/counter.

edgarbonet
Автор

I could have Subscribed even before completing watching ; but content was great, so I subscribed after watching.
Keep up the good work.

Greetings from Tanzania 🇹🇿

raymondmichael
Автор

Your video lessons are fookin brilliant.

Audio_Simon
Автор

i was blooown away how its explained in detail, thanks

RadionicaExpress
Автор

Hi thank for good explaination, I never a regret a penny to buy a lesson from you. Looking forward to learn more from you master.

sokundavannchriv
Автор

best for this topic, i have been looking for good tutorial like this, u make me have more interest in Arduino programming

martinsiolowosoran
Автор

So great! Look forward to seen something similar on timer interrupt.

AbcDef-hlic
Автор

I never saw a video like your videos great. thank you ...

attalaw