Turning Horrible Browser Controls Into A Game

With all of the various keyboards, mouses (mice?), and other human interface devices (HID) available for our computers, there’s no possible way for developers to anticipate every type of input for every piece of software they build. Most of the time everything will work fine as long as some basic standards are kept, both from the hardware and software sides, but that’s not always the case. [Losso] noticed a truly terrible volume control method when visiting certain websites while also using a USB volume knob, and used this quirk to build a Breakout game with it.

It turns out his volume control knob would interact simultaneously with certain video players’ built-in volume control and the system volume for the operating system, leading to a number of undesirable conditions. However, the fact that this control is built in to certain browsers in the first place led to this being the foundation for the Breakout clone [Losso] is calling KNOB-OUT. Unlike volume buttons on something like a multimedia keyboard, the USB volume control knob can be configured much more easily to account for acceleration, making it more faithful to the original arcade version of the game. The game itself is coded in JavaScript with the source code available right in the browser.

If you’d like to play [Losso]’s game here’s a direct link to it although sometimes small web-based projects like these tend to experience some slowdown when they first get posted here. And, if you’re looking for some other games to play in a browser like it’s the mid-00s again, we’re fans of this project which brings the unofficial Zelda game Zelda Classic to our screens.

An OpenSCAD Mini-ITX Computer Case

We’re no strangers to 3D printed enclosures here at Hackaday. From the plethora of printed Raspberry Pi cases out there to custom enclosures for electronic projects, small plastic boxes turn out to be an excellent application for desktop 3D printing. But as printers get bigger and filament gets cheaper, those little boxes don’t always need to be so little. We aren’t talking about running off boxes for your sneaker collection either, if you’ve got the time and the print volume, you could whip up an enclosure for your PC.

[Nirav Patel] writes in to share his impressive 3D printed Mini-ITX computer case project, which would be a neat enough trick in its own right, but he took the concept one step farther and made it a parametric design in OpenSCAD. This allows the user to input their particular hardware configuration and receive STL files for a bespoke case. The list of supported hardware isn’t that long yet, but with the OpenSCAD code up on GitHub and released under the BSD license, hopefully the community can improve on that as time goes on.

To keep things simple (and strong), [Nirav] implemented what he refers to as a “bucket” design. The majority of the case is a single print, which does take a long time (just shy of 40 hours on his Prusa i3 MK3), but nearly eliminates any post-printing assembly. Only the optional feet and the lid need to be printed separately. Threaded inserts are used throughout the design for mounting hardware, so you don’t run the risk of blowing out the printed holes during hardware changes or upgrades.

A particularly neat feature, and a testament to the power of OpenSCAD, is the fact that the case’s internal volume is calculated and embossed into the side of the design. Does this have any practical purpose? Not exactly, but [Nirav] thought it would be appealing to the Mini-ITX case modding community which apparently measures their accomplishments in liters of volume.

We’ve seen a 3D printed computer case before, but it used acrylic sheets and couldn’t be made without a large format printer. There’s something to be said for a project that can be completed on the hacker community’s favorite printer.

The VU Meter And How It Got That Way

Given its appearance in one form or another in all but the cheapest audio gear produced in the last 70 years or so, you’d be forgiven for thinking that the ubiquitous VU meter is just one of those electronic add-ons that’s more a result of marketing than engineering. After all, the seemingly arbitrary scale and the vague “volume units” label makes it seem like something a manufacturer would slap on a device just to make it look good. And while that no doubt happens, it turns out that the concept of a VU meter and its execution has some serious engineering behind that belies the really simple question it seeks to answer: How loud is this audio signal?

Continue reading “The VU Meter And How It Got That Way”

Busted Wah Pedal Becomes New Synth Tool

Sometimes we get lucky and find a part we need for a project in our parts drawer. [Scissorfeind] got even luckier and found a part for his project lying around in the street. It was a Crybaby Wah pedal, a classic effects pedal typically used for a guitar. Since it was somewhat damaged, [Scissorfeind] got to work creating a control voltage (CV) and volume circuit for his Korg synthesizer.

For those who aren’t synthesizer aficionados, CV is a method of controlling the pitch of a tone. A higher voltage creates a higher tone and vice-versa. The wah pedal has a rocker on it that allows one’s foot to control the effect, but this particular one has been modified for CV instead of the wah-wah sound these pedals normally make. [Scissorfeind] built in a switch that will allow it to control volume as well, which makes this pedal quite unique in the effects world.

[Scissorfeind] built the custom circuit out of other parts he had lying around (presumably not in the street) and put the entire thing together on perfboard, then fit it all back together in the pedal. Now he has a great control voltage pedal for the vintage Korg synthesizer he recently restored! [Scissorfeind] knows his way around a synth, but if you’re looking to get started on a synthesizer project we have a great tutorial for you!

Automatic Volume Control Puts The Kibosh On Loud TV Commercials

automatic-tv-volume-control

If you’re having a hard time tuning out those loud commercials why not let your electronics project do it for you? This is an Arduino-based setup which adjusts television volume when it goes above a certain threshold. It uses a microphone, rather than a direct audio signal, so you can set it based on what is actually heard in the room.

The control scheme uses the IR LED and IR receiver seen on the breadboarded circuit above. The receiver lets you teach your volume up and down buttons from your remote control to the system. The one failing we see in the design is that the volume level is hard-coded, requiring you to flash new code to make adjustments (perhaps an enterprising reader could add a potentiometer for making easy adjustments?).

We can’t help but be reminded of the setup which reads the closed caption info to mute topics you’ve added to a blacklist.

Adding Remote Control To Klipsch Surround System

The speaker system [Zurcher] bought was made by Klipsch. It is a surround sound unit but it’s intended to be used with a computer so there’s no wireless remote for it. Instead, a wired unit sits on the desk and lets you select between the speakers or headphones, and has a volume adjustment knob. The thing is he uses them for his home theater system and had to add his own remote control hardware to adjust them from across the room.

He started with some web searches that helped a lot. It seems others have mapped out the hardware in the past and he was able to use that information to find the volume chip inside the controller. A bit of signal sniffing let him work out the control commands coming in over the i2c bus. This was the information he needed to build his own controller. He grabbed his Arduino board, and IR receiver to take commands from just about any remote, and a four-digit 7-segment display to provide settings feedback. You can seen him showing off the final build in the clip after the break.

Continue reading “Adding Remote Control To Klipsch Surround System”

Microcontroller Based Audio Volume Level Compressor

In an effort listen to his music on shuffle without the need to touch the volume knob [Mike] build his own automatic volume leveling hardware. He knows what you’re thinking right now: there’s software to do that for you. But building the feature in hardware is a great stepping off point for a project.

He started the prototype using LabVIEW along with a Mobile Studio development board and a Bus Pirate. This project will be a mix of digital and analog components and it’s a bit easier starting off the exploration with these tools rather than jumping right into the AVR code.

The circuit will sample the incoming audio, modify it accordingly, and output the result. The output side is where the Bus Pirate really shines. He’s using some MCP42010 digital potentiometer chips to make the necessary changes to the levels. They communicate via SPI and it’s nice to have the Bus Pirate’s terminal to issue commands without the need to reflash a microcontroller.

[Mike] made a video showing an audio waveform with and without the hardware leveling. Sound quality is still great, and each clip is played at a reasonably comfortable listening level. We’ve embedded that demonstration after the break.

Continue reading “Microcontroller Based Audio Volume Level Compressor”