Arduino Programming Lessons
Arduino is programmed with a mixture of C, C++ (see plus plus), and a large helping of Arduino specific code to make programming microcontrollers more accessible.
I hope you find the following lessons on programming Arduino helpful!
Are you trying to build a project using Arduino and you need to program repetitive timed events? Are you looking for alternatives to the delay() function to achieve this? Have you heard of the millis() function? The wait is over. This lesson is for you. How we got here If you’ve watched the previous lessons,…Read More
How do we create repetitive timed events with Arduino? Do we use delay(), do we use millis()? We continue to explore when and where we use each function in the following lesson. Intro This is part 4 of our millis() function mini-series. Part 1 helps us understand what the millis() function does, and part 2 discusses…Read More
Have you ever tried to create create timed, repetitive events in your Arduino sketches? Have you run into roadblocks when you try to use the delay() function? We’ll explore why this happens in this lesson. Intro This is part 3 of our millis() function mini-series. Part 1 helps us understand what the millis() function…Read More
Have you ever been making an Arudino project and you want something to occur at a timed interval? Maybe every 3 seconds you want a servo to move, or maybe every 1 minute you want to send a status update to a web server. How do you do that? Is there a function that is simple…Read More
Have you heard of the Arduino millis() function? Did you know that it gives you access to the Arduino internal timer counter hardware which can be used for the timing of different events? We will discuss this and more in the video tutorial below. Topics in this lesson What is a hardware clock? Timer/Counter()…Read More
Are you using a switch statement that is triggered by input from the serial monitor window? For example, when you type a letter into the serial monitor, you want that letter to trigger a case in your switchcase() statement, but what you’re finding is that the switchcase() doesn’t seem to be working right? What’s going…Read More
In many cases while using an Arduino, you will want to see the data being generated by the Arduino. One common method of doing this is using the Serial.print() function from the Serial library to display information to your computer’s monitor.Read More
In many cases while using an Arduino, you will want to see the data being generated by the Arduino. One common method of doing this is using the Serial.print() function from the Serial library to display information to your computer’s monitor. In this week’s episode, we will talk about the intricacies of the Serial.print() function.…Read More
Do you need to make some noise with Arduino? Maybe a simple tone for an alarm, maybe a beep to alert you when a specific input threshold is met, or maybe to play the Super Mario Brothers soundtrack to entertain your juvenile mind (it’s OK, we are all there, too). Whatever your audible need, you…Read More
In this video we demonstrate how to create pseudo random numbers with Arduino – with a useful twist. This lesson was inspired by the following viewer question: How do I create Random Non-Consecutive numbers with Arduino? P.S. These are the best tutorials that a complete idiot like you could ever make, thanks. -ChrisRead More