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.
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:
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!
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.