Tetris may have first arrived in the West on machines such as the PC and Amiga, but its genesis at the hands of [Alexey Pajitnov] was on an Electronika 60, a Soviet clone of an early-1970s DEC PDP-11. Thus those tumbling blocks are hardly demanding in terms of processor power, and a game can be implemented on the humblest of hardware. Relatively modern silicon such as the Atmega328 in [c0pperdragon]’s Arduino Nano Tetris console should then have no problems, but to make that assumption is to miss the quality of the achievement.
In a typical home or desktop computer of the 1980s the processor would have been assisted by plenty of dedicated hardware, but since the Arduino has none of that the feat of creating the game with a 288p video signal having four gray scales and with four-channel music is an extremely impressive one. Beside the Nano there are only a few passive components, there are no CRT controllers or sound chips to be seen.
The entire device is packaged within a clone of a NES controller, with the passives on a piece of stripboard beside the Nano. There is a rudimentary resistor DAC to produce the grey scales, and the audio is not the direct PWM you might expect but a very simple DAC created by charging and discharging a capacitor at the video line frequency. The results can be seen and heard in the video below the break, and though we’re sure we’ve heard something like that tune before, it looks to be a very playable little game.
Continue reading “A Tetris To Be Proud Of, With Only A Nano”
Join us Wednesday at noon Pacific time for the AI at the Edge Hack Chat with John Welsh from NVIDIA!
Machine learning was once the business of big iron like IBM’s Watson or the nearly limitless computing power of the cloud. But the power in AI is moving away from data centers to the edge, where IoT devices are doing things once unheard of. Embedded systems capable of running modern AI workloads are now cheap enough for almost any hacker to afford, opening the door to applications and capabilities that were once only science fiction dreams.
John Welsh is a Developer Technology Engineer with NVIDIA, a leading company in the Edge computing space. He’ll be dropping by the Hack Chat to discuss NVIDIA’s Edge offerings, like the Jetson Nano we recently reviewed. Join us as we discuss NVIDIA’s complete Jetson embedded AI product line up, getting started with Edge AI, and where Edge AI is headed.
Our Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, May 1 at noon Pacific time. If time zones have got you down, we have a handy time zone converter.
Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io. You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.
We’ve all seen word clocks, and they’re great, but there are only so many ways to show the time in words. This word clock with 114 servos is the hard way to do it.
We’re not sure what [Moritz v. Sivers] was aiming for with this projection clock, but he certainly got it right. The basic idea is to project the characters needed to compose the time messages onto a translucent PVC screen, which could certainly have been accomplished with just a simple character mask and some LEDs. But for extra effect, [Moritz] mounted each character to a letterbox mounted over a Neopixel. The letterboxes are attached to a rack and pinion driven by a micro servo. The closer they get to the screen, the sharper the focus and the smaller the size of the character. Add in a little color changing and the time appears to float out from a jumbled, unfocused background. It’s quite eye-catching, and worth the 200+ hours of printing time it took to make all the parts. Complete build instructions are available, and a demo video is after the break.
We like pretty much any word clock – big, small, or even widescreen. This one really pushes all our buttons, though.
Continue reading “A Word Clock, The Hard Way”
Most photographs are made in the fraction of a second that the camera’s shutter is gathering reflected light from the scene. But there’s fun to be had by leaving the shutter open and directing light into the camera. Called light painting, it can be as simple as a camera on a tripod in a dark room and a penlight spelling out dirty words – not like we’d know – or as complicated as this CNC dot-matrix light printer.
The first idea that [Jeremy S. Cook] had for this build didn’t go so well. He fitted an LED to the gantry of his 3D-printer, intending to send it G-code representing bitmaps. The idea would be to set it up in a dark place, open the shutter, and let the machine build up the image by rastering through the X- and Y- axes while blinking the LED on and off at the right time. But since the gantry only moves in one axis, he abandoned the printer in favor of his CNC router. He printed a collar to fit the dust collector shroud we previously featured, added a battery-powered LED, and affixed a pushbutton switch to the let the Z-axis turn on the light. It took some tweaking such as adding a translucent PLA diffuser, to get decent images, but in the end it worked. We like the soft look of the floating voxels, which were really helped by the later addition of a Nano and a Neopixel. Check out the build in the video below.
One thing we’d suggest is better reflection control. [Jeremy] used a black platen as a background, but it wasn’t quite enough. We suggest going none more black next time.
Continue reading “Painting With Light And A Little G-Code”
When you build one-off projects for yourself, if it doesn’t work right the first time, it’s a nuisance. You go back to the bench, rework it, and move on with life. The equation changes considerably when you’re building things to sell to someone. Once you take money for your thing, you have to support it, and anything that goes out the door busted is money out of your pocket.
[Brian Lough] ran into this fact of life recently when the widget he sells on Tindie became popular enough that he landed an order for 100 units. Not willing to cut corners on testing but also not interested in spending days on the task, he built this automated test jig to handle the job for him. The widget in question is the “Power BLough-R”, a USB pass-through device that strips the 5-volt from the line while letting the data come through; it’s useful for preventing 3D-printers from being backfed when connected to Octoprint. The tester is very much a tactical build, with a Nano in a breakout board wired to a couple of USB connectors. When the widget is connected to the tester, a complete series of checks make sure that there are no wiring errors, and the results are logged to the serial console. [Brian] now has complete confidence that each unit works before going out the door, and what’s more, the tester shaved almost a minute off each manual test. Check in out in action in the video below.
We’ve featured quite a few of [Brian]’s projects before. You may remember his Tetris-themed YouTube subscriber counter, or his seven-segment shoelace display.
Continue reading “Custom Jig Makes Short Work Of Product Testing”
Our community never seems to tire of clock builds. There are seemingly infinite ways to mark the passage of time, and finding unique ways to display it is endlessly fascinating.
There’s something about this analog voltmeter clock that really seems to have caught on with the Redditors who commented on the r/DIY thread where we first spotted this. [ElegantAlchemist]’s design is very simple – just a trio of moving coil meters with nice industrial-looking bezels. The meters were wired for 300 volts AC, so the rectifier and smoothing cap were removed and the series resistance was substituted for one more appropriate for the 0-5VDC range needed for the project. New dial faces showing hours, minutes and seconds were whipped up in Corel Draw, and everything was put into a sturdy and colorful aluminum “stomp box” normally used for effects pedals. An Arduino Nano and an RTC drive the meters with a nice, bouncy action. Simple, cheap to build, and a real crowd pleaser.
The observant reader will note a similarity to a clock we covered a while back. That one chose 3D-printed cases for an airplane instrument cluster look. We like the spare case design in [ElegantAlchemist]’s build, but wonder how this clock would look in a fine wood case.
If you’ve ever disturbed your partner by getting up during the night and flicking on the bathroom light — or tripping over something and startling them awake completely in the ensuing catastrophe — [Kristjan Berce]’s idea to install motion-activated ground-effect lighting on his girlfriend’s bed might hold your attention.
[Berce] is using an Arduino Nano for the project’s brain, a PIR sensor from Adafruit, and an L7805 voltage regulator to handle load spikes. He doesn’t specify the type of LED strip he’s using, but Neopixels might be a safe bet here. Soldering issues over with, he mounted his protoboard in a 3D printed project box. Instead of reinventing the LED, [Berce] copied the code from Adafruit’s PIR tutorial before sticking the project to the side of the bed with adhesive strips so the on/off switch within handy reach to flick before meeting Mr. Sandman. Check out the build video after the break!
Continue reading “Ground-Effect Lighting For Your Bed.”