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
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Community Hub
Community Hub
Member's Forum Flashing Led's
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 53 replies
  • Answers 23 answers
  • Subscribers 620 subscribers
  • Views 6244 views
  • Users 0 members are here
  • blink led
Related

Flashing Led's

commanderkelly
commanderkelly over 7 years ago

Hello, I am new to this site and loving it. I did a bit of Electronics in 1995 where I made a flashing led circuit with 2 led's and it was cool. My other hobby is model trains and I would like to put 2 small led's in buffer stops and make them flash and run it off a DC train controller. Does anyone have a simple circuit that would do the job for this? I am basically a noob at electronics but I can follow a simple circuit.

 

Thank you.

 

Gary.

  • Sign in to reply
  • Cancel
Parents
  • commanderkelly
    0 commanderkelly over 6 years ago

    I have not been well for a bit but have not forgot about this project. I have now got one of them Ardunio Uno and was thinking of powering the flashing leds with it in the buffer stops. Now as I said before I am a noob at all this and I have no clue how to use an Arduino, Can anyone help me out here. I would like to power say like 10 flashing leds on differant buffer stops around the train track. Would this be possible on 1 Arduino and does anyone have a circuit that would help me do this.

     

    Thank you Gary.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • commanderkelly
    0 commanderkelly over 6 years ago

    I have not been well for a bit but have not forgot about this project. I have now got one of them Ardunio Uno and was thinking of powering the flashing leds with it in the buffer stops. Now as I said before I am a noob at all this and I have no clue how to use an Arduino, Can anyone help me out here. I would like to power say like 10 flashing leds on differant buffer stops around the train track. Would this be possible on 1 Arduino and does anyone have a circuit that would help me do this.

     

    Thank you Gary.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • 14rhb
    0 14rhb over 6 years ago in reply to commanderkelly

    Hi commanderkelly

     

    Sorry to hear you were unwell - hopefully you are OK now.

     

    Thank you for keeping us informed of your project progress. It is always nice to know someone's goals are progressing and it sounds like yours are with extra LEDs around the model. You've got some great replies already and I'm so pleased to see your Arduino progress. Personally I too like the Arduino as you can very easily and accurately adjust the timings. In time you may also like to add a switch input - perhaps a microswitch that the train brushes against or better still a non-contact sensor....we can discuss that when you are ready. You would then be able to modify your Arduino code to perform an action based on that switch or to undertake an action (the buffer LEDs toggling) for a certain amount of time before turning off again.

     

    I see you have suggestion of using the 555 timer IC - always a staple device for such projects in the past and I think most of us have a fond spot for it. However it cannot be configured quite as easily - great if you are happy with the exact blink times and the 50:50 split between two LED but less so when the timing division is asymmetrical or hard to set. Setting up switches would then be more complex as well....not  extremely, but just a bit awkward IMO.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • shabaz
    0 shabaz over 6 years ago in reply to commanderkelly

    Hi Gary,

     

    It can do that, there's an example for a single LED here:

    https://www.arduino.cc/en/tutorial/blink

     

    Once you've tried that, then you'll have confirmed the software and hardware is functioning, and then you can extend it to more LEDs to achieve your aim. Extending to flash two LEDs alternatively is easy by slightly modifying this code.

    However, it wasn't clear what behaviour you were looking for. If it is to flash all LEDs identically or flash all LEDs in alternate pairs, then the code doesn't need to change further, you can connect many LEDs to the same connections on the Arduino, although you'll need to use some small additional circuit to provide the current for all the LEDs. Is this what you're aiming to do?

    Otherwise, if your aim is to make them flash at different rates, or alternately, or under control of individual switches or sensors, then that will need more code changes.

    The easiest way is to start with the blink example mentioned, and then try a few more examples, to get familiar with the capabilities of the Arduino. Then you'll feel confident to want to do more complex behaviour for the LEDs (e.g. controlled by switches as mentioned).

     

    The tutorials here: https://www.arduino.cc/en/Tutorial/BuiltInExamples   will give you a feel for the capabilities of the Arduino (not all need to be tried, just a few that interest you).

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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 © 2026 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