My dad wanted me to do it so I did it.
EXPANDED TECHNICAL DETAILS
Conditional Input Logic
This fundamental project introduces the "If-Else" programming structure, allowing the user to control a physical output based on human interaction.
- Digital Read Architecture: The Arduino monitors a digital pin connected to a tactile button. The firmware uses an internal PULLUP resistor (
INPUT_PULLUP), eliminating the need for an external breadboard resistor and ensuring a "High" signal until the button is pressed.
- State Toggling: Features code to toggle the LED state. Instead of the light staying on only while the button is held, one press turns it ON, and the next press turns it OFF.
Educational Value
- Debounce Basics: Introduces the concept of "Switch Bounce" and how to use a simple
delay(50) to ensure a single button press doesn't trigger multiple LED toggles.
ข้อมูล Frontmatter ดั้งเดิม
title: "Simple LED Light with Button Press"
description: "When you press a button the LED light will blink as long as you pressed."
author: "invisiblebat537"
category: ""
tags:
- "lights"
- "tracking"
- "kids"
views: 2044
likes: 3
price: 1499
difficulty: "Easy"
components:
- "1x Breadboard (generic)"
- "4x Jumper wires (generic)"
- "1x Arduino USB Cable"
- "1x Arduino UNO"
- "1x Tactile Switch, Top Actuated"
- "1x Resistor 10k ohm"
- "1x LED (generic)"
tools: []
apps:
- "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "cecb96e4316160f9507fc1672c936233e5ac7c0bff94a3beceaaef366908e04a"
encryptedPayload: "U2FsdGVkX1+8B9YJYl8savgtVN+vHd//hZxekIyB1yr1zp/7ZeQTbKcdYBI64dNP56ALkNkio/J99Vz5tb7m19115MzZrPkqCMAcVkw8jr8="
seoDescription: "Simple Arduino project: Control an LED Light with a Button press. The LED will blink while the Button is held."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/simple-led-light-with-button-press-aeb8a5_cover.jpg"
lang: "en"