Up until now, our circuits have been about as smart as a bag of hammers. We plug a battery into an LED, it lights up. We add a switch, we can turn it off. Itâs the electronic equivalent of playing peek-a-boo. But what if we want the LED to flash Morse code? Or turn on only when itâs dark? Or pulse to the beat of your terrible Spotify playlist?
Doing that with basic components would require a circuit diagram that looks like a bowl of spaghetti and endless frustration. I donât have time for that, and neither do you. Instead, weâre going to cheat and use a âbrainâ to do the heavy lifting. Welcome to Module 2, where we introduce the Microcontroller. Get ready to swear at your computer instead of your breadboard.
The Arduino Uno, the most popular microcontroller board for beginners.
A microcontroller is essentially a tiny, self-contained computer on a single chip. It has a processor, memory, and programmable input/output peripherals. Unlike the processor in your laptop, which is designed to run a complex operating system and multiple apps, a microcontroller is designed to run one specific program over and over again.
The Arduino Uno is a development board that makes using a specific microcontroller (the ATmega328P) incredibly easy.
Letâs take a tour of the board:
That large, rectangular black chip in the center (or sometimes a smaller square chip, depending on the model) is the actual microcontroller. Everything else on the board is just there to support this chip, provide it with power, and help it talk to your computer.
5V, 3.3V, and GND (Ground). You will use these to supply power to the components on your breadboard.Along the top edge are the Digital Input/Output pins.
Along the bottom right are the Analog Input pins. While digital pins can only read HIGH or LOW, these pins can read a range of voltages between 0V and 5V. This is perfect for reading sensors like volume knobs or temperature gauges.
To follow along with Module 2, you are going to need an Arduino Uno and some basic components. If you havenât picked one up yet, we highly recommend an all-in-one kit.
[Ready to start building? Grab an ELEGOO UNO R3 Project Smart Starter Kit to get the board, breadboard, and all the components you need for this module!]
In the next lesson, weâll plug this board into our computer and write our very first program!