element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Forum Mastermind game using LEDs
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 42 subscribers
  • Views 510 views
  • Users 0 members are here
  • arduino
Related

Mastermind game using LEDs

linuxgnuru
linuxgnuru over 9 years ago

I actually made this, however getting good quality LEDs for me is impossible, anyway back to the project.  Create a Mastermind game (the one where one person picks 5 colored pegs and the other player tries to guess) but the pegs in this game are actual LEDs.  I came up with the idea after learning about voltage drop of diodes/LEDs so I was able to know what color of LED was inserted in.  I'd be glad to share the code I've done, and I wish I had good LEDs that had non-variable voltage drops which is the only reason I haven't finished it.  Anyway, thought I'd send the project idea your way to see if you can solve what I could not.

  • Sign in to reply
  • Cancel

Top Replies

  • linuxgnuru
    linuxgnuru over 9 years ago in reply to jc2048 +1
    with the LEDs that I have (some cheap generic ones from Amazon) from experimenting I've found blue and white are pretty similar as are green and yellow but red sticks out like a sore thumb. I may make…
Parents
  • jc2048
    jc2048 over 9 years ago

    That's a nice idea. What are the LED colours you're working with? Red, green, blue, amber and white, maybe?

     

    One way to make things easier would be to add an extra diode in series with some of the LED colours. A small Schottky diode like a BAT42 would add about 0.3 or 0.4V at the current you'd drive an LED at. A 1N4148 adds about 0.7V. That way you could move the voltage drops apart and make them more straightforward to recognise.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jc2048
    jc2048 over 9 years ago

    That's a nice idea. What are the LED colours you're working with? Red, green, blue, amber and white, maybe?

     

    One way to make things easier would be to add an extra diode in series with some of the LED colours. A small Schottky diode like a BAT42 would add about 0.3 or 0.4V at the current you'd drive an LED at. A 1N4148 adds about 0.7V. That way you could move the voltage drops apart and make them more straightforward to recognise.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • linuxgnuru
    linuxgnuru over 9 years ago in reply to jc2048

    with the LEDs that I have (some cheap generic ones from Amazon) from experimenting I've found blue and white are pretty similar as are green and yellow but red sticks out like a sore thumb.  I may make a module using pins/headers that will include the LED and diodes and see where that gets me.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • 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