element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum LED Button push light up
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 38 replies
  • Subscribers 389 subscribers
  • Views 25980 views
  • Users 0 members are here
  • sequence
  • led
  • button
Related

LED Button push light up

Josephmbrandtii
Josephmbrandtii over 3 years ago

Attempting to make a Cornhole score board with 21 lights that light up at each button push.  At the end of the chain i want it to shut off the lights so there is none.  I am very new to this and have only gotten to the research part.  Any help i can get will be amazing.  Thank you.

  • Sign in to reply
  • Cancel

Top Replies

  • beacon_dave
    beacon_dave over 3 years ago +7
    Is the button to be controlled by a person or is the button controlled automatically by the cornsack/beanbag passing through the hole in the board ? What sort of lights are you planning on using ? Individual…
  • javagoza
    javagoza over 3 years ago +5
    Maybe you can use addressable LEDs https://www.makerguides.com/how-to-control-ws2812b-individually-addressable-leds-using-arduino/
  • geralds
    geralds over 3 years ago in reply to Josephmbrandtii +5
    Hi, here a suggestion: As I saw you have drawn it from the example from the datasheet. Now this is the complete circuit including the bypass capacitors and one of a possible method to make the…
Parents
  • beacon_dave
    0 beacon_dave over 3 years ago

    Is the button to be controlled by a person or is the button controlled automatically by the cornsack/beanbag passing through the hole in the board ?

    What sort of lights are you planning on using ? Individual LED's, LED pixel strip, or large light bulbs ? 

    These three Arduino examples may help you get started:

    Learn how to wire and program a pushbutton to control an LED:
    https://docs.arduino.cc/built-in-examples/digital/Button

    Debounce on a Pushbutton - Read a pushbutton, filtering noise:
    https://docs.arduino.cc/built-in-examples/digital/Debounce

    Learn how to make an LED bar graph - a series of LEDs in a line:
    https://docs.arduino.cc/built-in-examples/display/BarGraph

    The number of lights may influence your choice of Arduino as if you are planning on using simple GPIO, then you will need a board with enough digital IO pins for the total number of lights and button(s).

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Josephmbrandtii
    0 Josephmbrandtii over 3 years ago in reply to beacon_dave

    lust little LED bulbs is all.  So i can control it with a battery pack.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 3 years ago in reply to Josephmbrandtii

    Remember that each little LED consumes a small amount of power, so when you multiply that small amount by 42 in total it starts to add up. Also you need to be mindful that you don't overload the microcontroller pins or its power supply when driving lots of LEDs at the same time.

    Before you know it you will be building button walls like these: Slight smile

    https://www.youtube.com/watch?v=ypBI0wJYfcQ

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Josephmbrandtii
    0 Josephmbrandtii over 3 years ago in reply to beacon_dave

    I only want one bulb lot on each side at a time. Just next to the score it's showing 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Josephmbrandtii
    0 Josephmbrandtii over 3 years ago in reply to beacon_dave

    I only want one bulb lot on each side at a time. Just next to the score it's showing 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • beacon_dave
    0 beacon_dave over 3 years ago in reply to Josephmbrandtii

    In that case you wouldn't necessarily need an Arduino. You could use a chase light type circuit.

    /challenges-projects/element14-presents/thelearningcircuit/w/documents/4928/the-learning-circuit-74-how-to-make-chase-lights-with-a-decade-counter

    reconfigure the 555 timer to get a debounce for your button presses and daisy chain two more decade counters to drive more LEDs.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 3 years ago in reply to Josephmbrandtii

    Depending on the requirements, another alternative to consider might be to drive a pair of 7-segment displays to give a numerical readout display.

    There are a few designs floating around for creating large displays for sports timers etc.

     /challenges-projects/element14-presents/project-videos/w/documents/5196/episode-482-gigantic-3d-printed-7-segment-display-clock

    https://learn.adafruit.com/ninja-timer-giant-7-segment-display

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube