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!

How to organize Arduino programs

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…

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…

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…

sprintf() with Arduino | Print multiple variables to the serial monitor

sprintf() – Ugly to say, but incredibly useful to master. Sprintf() stands for “string print format(ted)”. It’s your go-to function if you’re looking for a more efficient way to combine text and variables into a string for output to the…

Serial Communication with Arduino

Are you wondering what the heck serial communication is? Maybe you have been using some functions from the Arduino Serial library, like Serial.begin() and Serial.print() and they leave you wondering more about this serial communication thing – I mean, how…

What is Serial.begin(9600)?

Are you wondering what Serial.begin(9600) does? You’ve probably seen it in most of the Arduino programs you’ve looked at – but what’s it there for?! Do you even need to use Serial.begin()? What if you change the number 9600? I…

Using parseInt() with Arduino [Guide + Code]

Are you trying to send integers over serial using parseInt with Arduino? Maybe you’re struggling to understand the difference between Serial.read() and Serial.parseInt(), and how they can work for you? Do you just need to know how to convert multiple…

Using Serial.read() with Arduino

Most people stumble across the Arduino Serial.read() function pretty early on in the Arduino learning curve. Which makes sense! Serial communication is a great way to see what’s going on after you compile and upload a new sketch, and it…

Arduino millis() – The Beginners Guide to multi-tasking with Arduino using millis()

Arduino millis() or delay() – which should I use? How can I time multiple events with Arduino? How can I multi-task with Arduino? Can I still get inputs and have timed events? What is a hardware clock anyway? So many…