Pulling Music Out Of Thin Air With A Raspberry Pi

Pianos are great instruments, but being rather heavy and requiring a fair amount of space they are certainly not known for their convenience. Sure, there are more portable varieties available, but they rarely resemble the elegance and classiness of a grand piano. One option is of course to build a downscaled version yourself — and since you’re already customizing the instrument, why stop at the way you play it. [2fishy] didn’t stop there either and ended up with a wooden, space friendly, light controlled piano housing a Raspberry Pi.

Inspired by the concept of a laser harp, [2fishy] followed the same principle but chose a simpler and safer alternative by using LEDs instead. For each playable tone, a LED is mounted opposite a light dependent resistor, creating an array of switches that is then connected to the Raspberry Pi’s GPIO pins. A Python script is handling the rest, polling the GPIO states and — with a little help from pygame, triggering MIDI playback whenever the light stream is interrupted.

There are enough LED/LDR pairs to play one full octave and have some additional control inputs for menu and octave shifting. This concept will naturally require some adjustments to your playing — you can get an idea of it in the demonstration video after the break. And if this design is still not the right size for you, or if you prefer to play in total darkness, this similar MIDI instrument using ultrasonic distance sensors could be of interest.

Continue reading “Pulling Music Out Of Thin Air With A Raspberry Pi”

Learn About Waveforms Interactively

We’ll be honest: If you are a regular Hackaday reader, you probably won’t learn much new information about waveforms from this website. However, the presentation is a great example of using React on a webpage and — who knows — you might just pick up something interesting. At the very least, it’ll be a great resource the next time you try to help someone starting out.

The animated waveform is cool enough. It is also interesting that it changes based on where you are in the text. The really interesting part though is that you can press the M key to unmute your audio and hear what the wave sounds like. You can also use adjustments to control the frequency and amplitude of the wave.

Continue reading “Learn About Waveforms Interactively”

Building An Arduino Smart IC Tester For $25

There’s no question that you can get a lot done with the classic multimeter; it’s arguably the single most capable tool on your bench. But the farther down the rabbit hole of hacking and reverse engineering you go, the more extravagant your testing and diagnostic gear tends to get. For some of us that’s just an annoying reality of the game. For others it’s an excuse to buy, and maybe even build, some highly specialized equipment. We’ll give you one guess as to which group we fall into here at Hackaday.

[Akshay Baweja] is clearly a member of the second group. He’s recently published a guide on building a very slick intelligent Integrated Circuit tester with a total cost of under $25 USD. Whether you’re trying to identify an unknown chip or verifying your latest parts off the slow-boat from China actually work before installing them in your finished product, this $25 tool could end up saving you a lot of time and aggravation.

[Akshay] walks readers through the components and assembly of his IC tester, which takes the form of a Shield for the Arduino Mega 2560. The custom PCB he designed and had manufactured holds the 20 Pin ZIF Socket as well as the 2.4 inch TFT touch screen. The screen features an integrated micro SD slot which is important as you need the SD card to hold the chip database.

With an IC to test inserted into the ZIF socket, the user can have the tester attempt to automatically ID the chip or can manually enter in a part number to lookup. The source code for the Arduino as well as the chip ID database is up on GitHub for anyone looking to add some more hardware to the device’s testing repertoire.

The importance of good test equipment simply cannot be overstated. Between highly specialized gear like this IC tester to classic instruments such as the oscilloscope, your bench is going to be full of weird and wonderful pieces of equipment before too long.

Continue reading “Building An Arduino Smart IC Tester For $25”

Student 3D Prints Eyes

[Ondřej Vocílka] is a student at the Brno University of Technology in the Czech Republic.  In addition, the 23-year-old lost his vision in his left eye. While attending a lecture on 3D printing, he wondered if he could 3D print an ophthalmic prosthesis — an artificial eye. Turns out, he could. If you don’t speak Czech, you’ll need to call on a translation service like we did.

Unlike conventional glass or plastic eyes, it is trivial to change parameters like color when 3D printing the prosthetic. This is especially important with the iris and the finished product takes about 90 minutes to print. There is additional time required to coat the product with an acrylic layer to mimic the gloss of a natural eye.

