It's time to put what we've learned together into a (basic) project. Here's what we've worked on so far:
- Connecting the Arduino to a computer
- The Arduino IDE and uploading sketches
- Using jumper wires with a solderless breadboard
- Safely powering LEDs with Arduino
- Using pins on Arduino as digital outputs and digital inputs
- Using a momentary push button switch to indicate a logic state
- Various Arduino commands and syntax, including
At this point, you don't need to be an expert on all of the above-mentioned topics, but you should at least have a basic recollection of what we did and how they work. Go back and revisit our previous activities if necessary before continuing with this project.
- defining and assigning variables
- pinMode()
- digitalWrite()
- digitalRead()
- if()
- else()
- delay()
Click through the break to begin this project: