A Game That Does More With Less

[David Johnson-Davies] created a minimal Secret Maze Game using a single ATTiny85 and a few common components. This simple game uses four buttons, four LEDs, and a small speaker. The player moves in the four cardinal directions using buttons, and the LEDs show walls and corridors. If an LED is lit, it means the path in that direction is blocked by a wall, and attempting to move in that direction will make a beep. When the player reaches the exit, a short victory tune chirps from the speaker.

Sample maze. A 16×16 matrix is allocated for maze designs.

Since the ATTiny85 has only five I/O lines, [David] had to get a bit clever to read four buttons, display output on four LEDs, and drive a little speaker. The solution was to dedicate one pin to the speaker and the other four to charlieplexing, which is a method of driving more LEDs than you have pins. It takes advantage of the fact that most microcontroller pins can easily switch state between output high, output low, or low-impedance high-impedance input.

As for the buttons, [David] charlieplexed them as well. Instead of putting an LED in a charlieplexed “cell”, the cell contains a diode and an SPST switch in series with the diode. To read the state of the switch, one I/O line is first driven low and the other I/O line is made an input with a pullup. A closed switch reads low on the input, and an open switch reads high. With charlieplexing, four pins is sufficient for up to twelve LEDs (or buttons) in any combination, which is more than enough for the Secret Maze.

Charlieplexing is also what’s behind this 110 LED micro-marquee display, or this elegant 7-segment display concept that takes advantage of modern PCB manufacturing options.

Here’s Why Hoverboard Motors Might Belong In Robots

[madcowswe] starts by pointing out that the entire premise of ODrive (an open-source brushless motor driver board) is to make use of inexpensive brushless motors in industrial-type applications. This usually means using hobby electric aircraft motors, but robotic applications sometimes need more torque than those motors can provide. Adding a gearbox is one option, but there is another: so-called “hoverboard” motors are common and offer a frankly outstanding torque-to-price ratio.

A teardown showed that the necessary mechanical and electrical interfacing look to be worth a try, so prototyping has begun. These motors are really designed for spinning a tire on the ground instead of driving other loads, but [madcowswe] believes that by adding an encoder and the right fixtures, these motors could form the basis of an excellent robot arm. The ODrive project was a contender for the 2016 Hackaday Prize and we can’t wait to see where this ends up.

DIY Dungeon Crawler Game Plays On Single LED Strip

A delightful version of a clever one-dimensional game has been made by [Critters] which he calls TWANG! because the joystick is made from a spring doorstop with an accelerometer in the tip. The game itself is played out on an RGB LED strip. As a result, the game world, the player, goal, and enemies are all represented on a single line of LEDs.

How can a dungeon crawler game be represented in 1D, and how is this unusual game played? The goal is for the player (a green dot) to reach the goal (a blue dot) to advance to the next level. Making this more difficult are enemies (red dots) which move in different ways. The joystick is moved left or right to advance the player’s blue dot left or right, and the player can attack with a “twang” motion of the joystick, which eliminates nearby enemies. By playing with brightness and color, a surprising amount of gameplay can be jammed into a one-dimensional display!

Code for TWANG! is on github and models for 3D printing the physical pieces are on Thingiverse. The video (embedded below) focuses mainly on the development process, but does have the gameplay elements explained as well and demonstrates some slick animations and sharp feedback.

Continue reading “DIY Dungeon Crawler Game Plays On Single LED Strip”

The SD-11 Sphericular Display: Pixels That Aren’t Pixels

Ever heard of a sphericular display? [AnubisTTP] laid hands on a (damaged) Burroughs SD-11 Sphericular Display and tore down the unusual device to see what was inside. It’s a type of projection display with an array of bulbs at the back and a slab of plastic at the front, and the rest is empty space. The usual expected lenses and slides are missing… or are they? It turns out that the thin display surface at the front of the unit is packed with a two- dimensional 30 x 30 array of small lenses, a shadow mask, and what can be thought of as a high-density pixel mask. The SD-11 was cemented together and clearly not intended to be disassembled, but [AnubisTTP] managed to cut things carefully apart in order to show exactly how these fascinating devices solved the problem of displaying digits 0-9 (with optional decimal points) on the single small screen without separate digit masks and lenses to bend the light paths around.

The “pixel mask” of the SD-11

