Trombone Controls Virtual Trombone

Guitar Hero was a cultural phenomenon a little over a decade ago, and showed that there was a real fun time to be had playing a virtual instrument on a controller. There are several other similar games available now for different instruments, including one called Trombone Champ that [Hung Truong] is a fan of which replaces the traditional guitar with a trombone. The sliding action of a trombone is significantly different than the frets of a guitar, making it a unique challenge in a video game. But an extra challenge is building a controller for the game that works by playing a real trombone.

Unlike a guitar which can easily map finger positions to buttons, mapping a more analog instrument like a trombone with its continuous slide to a digital space is a little harder. The approach here was to use an ESP32 and program it to send mouse inputs to a computer. First, an air pressure sensor was added to the bell of the trombone, so that when air is passing through it a mouse click is registered, which tells the computer that a note is currently being played. Second, a mouse position is generated by the position of the slide by using a time-of-flight sensor, also mounted to the bell. The ESP32 sends these mouse signals to the computer which are then used as inputs for the game.

While [Hung Truong] found that his sensors were not of the highest quality, he did find the latency of the control interface, and the control interface itself, to be relatively successful. With some tuning of the sensors he figures that this could be a much more effective device than the current prototype. If you’re wondering if the guitar hero equivalent exists or not, take a look at this classic hack from ’09.

Continue reading “Trombone Controls Virtual Trombone”

DIY Gaming Mouse Beats The Competition, Costs Less

We’ve seen plenty of custom keyboards here on Hackaday. Seriously, like more than we can count. But custom mice? Those are far more elusive. Though we wouldn’t be surprised to see that change should this excellent example from [Tyler Richard] catch on.

How the mouse sees the date on a US quarter

The goal was to build a customizable mouse that could match the performance of Logitech’s MX Master 3, but without the $100 USD price tag. In the end, [Tyler] says his mouse is around 10x as responsive thanks to a 1,000 Hz refresh rate, and the total cost is just a fraction of the retail price of the Logitech. Though as you might expect, there’s a catch or two.

For one thing, he says getting your hands on the PixArt PMW3389 mouse sensor in single quantities can be difficult. It seems like he was able to secure a sample because he’s a student, but you’ll have to figure out your own way to con secure one from the company. There’s also no friendly GUI to configure the mouse, and indeed, you’ll need to write some code should you want to modify any of its buttons. Oh, and despite the fact that the cheapo donor mouse you need to use for parts is wireless, the replacement guts you’ll be fitting it with currently only support wired operation.

Alright, we’ll admit it’s not perfect. But it’s still a huge step in the right direction if you care about being able to spin up your own input devices. With some refinement, and perhaps somebody willing to do bulk buy of the sensors, we could see this project becoming quite popular. In the meantime, you may have to settle for a macro stool.

Want To Use A Classic Mac Mouse On A Modern Computer? No? Here’s How To Do It Anyway

Need to hook a classic Mac mouse up to your modern machine with the help of a DIY USB adapter? [John Floren] has you covered. [John]’s solution uses a board with an ATmega32U4 microcontroller on it to connect to the Mac mouse on one end, and emulate a USB HID (Human Interface Device) on the other. A modern machine therefore recognizes it like it would any other USB input device.

Why is this necessary? The connector on the classic Mac mouse may look like a familiar DE-9 connector, but it is not an RS-232 device and wouldn’t work if it were plugged into a 9-pin serial port. The classic Mac mouse uses a different pinout, and doesn’t have much for brains on the inside. It relies on the host computer to read its encoders and button states directly.

This project is actually a bit of an update to a piece of earlier work [John] did in making a vintage Depraz mouse work with modern systems. He suspected that it wouldn’t take much to have it also work with a classic Mac mouse, and he was right — all it took was updating the pin connections and adding some pull-up resistors. The source code and design files are on GitHub.

Even if one does not particularly want to use a classic Mac mouse for daily work, there’s definitely value in this kind of thing for those who deal in vintage hardware: it allows one to function-check old peripherals without having to fire up a vintage machine.

Continue reading “Want To Use A Classic Mac Mouse On A Modern Computer? No? Here’s How To Do It Anyway”

Pi Pico Provides Practical PlayStation Pointing

It’s not immediately clear to us why one would need a mouse for the original PlayStation (though we’re sure there’s no shortage of folks eager to jump down into the comments and tell us), but if you ever desire adding improved pointing capabilities to the nearly three decade old console, this project from [Vojtěch Salajka] is certainly one to keep an eye on.

The aptly named “USB to PlayStation Mouse” project does exactly what it sounds like — adapts a generic USB mouse into an input device for Sony’s classic console. Putting one together requires a Raspberry Pi Pico, a 5 V DC-DC USB boost module with female USB-A connector, and a sacrificial controller or peripheral to provide the cable and proprietary connector.

