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!
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…
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() 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() – 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…
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…
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…
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…
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() 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…