The face of the display can be thought of as a 30×30 array of pixels, with each of the microlenses in the lens array acting as one of these pixels. But these pixels are not individually addressable, they light up only in fixed patterns determined by the “pixel mask”. How exactly does this happen? With each microlens in the array showing a miniature of the bulb pattern at the rear of the display, a fixed image pattern can be shown at the front by putting a mask over each lens: if a certain bulb at the rear needs to result in a lit pixel at the front, that mask has a hole in that bulb’s location. If not, there is no hole and the light is blocked. Just as the compound lens is a two-dimensional array of microlenses, so is the light mask really a two-dimensional array of smaller masks: exactly one per microlens. In this way the “pixel mask” is how each bulb at the rear results in a fixed pattern (digits, in this case) projected at the front.

The Burroughs SD-11 Sphericular Display was very light, containing mostly empty space where other projection displays had lenses and light masks. It turns out that the SD-11 operates using the same principles as other projection displays, but by using a high-density light mask and a compound lens array it does so by an entirely different method. It’s a great peek into one of the different and fascinating ways problems got solved before modern display solutions became common.

Make A Better, Spring-Loaded SMT Tape Strip Holder

Every so often, a project is worth some extra work to see if the idea can go any further. [JohnSL] has been busy doing exactly that with his spring-loaded SMT tape holder project. Having done the original with 3D printing, he has been working on designing for injection molding. This isn’t a motorized feeder, it’s still a manual tool but it is an improvement over the usual workshop expedient method of just sticking segments of tape down to the desktop. Tape is fed into the holders from one end and spring tension holds the tape firm while a small slot allows the cover tape to be guided backward after peeling. As anyone who has used cut segments of tape to manually deal with SMT parts knows, small vibrations — like those that come from peeling off the clear cover — can cause the smaller components to jump around and out of their pockets, and any length of peeled cover gets awkward quickly.

The design allows for multiple holders to mount side-by-side.

In [JohnSL]’s design, all SMT tapes sit at an even height regardless of size or tape thickness. A central support pushes up from the bottom with tension coming from a spring pulling sideways; the central support is forced upward by cams and presses against the bottom surface of the tape. As a result, the SMT tape gets supported from below with even tension and the whole assembly maintains a narrow profile suitable for stacking multiple holders side by side. The CAD files are available online along with a McMaster-Carr part number for the specific spring he used.

After working out the kinks on 3D printed prototypes, [JohnSL] decided to see if it would be feasible to design an injection molded version and made a video outlining the process, embedded below.

Continue reading “Make A Better, Spring-Loaded SMT Tape Strip Holder”

Not So Simple LED Upgrade For Microscope

[Amen] obtained a microscope whose light source was an incandescent bulb, but the light from it seemed awfully dim even at its brightest setting. Rather than hunt down a replacement, he decided to replace the bulb with a 1W LED mounted on a metal cylinder. The retrofit was successful, but there were numerous constraints on his work that complicated things. The original bulb and the LED replacement differed not just in shape and size, but also in electrical requirements. The bulb was also part of an assembly that used a two-pronged plug off to the side for power. In the end, [Amen] used 3D printing, a bit of metal work, and a bridge rectifier on some stripboard to successfully replace his microscope’s incandescent bulb assembly with an LED. He even used a lathe to make connector pins that mated properly with the microscope’s proprietary power connector, so that the LED unit could be a drop-in module.

Working on existing equipment always puts constraints on one’s work, usually due to space limitations, but sometimes also proprietary signals. For example, a common issue when refitting a projector with an LED is to discover that the projector expects a stock bulb, and refuses to boot up without one. Happily, the microscope didn’t care much about the bulb itself, and with the LED positioned in roughly the same position as the original bulb’s filament [Amen] obtained smooth and even lighting across the field of view with no changes made to the microscope itself.

Easy Time-lapse Video Via Phone And Command Line

A good time-lapse video can be useful visual documentation, and since [Tommy]’s phone is the best camera he owns he created two simple shell scripts to grab time-lapse images and assemble them into a video. [Tommy]’s work is just the glue between two other things: an app that turns the phone into an IP camera with a web server on the local network, and the ability to grab a still image from that server on demand.

The app he uses for his iPhone normally serves video but has an undocumented feature that allows single frames to be downloaded by adding ‘/photo’ to the end of the URL, but the ability to get a still image is a common feature on IP camera apps for smartphones. His capture script (GitHub repository here) should therefore need only minor changes to work with just about any IP camera app.

Perching a phone over a workspace and using it to create a time-lapse with a couple of shell scripts is a great example of combining simple tools to get better functionality. It could be a good way to get additional use out of an older smartphone, too. Heck, even older dumbphones can still get some use out of them; Shmoocon 2017 brought us details on rolling your own 1G network.