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!
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
If you ever have a project using two or more Arduinos, it’s likely you’ll want them to work together. Say for example you have one Arduino connected to an LCD shield, and another Arduino controlling an LED matrix. You want both to do something when you press a single button – how can this be done?…Read More
Do you have an application where you want multiple buttons for different user inputs? Maybe you have a timer and you want one button for minutes and another for hours. But there is a problem – you only have room for one button! In this tutorial, we are going to use Arduino to explore how…Read More
This lesson walks through how to understand an Arduino library.Read More
This lesson walks through how to download and set up an Arduino library and some pit-falls you might encounter.Read More
In this lesson we discuss some common shorthand for simple arithmetic in Arduino. We cover several compound operators that add, subtract, multiply and divide making it easy to increment variables in useful ways.Read More
This lesson discusses what to do when you open an existing program and realize that you simply don’t understand all the stuff that is going on. It also talks about using the ADXL345 triple axis accelerometer breakout board to control the hue of a Red-Green-Blue (RGB) LED.Read More
In this tutorial we describe using RGB LEDs of the Common Cathode Type. We will describe setting up the circuit, talk about the LED and discuss the code used to adjust the hue.Read More
This video 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 is harder than you might think. The closest we can get in Arduino, and just about anywhere else, is using pseudo random numbers. That…Read More