Sort The Rainbow With An Algorithm Machine

When you’re trying to learn how an algorithm works, it’s not always easy to visualize what’s going on. Well, except for maybe binary sort, thanks to the phone book. Professor [thatguyer] is a computer science teacher who wanted a way to help his students visualize the process of algorithms and at the same time, get a grasp on their resource cost.

The Algorithm Machine can demonstrate 8 different search and sort algorithms using two 100-count strips of RGB LEDs — one to represent an array of integers, and one to create indicators pointing to the integers under scrutiny.

This functional beauty is totally interactive, too. Once the user chooses the values and the algorithm and starts the process, they can speed it up or slow it down with the rotary encoder, or pause to discuss and start again with that slick triangular play button. We particularly like the control button wiring harness [thatguyer] created to keep everything neat and hot-swappable.

This iteration uses 3D printed face plates to give the LEDs shape, but in an early version, [thatguyer] cut and sanded a ton of circles out of brass tubing, and folded as many triangles cut from disposable baking pans. The world could use more teachers as committed as [thatguyer]. This really seems like a handy teaching aid for these concepts, and we wish we’d had one in class to play around with. Here’s your algorithm for watching the demo: click break, press play, enjoy.

If you’re still confused, there are other ways to understand algorithms through visualization. Failing all that, just watch these Hungarian folk dancers work out various algo-rhythms.

Continue reading “Sort The Rainbow With An Algorithm Machine”

A Laser Drawing Machine For Flashes Of Creativity

Ahh, midterms. Some students blow off steam between study sessions by playing video games or just zoning out. While those kids were all distracted, [Justinwong777] and his buddy [Brett] found a bunch of scrap wood and built this laser drawing machine in their school’s makerspace. You operate it as you might an Etch-a-Sketch, except your drawings are as fleeting as sparkler art on the 4th of July, if they made Tron-colored sparklers.

Though you work it like an Etch-a-Sketch, the business end operates like a laser cutter. Inside that plywood enclosure is an Arduino Uno and a pair of motors. These motors turn a series of custom gears, which move a small mirror angled at 45° in the xy-plane.  There’s a 30mW laser mounted parallel with the base, pointed at the mirror, and it reflects the beam toward a canvas panel coated with phosphorescent paint. We dig the printed ergonomic case for the joystick, which gives control of both x and y. Put on some eye protection and check it out after the break.

If you want to draw with lasers, but aren’t much of an artist, do something unexpected: build a laser turret not to kill, but to draw the weather on the wall.

Continue reading “A Laser Drawing Machine For Flashes Of Creativity”

Music Player Erected From Floppy Disks

Holding on to a cache of old floppies because nostalgia? Us too, and this might be the coolest possible use for ’em. While it’s fun to imagine that he wrote a compression algorithm to fit a lossless copy of Coltrane’s Blue Train on a 1.44Mb coaster, or somehow rolled his own mini-disc, [Dino Fizzotti]’s Diskplayer uses floppies to serve up Spotify albums.

What’s actually on the floppy, then? The corresponding Spotify album URL. He just pops a disk in the drive, and the Pi does the rest — it detects the floppy event and executes a script that starts an open-source Spotify client. There’s no track skipping and no shuffle, just the entire album as intended, take it or eject it. If you think about it, he’s actually managed to improve on the vinyl experience, since all the songs are on one side. Demo is queued up after the break, and it includes [Dino]’s simple web interface for writing the Spoti-floppies.

When this project started seven months ago, [Dino] intended to bring his vinyl collection into the 21st century with RFID tags, but we’re glad that he decided to involve a fairly obsolete medium. Don’t have a drive or a heap of floppies gathering dust in a closet? Neither did [Dino]. But he found plenty of people selling pretty-colored floppies on ebay, and Amazon has tons of cheap external drives. We think the album art stickers are a nice touch, as is matching album cover color to floppy. He’s right to lock those bad boys up.

Got a bunch of floppy drives? Build a Floppotron and make your own music!

Continue reading “Music Player Erected From Floppy Disks”

Micro Macro Keyboard Makes A Major Difference

