LED Matrix And A Phototransistor Make A Reverse Camera

A digital camera has an array of sensors that captures light reflected or transmitted onto it. This build is something closer to a reverse camera – a single sensor that makes images on a matrix of LEDs. And we think it’s pretty neat.

We have to admit to being a little confused by [marciot]’s LED matrix scanner when we first stumbled upon it. From the video below we thought that the LEDs in the matrix were being used both to detect incident light and as a display. We’ve seen LEDs used as photodiodes before, so such a contraption could work, but that’s not what’s going on here. A phototransistor is wired to an Arduino Uno and positioned above a 32×32 RGB LED matrix. A scanning routine rasters over the LEDs in the matrix while the sensor watches, and then the program turns on the LEDs that the sensor saw during the scan. Positioned far above the matrix, a large disc of light results, making it look like the phototransistor is beaming light down onto the matrix. The effect is reinforced by placing something between the sensor and the matrix, which casts a virtual shadow. Used close to the LEDs the sensor acts more like a light pen.

It’s a cool effect and it looks like a fun project to throw together. Refresh time could perhaps be a bit snappier, though; maybe an ESP32 could help with that.

Continue reading “LED Matrix And A Phototransistor Make A Reverse Camera”

Laser Harp Sounds Real Thanks To Karplus-Strong Wave Equation

The harp is an ancient instrument, but in its current form, it seems so unwieldy that it’s a wonder that anyone ever learns to play it. It’s one thing to tote a rented trumpet or clarinet home from school to practice, but a concert harp is a real pain to transport safely. The image below is unrelated to the laser harp project, but proves that portable harping is begging for some good hacks.

Concert grand harps are so big there’s special equipment to move them around. This thing’s called the HarpCaddy

Enter this laser harp, another semester project from [Bruce Land]’s microcontroller course at Cornell. By replacing strings with lasers aimed at phototransistors, [Glenna] and [Alex] were able to create a more manageable instrument that can be played in a similar manner. The “strings” are “plucked” with the fingers, which blocks the laser light and creates the notes.

But these aren’t just any old microcontroller-generated sounds. Rather than simply generating a tone or controlling a synthesizer, the PIC32 uses the Karplus-Strong algorithm to model the vibration of a plucked string. The result is very realistic, with all the harmonics you’d expect to hear from a plucked string. [Alex] does a decent job putting the harp through its paces in the video below, and the write-up is top notch too.

Unique musical instruments like laser harps are far from unknown around these parts. We’ve seen a few that look something like a traditional harp and one that needs laser goggle to play safely, but this one actually looks and sounds like the real thing. Continue reading “Laser Harp Sounds Real Thanks To Karplus-Strong Wave Equation”

DIY Puff-Suck Interface Aims For Faster Text Input

Puff and Suck (or Sip and Puff) systems allow people with little to no arm mobility to more easily interact with computers by using a straw-like unit as an input device. [Ana] tells us that the usual way these devices are used to input text involves a screen-based keyboard; a cursor is moved to a letter using some method (joystick, mouse emulator, buttons, or eye tracking) and that letter is selected with a sip or puff into a tube.

[Ana] saw such systems as effective and intuitive to use, but also limited in speed because there’s only so fast that one can select letters one at a time. That led to trying a new method; one that requires a bit more work on the user’s part, but the reward is faster text entry. The Puff-Suck Interface for Fast Text Input turns a hollow plastic disk and a rubber diaphragm into bipolar pressure switch, able to detect three states: suck, puff, and idle. The unit works by having an IR emitter and receiver pair on each side of a diaphragm (one half of which is shown in the image above). When air is blown into or sucked out of the unit, the diaphragm moves and physically blocks one or the other emitter-receiver pair. The resulting signals are interpreted by an attached Arduino.

How does this enable faster text input? By throwing out the usual “screen keyboard” interface and using Morse code, with puffs as dots and sucks as dashes. The project then acts as a kind of Morse code keyboard. It does require skill on the user’s part, but the reward is much faster text entry. The idea got selected as a finalist in the Human-Computer Interface Challenge portion of the 2018 Hackaday Prize!

Morse code may seem like a strange throwback to some, but not only does the bipolar nature of [Ana]’s puff-suck switch closely resemble that of Morse code input paddles, it’s also easy to learn. Morse code is far from dead; we have pages of projects and news showing its involvement in everything from whimsical projects to solving serious communication needs.

Is It On Yet? Sensing The World Around Us, Starting With Light

Arduino 101 is getting an LED to flash. From there you have a world of options for control, from MOSFETs to relays, solenoids and motors, all kinds of outputs. Here, we’re going to take a quick look at some inputs. While working on a recent project, I realized the variety of options in sensing something as simple as whether a light is on or off. This is a fundamental task for any system that reacts to the world; maybe a sensor that detects when the washer has finished and sends a text message, or an automated chicken coop that opens and closes with the sun, or a beam break that notifies when a sister has entered your sacred space. These are some of the tools you might use to sense light around you.

Continue reading “Is It On Yet? Sensing The World Around Us, Starting With Light”

Awesome Illuminated Arcade Spinner

[Tinker_on_Steroids] made some awesome looking spinners that not only light up when spun but are a really professional looking build on their own. Before we’d watched his assembly video we were sure he’d just added on to something he’d bought, but it turned out it’s all custom designed and made.

In case you’ve never played the old arcade games, a spinner is an input device for games such as Tempest or Breakout where you rotate a knob in either direction to tell the game which way and how fast to move something. In Tempest you rotate something around the middle of the screen whereas in Breakout you move a paddle back and forth across the bottom of the playing field.

He even detects rotation with a home-made quadrature encoder. For each spinner, he uses two ITR9608 (PDF) optical switches, or opto-interrupters. Each one is U-shaped with an LED in one leg of the U facing a phototransistor in the other leg. When something passes between the two legs, the light is temporarily blocked and the phototransistor detects it i.e. the switch turns off. When the thing moves away, the light is unblocked and it turns on again. The direction of movement is done by having the thing pass between two ITR9608’s, one after the other. The “things” that pass between are the teeth of a 3D printed encoder wheel. Continue reading “Awesome Illuminated Arcade Spinner”

RC Drag Racing Christmas Tree And Speed Trap

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”

Hackaday Prize Entry: Germanium Vision

The first digital cameras didn’t come out of a Kodak laboratory or from deep inside the R&D department of the CIA or National Reconnaissance Office. The digital camera first appeared in the pages of Popular Electronics in 1975, using a decapsulated DRAM module to create fuzzy grayscale images on an oscilloscope. For his Hackaday Prize project, [Alexander] is recreating this digital camera not with an easy to use decapsulated DRAM, but with individual germanium transistors.

Phototransistors are only normal transistors with a window to the semiconductor, and after finding an obscene number of old, Soviet metal can transistors, [Alex] had either a phototransistor or a terrible solar cell in a miniaturized package.

The ultimate goal of this project is to create a low resolution camera out of a matrix of these germanium transistors. [Alex] can already detect light with these transistors by watching a multimeter, and the final goal – generating an analog NTSC or PAL video signal – will “just” require a single circuit duplicated hundreds of times.

Digital cameras, even the earliest ones built out of DRAM chips, have relatively small sensors. A discrete image sensor, like the one [Alex] is building for his Hackaday Prize entry, demands a few very interesting engineering challenges. Obviously there must be some sort of lens for this image sensor, so if anyone has a large Fresnel sitting around, you might want to drop [Alex] a line.

The HackadayPrize2016 is Sponsored by: