It’s that time of the year again when you gotta start worrying if you’ve been naughty enough to not receive any gifts. Hopefully, Blinky Lights will appease St. Nick. Grab a strip of RGB LEDs, hook them up to an Arduino and a Power supply, slap on some code, and Bob’s your Uncle. But if you want to retain your hacker cred, you best do it the hard way. Which is what [roddersblog] did while building his Christmas Starburst LED Stars this year — and bonus points for being early to the party.
For starters, he got panels (as in PCB panels) of WS2812 boards from eBay. The advantage is it lets you choose your own pitch and strand length. The flip side is, you need to de-panel each board, mount it in a jig, and then solder three lengths of hook up wire to each LED. He planned for an eight sided star with ten LED’s each. And he built three of them. So the wiring was, substantial, to say the least. And he had to deal with silicone sealant that refused to cure and harden. But nothing that some grit and determination couldn’t fix.
For control, he choose the PIC16F1509 microcontroller. This family has a feature that PIC calls the “Configurable Logic Cell” and this Application Note describes how to use CLC to interface the PIC to a WS2811. He noticed processing delays due to C code overheads that caused him some grief. After some experimentation, he re-wrote the entire program in assembly which produced satisfactory results. You can check out his code on the GitHub repository.
Also well worth a look, he’s got a few tricks up his sleeve to improve the quality of his home-brew PCB’s. He’s built his own UV exposure unit with timer, which is an interesting project in itself. The layout is designed in Eagle, with a flood fill to minimize the amount of copper required to be etched away. He takes a laser print of the layout, applies vegetable oil to the paper to make it more translucent to UV, and doubles up the prints to get a nice contrast.
Once the sensitized board has been exposed in the UV unit, he uses a weak but fresh and warm solution of Sodium Hydroxide as a developer to remove the unexposed UV photo-resist. To etch the board, he uses standard Feric Chloride solution, which is kept warm using an aquarium heater, while an aquarium air-pump is used to agitate the solution. He also describes how he fabricates double sided boards using the same technique. The end result is quite satisfying – check out the video after the break.
Continue reading “Christmas Lights Done the Hard Way”
Imagine this, you have a friend who grew up in Shenzhen, China. The place from whence all your really cool electronics come these days. They speak Chinese in a way only someone born there can, and given that you know them through a shared interest in hardware hacking you can assume they know their way round those famous electronics marts of their home town.
Now, imagine that in a rash move, your friend has offered to pick up a few bits for you on their next trip home. A whole city-sized electronic candy store opens up in front of you, but what do you ask for them to seek out?
Before you continue, consider this. Why has Shenzhen become the powerhouse of electronic manufacturing (and everything else) that it is? Economists will give you pages of fascinating background, but if you want a simple answer it is that those electronics are produced for export, and that its citizens are only too happy to export them to you. Therefore if you want to get your hands on electronics from Shenzhen you do not need a friend who is a native of the city, all you need is a web browser and a PayPal account.
We have all become used to seeking out the cool stuff and eagerly waiting for a padded envelope from China Post a week or two later, so there are very few items that are worth putting a friend to the extra task of finding. At which point you realize that it is the candy store rather than the candy itself which is so alluring, and you ask your friend for a video walkthrough with commentary of their travels through the electronics marts. Oh, and maybe a Chinese Raspberry Pi with red solder resist, just for the collection.
If you had a friend about to board a plane to Shenzhen, what would you ask them to find for you that you can’t just buy for yourself online? Remember, nothing that’ll land them with awkward questions at either airport, nor anything that’ll land them with a hefty customs bill. That’s a very good way to end a friendship.
Huaqiangbei skyline image: Edward Rivens (PD) via Wikimedia Commons.
Okay, we haven’t even hit Halloween yet, but if you’re planning some kind of holiday project, now’s a good time to start ordering your parts, especially if you’re designing your own PCB. While there’s no PCB involved, [designer2k2] built a desktop “hollow” Christmas tree using some WS2812 RGB LEDs controlled by a microcontroller and powered by USB.
The board running [designer2k2]’s project is a Digispark, a USB powered board by Digistump which contains an ATtiny85. The LEDs, four different sized NeoPixel rings, plus a single pixel for the top, are connected together using some solid wire which makes for a very cool look. The code that runs on the ATtiny is the part that really makes this tree. The code cycles through colors and some light chaser effects, as well as a mode that shows a green tree with some white lights. The whole project is topped off by a routine that spells “XMAS” as you look at the tree from the top down.
We’ve seen some other Christmas tree hacks over the years controlled by various things, but this one is a fairly simple, cool design. [Designer2k2] also released the code for the tree and I’m sure a lot of us could come up with some more light designs.
Check out the video after the break:
Continue reading “Just In Time For Christmas! A DIY Desktop LED Tree”
In the drag racing world, a Christmas tree is the post at the start line that sequentially lights up a set of yellow lights followed shortly after by a green light to tell the drivers to go, the lights obviously giving it its seasonal name. Included at the base of the tree are lasers to detect the presence of the cars.
[Mike] not only made his own Christmas tree for his RC cars, but he even made an end-of-track circuit with LED displays telling the cars how long they took. Both start and finish hardware are controlled by Pololu Wixel boards which has TI CC2511F32 microcontrollers with built-in 2.4 GHz radios for wireless communications.
In addition to the LEDs, the Christmas tree has a laser beam using a 650nm red laser diode for each car at the start line that’s aimed at a TEPT5600 phototransistor. If a car crosses its beam before the green light then a red light signals the car’s disqualification.
The end-of-track circuit has 7-segment displays for each car’s time. [Mike] designed the system so that the Christmas tree’s microcontroller tells the end-of-track circuit’s microcontroller when to reset the times, start the times, and clear the times should there be a disqualification. The finish line controller has lasers and phototransistors just like the starting line to stop the timers.
Oh, and did we mention that he also included 1980’s car racing game sounds? To see and hear it all in action check out the video after the break. If the cars seem a little drunk it’s because pushing left or right on the controller turns the wheel’s fully left or right.
Continue reading “RC Drag Racing Christmas Tree and Speed Trap”
The yuletide fire is out, so we’re starting to receive this year’s Christmas hacks. [Chris] sent us his awesome video-mapped tree lighting hack. His project made clever use of a bunch of cool tools, so even if you’re not thinking forward to next December, it’s worth a look. Still images don’t do it justice; check out the video below the break.
The end result is an addressable string of WS2812B LEDs connected up to a Raspberry Pi Zero that can display a video image even though it’s wrapped around a roughly cone-shaped (pine) object. But this is actually more impressive than you’d think at first; how would you map a flat image to a string of LEDs wrapped around a tree?
[Chris]’s solution was to write a routine that lit up the LEDs in a unique pattern and then detected them using OpenCV and a webcam, making the mapping directly. He then samples images from a video at exactly the points where the pixels are located on the tree, and sends this data out to the LEDs.
The basic framework here should transform fairly easily into a generic image-mapping procedure with randomly located LEDs, so we think it’s a hack that’ll outlast the season. And because it runs on the Pi Zero, everything is in Python so it’d be a good project for beginners to replicate. However, the code section on the project page still lists it as coming soon. We hope so!
Continue reading “Must-Have Overkill Christmas Tree Lights”
[Jordan Wills] was tasked by his company, Silicon Labs, to build some Christmas Baubles to give away to co-workers. While the commissioned units were designed to be simple battery and LED affairs, he decided to make one of his own with bells and whistles. His Mario themed Christmas Ornament uses a Silicon Labs FM972 micro controller, capacitive sensing, PWM controlled 8 bit audio, and blinky lights.
The interesting part is some of the construction techniques that he used. The finger-joint style cube is built from circuit boards. Electrical connections between panels were routed using solder wicking copper braid. That’s a interesting trick which we’ll keep in mind along with some of our favorite creative structural uses of PCB.
The top of the cube has four LED’s which light up the Mario “Question Mark” symbols on the four sides of the cube while the base contains all of the electronics. The outside of the base piece was a large copper plane to act as the capacitive sensing element. This meant all electronics needed to be surface mounted with tracks laid out on one side – which posed some layout challenges. Adding the Capacitive sense function was a cinch thanks to support from the in-house design team. PWM output from the micro controller takes care of audio, and the output is routed through a buffer to boost the signal. A bandpass filter then cleans up the PWM output before feeding it to the speaker.
Continue reading “Christmas Bauble is neither spherical nor runs Arduino”
When [hkdcsf] was a teenager, he made a Christmas star with an up counter driving decoder logic and using transistors to light LEDs in festive patterns. He’s revisited this project using modern techniques including a microcontroller, a DC/DC converter, and constant current LED drivers.
The project uses two AA batteries, and that’s what makes the DC/DC converter necessary. Blue LEDs have a forward voltage of just over 3V, and the LED driver chip requires about 0.6V of overhead. Two fresh AAs will run a tad above 3V, but as they discharge, or if he’s using rechargeables, there just won’t be enough potential. To make sure the star works even with whatever LEDs are chosen, the converter takes the nominal 3V from the batteries and converts it to 3.71V.
Continue reading “Christmas Star uses Two AA Batteries”