Media keyboards are nice in theory. But in practice they never have all the keys you want, and they almost always have a few you don’t. Sure, you could maybe reassign the ones you don’t use, but then the caps are wrong, and it’s a whole thing. So really, the only winning move is to make a micro macro keyboard as [littleSilvr] did to make all your shortcuts one-button accessible.

This lovely input has an Arduino Pro Micro for a brain, and Gateron browns for brawn. That knob there is a rotary encoder, not a potentiometer, because endless volume knob twiddling is just so much nicer. In case you’re wondering, those shortcuts open Fusion 360 and Cura, but we’re still not sure what the hyphen does.

Can we talk about those keycaps, though? [littleSilvr] used [Make Anything]’s process of of printing in multi-color with a single extruder. The technique involves building a vector for each color, each of which gets its own STL file. Then you add retraction as you go up through the layers, slow the print speed, change filament colors while the nozzle and bed are still warm, and voila, a vibrant canvas of colors.

If you don’t have a printer and you don’t mind a bit of compromise on the number of inputs, try basing your build on an existing input, like an old rotary telephone dialer.

Via r/duino

This Box Counts Your Blessings For You

It’s that time of year again when production in Shenzhen grinds to a halt. Lunar New Year has kicked off the annual month-long Spring Festival, and the whole country has taken time off to be with family and celebrate. One tradition of Spring Festival is that everyone gives each other red envelopes with various amounts of money in them called hongbao. The point of this ‘lucky money’ is to spread good fortune in the new year, and it’s easy to amass a whole pile of hongbao by the end of the festival.

[Makerming] made this lovely counting box for anyone looking to keep track of their hongbao in style. It probably goes without saying that this would make an awesome mailbox for Valentines (or anything else that fits in the slot), but there you go. The circuit is pretty simple thanks to a Grove connector shield meant for Arduinos. An IR break-beam module detects the incoming envelope, and the Uno increments the count on the display. The wiggly, servo-driven example hongbao on top are there to add to the fun.

We love the laser-cut decoration on the front, which is an homage to the intricate paper cut decorations. If you don’t like that one, [Makerming] included design files for several other options. Watch it wiggle after the break!

If you won’t be looking to collect valentines because you’ve already found that special someone, give them something that lasts longer than chocolate or roses.

Continue reading “This Box Counts Your Blessings For You”

Hoverboard Grows Up, Becomes Magnetic Drill Press

If you need to drill metal in tight places, the magnetic drill press, or mag drill is your BFF. The idea here is that a drill press with an electromagnetic base can go anywhere, and even drill horizontally if need be. If you don’t need to use one often, but want one anyway, why not build one out of e-waste?

[DIY KING 00] built this mag drill starting with the motor from a hoverboard. While these three-phase brushless motors have a lot of torque to offer reuse projects like this, they’re not designed to be particularly fast.

He was able to make it about three times faster by cutting the windings apart and reconnecting them in parallel instead of series. He designed a simple PCB to neatly tie all the connections back together and added an electronic speed control (ESC) from an R/C car.

Reluctant to give up the crown, he made his own three-coil electromagnetic base, using a drill to wind magnet wire around temporary chuck-able cores. The coils are then potted in epoxy to keep out dust and drilling debris. Everything runs from two large LiPo batteries, and he can get about 15 minutes of high-torque drilling done before they’re dead. Can you feel the electromagnet pulling you past the break to check out the build and demo video?

Depending on what you’re doing, you might get away with a magnetic vise instead.

Continue reading “Hoverboard Grows Up, Becomes Magnetic Drill Press”

Florence Nightingale: The Lady With The Data

When you think of Florence Nightingale, you probably imagine a nurse with a lamp, comforting soldiers. Indeed, Florence is considered the mother of modern nursing. But she also made serious contributions in statistical data analysis, and used the diagram named after her, the Nightingale rose diagram, to convince the British Parliament to enact sanitation reforms that saved hundreds of thousands, if not millions, of lives.

During the Crimean war, Florence worked around the clock as head nurse in an overcrowded field hospital. But she also found time to create graphs to illustrate the terrible conditions of that field hospital to members of British Parliament. The sanitation reforms she led greatly improved the life of the soldiers in battle, and widespread adoption of her hygienic practices vastly reduced mortality rates of humanity in general.

Continue reading “Florence Nightingale: The Lady With The Data”