Years ago, several “short” talks at a hackerspace that went far beyond their allotted time inspired me to make this nice countdown timer.
I found these 4 inch 7 segment displays cheap on Ebay, made a little constant-current driver board, and put it all together into a simple project.
Here’s what the back side looks like, with buttons to control the countdown.
The green buttons starts & stops the countdown. The 2 blue buttons add or subtract 1 minute. It’s a very simple and minimal user interface!
Here’s a rough schematic for the whole project. Well, except I left off the 7805 regulator and maybe some other mundane stuff, but this is pretty close.
The main challenge was driving the LEDs with a constant current, because they need about 10.5 volts across the several series LEDs. I wanted to run from 12 volts, so there wasn’t much voltage left over for the normal current limiting resistors. Instead, I used this opamp circuit.
(edit: opps, I wrote LM358A on the schematic, but it’s actually a LM324A opamp. Really, they’re the same, just 2 vs 4 per package… so you could use either if you try to build this on your own board, but if you use the PCB files below, get a 14 pin LM324A opamps)
The project runs from a Teensy 2.0. The code is very simple, using the SPI and Bounce libraries for the hardware interfacing.
The 7 segment displays were something I’d purchased from an E-bay merchant about a year ago. I can’t find then anymore (at least not for low prices), which is sad because they were really cheap at the time.
I actually created this PCB only days after the last Dorkbot open mic meetup (where talks went way beyond allotted time). Here’s a photo of the board.
There’s actually quite a few parts on the board. Here are the placement diagrams:
If you find any of these awesome 4 inch displays, hopefully this little board will come in handy for driving them efficiently with only 12 volts.
This article was originally published on the DorkbotPDX website, on March 22, 2013. In late 2018, DorkbotPDX removed its blog section. An archive of the original article is still available on the Internet Archive. I am republishing this article here, in the hope it may continue to be found and used by anyone interested in these 7 segment displays.
Magic Wheelchair, a nonprofit organization that builds epic costumes for kids in wheelchairs, matched ATMakers to a kiddo for a wheelchair build. ATMakers joined forces with MakerFX to build a wheelchair costume in 3 short weeks – in time for the Assistive Tech Industry Association conference.
Alex, the young man receiving the wheelchair uses assistive technology devices to communicate, so as part of the build the team decided their Bumblebee needed to be interactive using a keyboard. The interactions they selected could be usable by Alex and worked into his physical therapy in the future.
The dashboard has a capacitive touch horn, two assistive technology buttons, a 320×240 LCD video screen, and 3 addressable LED rings. The dashboard sends commands to the costume using USB MIDI notes. This allows the costume to be controlled by either the dashboard or a keyboard. All the controls and LEDs are powered by a Teensy 3.6 with a Teensy Audio Shield. They used the FASTLED Library and the Non-blocking WS2812 LED Library to control the LEDs. The USB Host capabilities of the Teensy 3.6 were used for the MIDI connection.
Brian Taylor of Bolder Flight has continued his great series of tutorials with the latest covering SBUS, a relatively new protocol for servos.
SBUS has the advantage of allowing up to 16 servos to be be bussed of a single cable. The first tutorial in the series is an introduction to SBUS and finishes with commanding a few servos to move. The second tutorial in the series focuses on reading SBUS packets. The third tutorial in the SBUS series brings together the PWM and SBUS tutorials to create an SBUS to PWM converter.
The tutorials use Bolder Flight’s SBUS Backpack. This handy board has pinned out 8 SBUS outputs for easy integration with standard servo connectors, and it come ready to plug in your Teensy 3.2.
If you want to learn more about controlling servos using PWM and SBUS, it’s well worth checking out these tutorials.
This compact, low-cost, device features AES-256 bit encryption and stores data on an removable SD card for back up and safekeeping. Not only does it store passwords, but it has the ability to generate 16 character mixed case passwords as well.
This Instructibles page gives information on how to build your own.
Michael made this cool little MIDI Controller by first etching his own PCB that he designed in Illustrator using printer toner transfer and copper etching solution. There’s a bit of tricky soldering to the TouchSense inputs on the bottom of the Teensy, but the rest of the soldering is pretty simple.
Abelton Live was used for the sound libraries for this project, but it should also work with Garage Band or other digital audio workstation (DAW).
Thea Flowers built a really cool Sega-Genesis inspired synthesizer, the Genesynth.
Thea had been toying around with building a synthesizer for a while but was lacking inspiration, then she came up with the idea to build a synth using the same chip as the Sega Genesis. The Genesis was one of the last consoles to feature a synthesizer instead of samples and CD playback. This created the distinctive sound of the soundtracks to their iconic games.
The Genesynth uses the Yamaha YM2612 FM syntheses chip, the same chip used in the Sega Genesis. A Teensy 3.5 interfaces between the chip and a USB-MIDI connection. A high-quality audio amplifier was used. While it’s far better than the original Genesis amplifier, it still retains the same filter roll-off so you can hear the chip’s9-bit DAC’s distortion.
Thea says that the project took weeks of research, months of iteration, and nearly a year of programming. This was not only her first synthesizer build, but her also her first hardware build. It also gave her the opportunity to learn to make PCBs, which she did with style.
This Twitter Moment is a collection of her Tweets about the project. It includes some short audio clips so you can hear the Genesynth in action.
I worked on a tiny piece of the Embrace sculpture at Burning Man 2014.
Inside were 2 hearts, one made here in Portland by Lostmachine Andy & others at Flat Rat Studios. I made electronics to gradually fade 4 incandescent light bulbs in heart beating patterns.
These wonderful photos where taken by Sarah Taylor.
Inside the enormous sculpture were two hearts. The blue on was built by a group in Vancouver, B.C., Canada, and of course this one was built here in Portland, Oregon, USA.
Andy wanted this heart to have a very warm, gentle atmosphere, with warn incandescent bulbs slowly fading to create the heart beat. These effect turned out quite well. Andy really knows his stuff!
Here’s a great time-lapse video where you can see the slow, gradual incandescent light fading as a rapid heart beat. Skip forward to about 0:36 in this video.
The light fading was done using a Teensy-based 4-channel AC dimmer board, on this 4 by 3.5 inch circuit board.
Here’s a quick video, from the first test of the light controller.
Four BT139X Triacs that actually switch the AC voltage are mounted on the bottom side to a heatsink that’s meant to dissipate any heat to the metal case. Originally Andy believed the lights might be 500 watts each, so I was concerned about heat. In the end, four 60 watt bulbs were used and the Triacs did not get noticeably warm.
Here is a parts placement diagram for building the circuit board. Two boards were built, the one that ran the project and a spare… just in case!
The PCB cad files are attached below, if anyone wants to make more of these boards.
The AC switching circuitry was basically Fairchild Semiconductor’s recommended circuit for the MOC3023 optical isolator, which allows a Teensy 2.0 board to safely control the AC voltage. Four copies of this circuit were built on the board.
This circuit requires the Teensy 2.0 to know the AC voltage timing, so it can trigger the Triac at the right moment. Triggering early in the AC waveform causes the Triac to conduct near the full AC voltage for maximum brightness. Triggering later reduces the brightness.
To get the AC timing, I built this special power supply onto the board.
The Teensy 2.0 receives pulses on pins 5 and 6 as the AC waveform cycles positive and negative.
One caveat is this approach depends on the AC voltage being a sine wave. The AC voltage was one of the first questions I asked Andy, and he was told Burning Man would supply a true sine wave AC voltage. When he got out there, it turned out the power was actually a “modified sine wave”, which really isn’t anything like a sine wave. This circuit didn’t work well. Fortunately, they were able to run the lighting from a small generator that produced a true sine wave.
With the AC timing arriving on pins 5 and 6, and 4 pins able to trigger Triacs, and 3 pins connected to analog voltages for changing speed, brightness and pattern, the only other major piece of this technology puzzle is the software.
In this code, loop() tracks the changes in the waveform on pins 5 & 6, and it fires the Triacs at their programmed times. 120 times per second (each AC half cycle), the recompute_levels() function runs, which reads the analog controls and changes the Triac time targets, which loop() uses to actually control the voltage outputs.
This article was originally published on the DorkbotPDX website, on September 3, 2014. In late 2018, DorkbotPDX removed its blog section. An archive of the original article is still available on the Internet Archive. I am republishing this article here, in the hope it may continue to be found and used by anyone interested in the Embrace art installation or any other project needing sequenced AC light dimming effects.
These comments where written on the old site:
From Brandon:
Once we determined that the AC source was modified sine, I knew there wasn’t anything I could do to help the situation easily in the middle of the desert 🙂
As someone who looked over the board and what not, nice job! Worked really well and looked amazing in operation (on the right power source).
Rev two, perhaps rectified DC drive of the incandescent lights to avoid the modified sine issue? So many folks use those types of inverters to cut costs on big artwork solar installations.
Cheers and thanks for contributing!
From Anonymous:
The embrace structure was prettty cool, I got a chance to explore it at Burninman this year. Wish I got to see it burn down, the videos looked amazing. I assume you guys removed the heart materials before that happened.
Max “Litruv” Boonzaayer came up with a modular design where design pieces can be quickly combined to create MIDI controllers with any number of knobs & sliders.
The idea behind the project was to design modules to connect to a 10x10cm PCB.
Not your run-of-the-mill webcam, Mike’s photobooth uses a Canon DSLR camera and softbox lighting for superior quality photos. The booth does preview, customization, printing, and can automatically upload to the internet, but is easy for anyone to use with a giant arcade button.
As the official photographer for a good friend’s wedding, Mike decided he wanted an “open air booth” with built-in softbox lighting and could use a dSRL camera. It also needed to be easy to use as the official photog he didn’t want it to consume his time at the wedding.
The photo booth is built on a rolling tool cabinet making it easy to cart around. It runs the dSLR Remote Pro software on an old HP Pentium 4 2.8 Ghz computer. A Teensy is used to add arcade style buttons to simulate keyboard shortcuts in the software to allow the user to switch between photo/video modes, start the image/video capture, and enable/disable the camera’s live view.
Not only is Adam a bit obsessed with the trackball mouse, but he’s also a billiards fan. So when he saw a character using a 9-Ball mouse in the movie Oceans 8, he knew he had to have one.
He used an arcade trackball as a base and added some LED arcade buttons. A 3-D printing housing was create to custom fit his hand. A custom PCB made it easy to wire the buttons and trackball to the Teensy and also made it easy to mount the electronics.
The USB HID functionality of a Teensy along with the Encoder library made quick work of the code for the project.
Code for the project as well as the PCB designs and CAD files are available on GitHub.