Lesson 5 · Build AND OR circuit using switches and button, LED blink using Arduino and C
Suggested Time: 60-75 minutes
Lesson Plan
Project Overview
Connect your circuit-building skills to Arduino programming. You’ll build AND/OR circuits with switches and buttons, then write C/C++ code to make an LED blink.
Materials
Need materials? Purchase the Magic Box Kit at our e-store.
Classroom sets available. Contact us at info@barnabasrobotics.com to inquire.
Tutorial Video
Magic Box 2.0 - S1E5 - Build AND OR circuit using switches and button, LED blink using Arduino and C
Video length: 57:13
Key Topics
- Building AND/OR circuits
- Connecting Arduino to an LED circuit
- Writing introductory C/C++ code to blink an LED
Before Moving On
Make sure your circuit and code from this lesson work reliably before continuing to the next episode. Save your code so you can build on it in later lessons.
What’s Next?
In Lesson 6, you’ll use functions and timing to program an LED to send an SOS message in Morse code.