Pushbuttons and LEDs with Arduino. Using Digital (On/Off) Inputs and Outputs

Pushbuttons and LEDs with Arduino. Using Digital (On/Off) Inputs and Outputs

L
LeMaster Tech
1 Video View·Apr 23, 2025

The real power of an Arduino Microcontroller is it's ability to control real world devices from programs we write! These real world devices are called inputs when they are devices we read information from, such as the state of a pushbutton. These devices are called outputs when they are devices we want to control, such as LED lights.

If you want to follow along with this project exactly and need the same hardware kit, you can grab it here from Amazon!
https://amzn.to/3zppXAr

Check out the full Arduino Tutorials Playlist on the channel for more automation and electronics content!
https://www.youtube.com/playlist?list=PLsFyHm8kJsx0wNcgdb9mSZHqwQoC9HBlc

Consider becoming a super supporter of the channel and helping us grow into bigger and better projects!!!
https://www.patreon.com/LeMasterTech

In this video we start by covering quickly the basics of wiring electrical components in parallel versus series. We then dive into how to write the full code to read from the pushbutton and control the states of the three LED lights.

The pushbutton serves as our input and we want the Green LED light to be on while it isn't pressed. Then when the light gets pressed we want the Red LEDs to flicker between the two and the green light to go off!

We then show how to assemble every electrical components to fully build the physical project. We cover how to use the LEDs, resistors, pushbutton, and input and output wires with your breadboard! In this video we focus on digital inputs and digital outputs, but we'll be taking a look at analog inputs and outputs in the upcoming videos!

Be sure to leave a comment if you have any questions or want to see more of something specific on the channel in the future! Don't forget to leave a like and subscribe and maybe even ring the bell if you want, or don't, I'm not a cop.

Timestamps:
00:00 Intro and Background
01:20 Quick Science-y Lesson Thing: Parallel and Series Circuits
03:16 Writing the Code for Arduino Spaceship Interface
07:12 Building the Physical Circuit for the Project
08:35 Showcase, Project Completed and Outro

Timestamps