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

    he button is controlled by the person pushing it.  ideally there will be 2 sides with 21 lights each and 2 buttons but if i can figure out how to do 1 then i will be able to do both sides.  just a super rookie.

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

    he button is controlled by the person pushing it.  ideally there will be 2 sides with 21 lights each and 2 buttons but if i can figure out how to do 1 then i will be able to do both sides.  just a super rookie.

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

    The Arduino Mega2560 might be worth considering, as it has 54 digital IO pins so 2 sides x21 per side for LEDs and enough spares for buttons.

    https://store.arduino.cc/collections/boards/products/arduino-mega-2560-rev3

    • Cancel
    • Vote Up +2 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