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
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 533 subscribers
  • Views 4576 views
  • Users 0 members are here
  • blink led
Related

Flashing Led's

commanderkelly
commanderkelly over 6 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

Top Replies

  • 14rhb
    14rhb over 6 years ago +12 suggested
    Hi Gary, Welcome to Element 14 Community. Although a long time ago, you have already completed the first step on the world of modern electronics - the famous 'blinky' experiment . I'm assuming you want…
  • beacon_dave
    beacon_dave over 6 years ago +8 suggested
    Probably can't get much simpler than a flashing LED: https://uk.farnell.com/c/optoelectronics-displays/led-products/flashing-blinking-leds Size may be an issue however. 3mm is the smallest listed.
  • fmilburn
    fmilburn over 6 years ago in reply to 14rhb +7 suggested
    Hi Rod and Gary, I am more of a digital guy but I saw this and had to build it. The circuit is close to the first link that Rod gave above. The voltage source is 4 AAA, R1 and R4 are 330 ohm, R2 and R3…
Parents
  • commanderkelly
    0 commanderkelly over 5 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
  • shabaz
    0 shabaz over 5 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
  • commanderkelly
    0 commanderkelly over 5 years ago in reply to shabaz

    Hello and thank you I just want them to flash at the smae rate so for now this will do, thanks for your help.

     

    Gary

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

    Hello and thank you I just want them to flash at the smae rate so for now this will do, thanks for your help.

     

    Gary

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • fmilburn
    0 fmilburn over 5 years ago in reply to commanderkelly

    Hi Gary,

     

    If you are OK with them flashing at the same rate and more or less synchronized then it is fairly straightforward  with an Arduino and will work just as Shabaz has described.  The circuit will be simple. There can be 10 output pins connected to the LEDs with current controlling resistors of say 330 ohms.  There could be 10 input pins for switching the behavior of the LEDs.  When a switch signals the start a timer can be used to determine how long the blinking occurs.  It is an interesting project.  Once you get things working as Shabaz describes then report back if it is not clear on how to proceed.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • fmilburn
    0 fmilburn over 5 years ago in reply to commanderkelly

    PS:  it should be much easier with an Arduino than all the mucking about we did above :-)

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • commanderkelly
    0 commanderkelly over 5 years ago in reply to fmilburn

    The Arduino UNO did it for me, just what I want. 1. tryed with 1 Led flashing2. added another led where both was flassing at same time. I want to Thank everyone who as helped me with this project really nice people, I am sure I will play with this to make them flash at different times.imageimage

    • 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 © 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