Continue reading “Student 3D Prints Eyes”

Printed Motorcycle Choke Lever Goes The Distance

We all dread the day that our favorite piece of hardware becomes so old that spare parts are no longer available for it, something about facing that mechanical mortality sends a little shiver up the hacker’s spine. But on the other hand, the day you can’t get replacement hardware is also the same day you have a valid excuse to make your own parts.

3D rendering above the 2D scan

That’s the situation [Jonathan] found himself in when the choke lever for his Suzuki motorcycle broke. New parts aren’t made for his bike anymore, which gave him the opportunity to fire up Fusion 360 and see if he couldn’t design a replacement using a 2D scan of what was left of the original part.

[Jonathan] put the original part on his flatbed scanner as well one of his credit cards to use for a reference point to scale the image when he imported it into Fusion 360. Using a 2D scanner to get a jump-start on your 3D model is a neat trick when working on replacement parts, and one we don’t see as much as you might think. A proper 3D scanner is cool and all, but certainly not required when replicating hardware like this.

The choke lever is a rather complex shape, one of those geometries that doesn’t really have a good printing orientation because there are overhangs all over the place. That combined with the fact that [Jonathan] printed at .3mm layer height for speed gives the final part an admittedly rough look, but it works. The part was supposed to be a prototype before he reprinted it at higher resolution and potentially with a stronger material like PETG, but after two years the prototype is still installed and working fine. This isn’t the first time we’ve seen a “temporary” 3D printed part become a long-term solution.


This is an entry in Hackaday’s

Repairs You Can Print contest

The twenty best projects will receive $100 in Tindie credit, and for the best projects by a Student or Organization, we’ve got two brand-new Prusa i3 MK3 printers. With a printer like that, you’ll be breaking stuff around the house just to have an excuse to make replacement parts.

 

The UA723 As A Switch Mode Regulator

If you are an electronic engineer or received an education in electronics that went beyond the very basics, there is a good chance that you will be familiar with the Fairchild μA723. This chip designed by the legendary Bob Widlar and released in 1967 is a kit-of-parts for building all sorts of voltage regulators. Aside from being a very useful device, it may owe some of its long life to appearing as a teaching example in Paul Horowitz and Winfield Hill’s seminal text, The Art Of Electronics. It’s a favourite chip of mine, and I have written about it extensively both on these pages and elsewhere.

The Fairchild switching regulator circuit. From the μA723 data sheet in their 1973 linear IC databook, page 194 onwards.
The Fairchild switching regulator circuit. From the μA723 data sheet in their 1973 linear IC databook, page 194 onwards.

For all my experimenting with a μA723 over the decades there is one intriguing circuit on its data sheet that I have never had the opportunity to build. Figure 9 on the original Fairchild data sheet is a switching regulator, a buck converter using a pair of PNP transistors along with the diode and inductor you would expect. Its performance will almost certainly be eclipsed by a multitude of more recent dedicated converter chips, but it remains the one μA723 circuit I have never built. Clearly something must be done to rectify this situation.

Continue reading “The UA723 As A Switch Mode Regulator”

Laser Galvo Control Via Microcontroller’s DAC

Mirror galvanometers (‘galvos’ for short) are the worky bits in a laser projector; they are capable of twisting a mirror extremely quickly and accurately. With two of them, a laser beam may be steered in X and Y to form patterns. [bdring] had purchased some laser galvos and decided to roll his own control system with the goal of driving the galvos with the DAC (digital to analog) output of a microcontroller. After that, all that was needed to make it draw some shapes was a laser and a 3D printed fixture to hold everything in the right alignment.

The galvos came with drivers to take care of the low-level interfacing, and [bdring]’s job was to make an interface to translate the 0 V – 5 V output range of his microcontroller’s DAC into the 10 V differential range the driver expects. He succeeded, and a brief video of some test patterns is embedded below.

Continue reading “Laser Galvo Control Via Microcontroller’s DAC”