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 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
Off the Shelf
  • Challenges & Projects
  • Project14
  • Off the Shelf
  • More
  • Cancel
Off the Shelf
Blog Fireworks Simulation with Optical Fiber Cable (OFC) Day 4
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Off the Shelf requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: colporteur
  • Date Created: 23 Aug 2021 11:14 PM Date Created
  • Views 1135 views
  • Likes 3 likes
  • Comments 2 comments
  • offtheshelfch
Related
Recommended

Fireworks Simulation with Optical Fiber Cable (OFC) Day 4

colporteur
colporteur
23 Aug 2021

Three days of rain during harvest season has given some farmers reason to return to the model railway layout. With the RGBLED OFC's constructed, I took someone up on the offer to build the display and knit the strands through the holes.

 

{gallery} My Gallery Title

 

start of display2.jpg: Keep the beer fridge stocked for the help that volunteered to build the display.image

 

start of display.jpg: drilling holes and knitting strands, life of the extra helpimage

 

start of display3.jpg: nothing but blue sky, with hole poking through.image

 

The display will have three fireworks burst circles. The bursts are number 1,2 & 3 from right to left. The bursts hole pattern templates or hole placement are shown. Each burst has three rings, each ring has holes to accommodate the strands from one RGBLED OFC with the exception of the outer ring having two RGBLED OFC's in parallel to provide coverage.  To the right of the picture you can see the start of RGBLED OFC's being knitted through holes in the display pane. The two LED strips in the center of the panel are the off the shelf sequential LED light strips that were kicking around the shop. When triggered they will create what is suppose to look like a fireworks launch.  Flipping the display board around you can see the LED light strip pattern holes poking through the blue sky background.

 

I confess the RGBLED OFC knitting is tedious work. First drill the holes according to the pattern and then individually push a OFC strand through the hole. With the aid of Elmers and heat shrink tubing a holding (yellow tube) can be seen attached to the panel for the RGBLED OFC to mount in. The heat shrink tubing secures the RGBLED OFC to the panel. The position of the holders is decided by the knitter as he completes a ring. I have been following the progress of the help and decided to make a beer run to keep the fridge stocked to show my appreciation. Model railroaders have all the patience in the world for this scenery stuff. I have watched them build fences that are meters long with one toothpick at a time.

 

I spent the evening of day 4 working on Python code for the fireworks pattern. After some code resurrection (reuse, recycle and pilferage) I have a working draft. The code consumes 27 GPIO's for all lights, inputs and outputs. I get a call from my knitter later in the evening. What is that "You want to add some additional lighting?" It appears word of the project is getting to other model railroader who are in the fields. Augh crap, I do have a task assigned for scope creep. The LED strip was the first addition, I added that. Burst 3 has three rings supported with 3 RGBLED OFC's and not four like the other two. The request is to create a falling light pattern from burst 3 using some additional RGBLED OFG's, to create more variety. Oh yeah, "Can you incorporate sound, that would be cool also." We would also like to make it portable, so it can be taken on the road for demonstration at train shows."

 

I'm licking my wounds after Python coding. To even consider the additional scope creep using the Pi as the controller is not an option. It doesn't have sufficient GPIO's. That would mean starting over with coding and using the Arduino. The Geekcreit Mega has over 50 GPIO's. I'm just not skilled with Arduino's programming language. None of the electronics constructed so far limits the change of controllers. I need a some time to review the requests and figure out if these latest changes can be accommodated. I should never have provided beer!

  • Sign in to reply
  • colporteur
    colporteur over 3 years ago

    Great suggestion. Addressable LED's would save on GPIO's for sure.

     

    The optic-fibre-cable strands are the off-the-shelf LED multiplier. Triggering the one RGB LED OFC produces light in 100 strands. Given time and resources there are lots of efficiencies that could be realized in such a project.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • robogary
    robogary over 3 years ago

    A couple ideas I hope may be helpful........

     

    1) You could consider using an I2C IO expander. https://www.sparkfun.com/products/13601 ,

    https://www.adafruit.com/product/4132?gclid=EAIaIQobChMI9oSZqP3J8gIVIAaICR09OAZAEAQYAiABEgKIqPD_BwE

    Ive never used one of these models, so dont have personal experience to share.

     

    2) IO savings can be done using WS8212  LEDs ( NEOPIXELS for AdaFruit ) addressable LEDs. https://learn.adafruit.com/adafruit-neopixel-uberguide

    My personal experience is Raspberry Pi cant handle NeoPixels very well unless dedicating your whole RPI to the task. Actually my last RPi project, I installed an Arduino Nano just to control a NeoPixel ring because the RPi IO was so distraught by the NeoPixels.

     

    Arduinos work really well with addressable LEDs, you just need a separate 5V power supply when using more than a few.

    The example code is already written, you just have to trim it up for your project.

     

    Like you stated in your notes, you could even put in an Arduino per burst.

    Arduino Nanos are really inexpensive (depending where you look), I often buy them by the half dozen or dozen.

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