With the hardware assembled per the simple wiring diagram, you just plug the Pico into your computer and copy over the firmware file. [Vojtěch] notes that you’ll need to unplug the mouse before attempting to upload the firmware, presumably because the data pins on the two USB ports have been tied together.

Don’t worry about having to find some obscure title to try out your new peripheral either, [Vojtěch] says the mouse works in the system’s main menu if you boot it without a disc in the drive. Now all you need is a few Raspberry Pi Pico PlayStation Memory Cards to complete the whole set.

A plastic steel drum toy

Odd Inputs And Peculiar Peripherals: Miniature Steel Drums Become Rotary Mouse Controllers

When [bornach] browsed through his office’s free-cycling box he found an old novelty toy that lets you play simple tunes on miniature steel drums. Such a thing is probably fun for about five minutes – if it’s working, which this one wasn’t. But instead of throwing it away, [bornach] spotted an opportunity in the capacitive touch pads on top of those little drums: they looked perfect to be modified into an unusual mouse cursor controller.

A steel drum toy being used to control a mouse cursorThe operation started with [bornach] ripping out the original PCB and replacing it with an ESP32 D1 Mini. That board has a handy stack of touch-sensitive pins which could interface directly with the drums’ touch pads. He then programmed the ESP32 to interpret the signals as mouse movements and button presses, and send the results to a computer through a BlueTooth connection.

Operating the mouse drums is so straightforward that they almost appear made for this purpose: you slide your finger in circles along the touch pads to move the cursor in the X or Y direction, and touch the center pad to click. The left drum moves the cursor horizontally while the right one moves it vertically, but there’s also a mode to use the right drum as a scroll wheel.

The rotary X/Y controls are reminiscent of an Etch-a-Sketch; while probably too clumsy for everyday use, they might come in handy in some circumstances where you need to make single-pixel-accurate motions, if only to click those miniscule “close” buttons on some online ads.

Amazingly, this isn’t the first Etch-a-Sketch style mouse we’ve featured: this cute little wooden device works in a similar way.

Continue reading “Odd Inputs And Peculiar Peripherals: Miniature Steel Drums Become Rotary Mouse Controllers”

Mouse Charging Mod Shows Even Simple Hacks Can End Up Complex

Hardware hacks have something in common with renovations that involve taking down a wall: until one actually gets started and opens things up, there’s no telling what kind of complications might be lurking. [voussoir] has a project that demonstrates this nicely: modifying a rechargeable mouse to use USB-C instead of micro-B turned out to have quite a few little glitches in the process. In fact, changing the actual receptacle was the simplest part!

On one hand, the mouse in question seems like a perfect candidate for easy modification. The enclosure isn’t too hard to open, there is ample space inside, and USB is used only for recharging the battery. So what was the problem? The trouble is something familiar to anyone who has worked on modifying an existing piece of hardware: existing parts are boundaries to hacking work, and some are less easily modified than others. Continue reading “Mouse Charging Mod Shows Even Simple Hacks Can End Up Complex”

Soap Mouse Is A Slippery Interface For Mid-Air Input

We all have those gnarly hacks that we still think about years after we first saw them. For serial tipster [Inne], one of those is [Patrick Baudisch]’s soap mouse, which is a DIY device for mousing in mid-air that uses components from off the shelf and around the house.

How does it work? The guts are encased in plastic shaped like a flattened pill, which slips into a fuzzy sock. By squeezing it a bit, the plastic pill rotates, spinning the outward-facing sensor round and round. Although we briefly reported on the soap mouse way back in 2006, we think it deserves to be in the spotlight today, especially since there’s a complete PDF guide to building one that’s optimized for gaming. If you want a regular pointing device instead, the conversion is described within.

[Patrick] uses a CompUSA (RIP) mouse in the guide, but any sufficiently slim and also short mouse should work as long as it has a decently long focal range, which is necessary for the sensor to see the hull. Plenty of travel mice out there should fit the bill.

The hull itself is made from two small (empty) bottles of hand sanitizer, chosen for their size, shape, and clarity of plastic. The outermost housing is a baby sock with a snap sewn on. [Patrick] says moving the sock against the plastic is difficult, and has tried various methods for lubrication, such as a bit of mineral oil inside some plastic bags.

Be sure to check out the video after the break, which does a great job of explaining everything from the various types of interaction to construction in 5½ minutes.

Since 2006, [Patrick] has held workshops where people have built their own soap mice. Have you built one? Let us know in the comments. And don’t forget about the Digi-Key-sponsored Odd Inputs and Peculiar Peripherals contest, which runs through July 4th. Declare your independence from regular keyboards and mice and win big!

Continue reading “Soap Mouse Is A Slippery Interface For Mid-Air Input”