Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: LED Sequence project

  1. #1
    Junior Member
    Join Date
    May 2018

    LED Sequence project


    I am embarking on a little project and am kind of fuzzy on the software side of things/ in over my head with this part, so I would appreciate any guidance from the pros here!

    I am trying to fire 12 LEDs in a sequence, and simultaneously fire a cameras shutter release each time one of these LEDs goes off. I want to do this with one push of a button. I will need to be able to control in the software the time in between each LED going off so I can use the fastest shutter speed possible.

    If anyone can refer me to similar projects with LEDs or any articles to help me get started I would really appreciate it!


  2. #2
    Senior Member pictographer's Avatar
    Join Date
    May 2013
    San Jose, CA
    Welcome, Eric!

    Here's a simple project that lights up some LEDs.

    Somethings to note: LEDs can easily draw more current than a Teensy can safely supply. It's up to you to make an appropriate circuit to drive the LEDs safely. If the LEDs are very small as in my case, the code only illuminates one LED at a time and there's a resistor in series with the LEDs. If the LEDs are more like a camera flash, you'll need something more powerful, e.g. separate power supply for the LEDs and an LED driver IC or some transistors capable of handling higher power, etc.

    Regarding timing, my project didn't need precision, so I just used simple blocking delays. If you need high speed and high precision, it's definitely possible, but before you go down that route, bear in mind that even little microcontrollers are very fast. You might not need to do anything special.

    You'll definitely need to debounce your button. There are some good libraries that can help you do this in software. See Bounce2, for example.

    Good luck and let us know how it goes, preferably with pictures!


  3. #3
    Junior Member
    Join Date
    May 2018
    Hi John,

    Thank you! I will definitely post my progress and any questions I have along the way


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts