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

Fireworks Simulation with Optical Fiber Cable (OFC) Day 3

colporteur
colporteur
22 Aug 2021

With an extra pair of hands working on the display panel  today's efforts were focused on electronics.

 

image

 

Simple setup. Wire RGBLED OFC to limiting resistors and then connect limiting resistors to controller GPIO's. Wire a button and wire an output to trigger the LED sequence strip.

 

image

 

In my last blog post I alluded to a solution for wiring the RGBLED OFC's. The four leads of the RGBLED connect perfectly in a 2.54mm Dupont Cable Jumper Wire Pin Header Housing female Connector. Four wires from a flat cable with the connector attached provides a flexible connection option to the limiting resistors. Mounted the limiting resistors on a slice of perfboard and solder the ends of the flat cable to the resistor provides a means for the RGBLED OFC to be tested.

 

image

A quick stop over to the guy that is assembling the display panel gets me thinking about a design decision to limit the RGBLED OFC GPIO's. A rummage under the bench to find a Geekcredit Mega micocontroller. Another off the shelf project. The mega has over 50 GPIO's, more than enough to support all the RGBLED's. Forget about it! You have already started laying out the python code to use a Pi.

 

image

 

I throw a few terminal blocks on the perfboard to accommodate the button and LED strip trigger and then switch gears to address the nagging controller Pi verses Arduino thoughts.

 

image

 

Truth be told coding is not a strong skill. I struggle every time I code. It seems I don't retain past knowledge and it feels like I'm starting over every time I sit to write. For that reason I have been leaning towards the Pi. I have some Python code I can reuse and maybe lighten the burden. Yeah, but it limits the colour range on some of the burst rings. The Pi has some additional overhead. An Arduino solution sure would make thing easier. The punch clock rings and its time to call it a day.

image

 

The display panel is being assembled. The connection assemble for the LED's and other resources is ready. Do a review on the next sitting and see what other electronics I need to consider.

  • Sign in to reply
  • colporteur
    colporteur over 4 years ago in reply to DAB

    Thanks for the comments.

     

    I'm focused on the code at the moment because it something I don't have confidence to control. I have bumped into a few other things in the project that have generated challenges and have required some problem solving thinking to resolve. I have a first draft of some Arduino code but it errors out. I patterned it after the working Python I wrote first, meaning the code has the same flow. I have a few ideas for fix I would like to try before using any life lines to resolve.

     

    I've struggle with code through my careers. Simply because it never became easy. I couldn't figure out how to get it to stick. I know what conditional statement is, how it works and its applications. Ask me to write such a statement in any of the ten programming languages I have fallen into, my response would be, "I know what to look for and I can find it, I just can't generate it." I coded a whole abuse management system deployed for identifying abuse within an ISP network. It detected, identified, mitigated and managed the abuse process. The code design was modular which made it flexible. People years later would ask me questions about the design and how easy it was to change. I invested a good year in getting that system into production. I couldn't write a line of Perl code today even to save my life. Man do I love Perl modules! I learned what I needed to know in Perl to complete the project but retained little.

     

    In the beginning weeks of Covid, as the lockdown became more and more, I took up spending sometime with online Python course. Our public library has a great resource of online courses. I had hoped to retain some of that knowledge. Again the concepts and application I have but writing it, that is when I put my resurrection skills to work and cull resources using the knowledge of what I need. I also try to understand what is good coding and not just here use this. I have had shite happen in my careers maintaining others poor code and try "to the best of my ability" to not to create those beast for others.

     

    I'm rather enjoying the project so far. I made a few mistakes that have made me laugh. Reading pinout from the back side of a board and wiring from the front side of the board. Augh shite thats the wrong pin! I made similar mistakes in my careers. This project doesn't have any unreasonable exceptions. It is not under funded with no clearly defined requirements. I'm not working to a schedule that is impossible to deliverable and I don't have a project manager asking every day for status update to the Gannt chart and the question are we done yet? I do hope to have it completed before the farmers come back from the fields.

     

    Thanks for the encouraging words.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Nice update.

     

    Don't fret too much on the coding.

    I used to be a very good SW developer before my pain and medications took it all away.

    Now I just sit back and marvel at what everyone else can do.

     

    DAB

    • 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