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!

installing Arduino libraries

Installing Arduino Libraries | Beginners Guide

Are you eager to delve into the world of Arduino libraries but unsure where to start? Fear not, as I’m here to guide you through three distinct methods of installing Arduino libraries, ranging from the easy and straightforward to the…

Read More
Using random() and randomSeed() with Arduino

Using Random Numbers with Arduino [SOLVED]

Are you trying to use random numbers with Arduino? This article tutorial talks about using the random() and randomSeed() functions with Arduino.  It is pretty straight forward, but there are some intricacies worth noting. Creating truly random numbers in Arduino…

Read More

Comment out Code – 3 Ways in Arduino IDE 1 and 2

Commenting out code. What does that mean exactly? Now, I’m not talking about ‘commenting code’. That’s a discussion in and of itself. I’m talking about commenting OUT code. That’s when you selectively turn off some of the code in your…

Read More
programming electronics logo, millis() in big letters

Arduino Sketch with millis() instead of delay()

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.…

Read More

Use tone() with Arduino for an Easy Way to Make Noise

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…

Read More
Using Serial.print() with Arduino to display output to a computer monitor

Use Serial.print() to Display Arduino output on your computer monitor

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…

Read More
orange banner with big organize code and cartoon Arduino board

How to organize Arduino programs

Read More

Use the Arduino Mouse Library for automating simple tasks

In this lesson, we are going to talk about using the Arduino Mouse library! This is a really helpful way to automate mouse functions by using the Arduino USB libraries and programming them to your Arduino board! Check out the…

Read More

Use the Arduino Keyboard Library for automating simple tasks

In this lesson, we are going to talk about using the Arduino keyboard library! This is a really helpful way to automate keyboard functions by using the Arduino USB libraries and programming them to your Arduino board! Check out the…

Read More
dtostrf

dtostrf() – turn your floats into strings

dtostrf() may be the function you need if you have a floating point value that you need to convert to a string. In this lesson you will learn exactly how to use dtostrf in your Arduino code. dtostrf() syntax Let’s…

Read More