Counter-Strike Gets The RGB LED Treatment

Inspired by the over-the-top stage lighting and pyrotechnics used during e-sport events, [Hans Peter] set out to develop a scaled-down version (minus the flames) for his personal Counter-Strike: Global Offensive sessions. It might seem like pulling something like this off would involve hacking the game engine, but as it turns out, Valve was kind enough to implement a game state API that made it relatively easy.

According to the documentation, the CS:GO client can be configured to send out state information to a HTTP server at regular intervals. It even provided example code for implementing a simple state server in Node.js, which [Hans] adapted for this project by adding some conditional statements that analyze the status of the current game.

These functions fire off serial commands to the attached Arduino, which in turn controls the WS2812B LEDs. The Arduino code takes the information provided by the HTTP server and breaks that down into various lighting routines for different conditions such as wins and losses. But things really kick into gear when a bomb is active.

[Hans] wanted to synchronize the flashing LEDs with the beeping sound the bomb makes in the game, but the API doesn’t provide granular enough data. So he recorded the audio of the bomb arming sequence, used Audacity to precisely time the beeps, and implemented the sequence in his Arduino code. In the video after the break you can see that the synchronization isn’t perfect, but it’s certainly close enough to get the point across in the heat of battle.

With the special place that Counter-Strike occupies in the hearts of hackers and gamers alike, it’s little surprise people are still finding unique ways to experience the game.

Continue reading “Counter-Strike Gets The RGB LED Treatment”

Analyzing CNC Tool Chatter With Audacity

When you’re operating a machine that’s powerful enough to tear a solid metal block to shards, it pays to be attentive to details. The angular momentum of the spindle of a modern CNC machine can be trouble if it gets unleashed the wrong way, which is why generations of machinists have developed an ear for the telltale sign of impending doom: chatter.

To help develop that ear, [Zachary Tong] did a spectral analysis of the sounds of his new CNC machine during its “first chip” outing. The benchtop machine is no slouch – an Avid Pro 2436 with a 3 hp S30C tool-changing spindle. But like any benchtop machine, it lacks the sheer mass needed to reduce vibration, and tool chatter can be a problem.

The analysis begins at about the 5:13 mark in the video below, where [Zach] fed the soundtrack of his video into Audacity. Switching from waveform to spectrogram mode, he was able to identify a strong signal at about 5,000 Hz, corresponding to the spindle coming up to speed. The white noise of the mist cooling system was clearly visible too, as were harmonic vibrations up and down the spectrum. Most interesting, though, was the slight dip in frequency during the cut, indicating loading on the spindle. [Zach] then analyzed the data from the cut in the frequency domain and found the expected spindle harmonics, as well the harmonics from the three flutes on the tool. Mixed in among these were spikes indicating chatter – nothing major, but still enough to measure.

Audacity has turned out to be an incredibly useful tool with a broad range of applications. Whether it be finding bats, dumping ROMs, detecting lightning strikes, or cloning remote controls, Audacity is often the hacker’s tool of choice.

Continue reading “Analyzing CNC Tool Chatter With Audacity”

Wishing The Family A Sinusoidal Christmas

When it’s time to put together the annual Christmas card, most families take a few pictures of the kids, slap on a generic greeting, and call it a day. It used to be fairly common for the whole family to get dressed up and pose for a special Christmas picture, but who has the time anymore? It’s not like we have hours and hours to slave over a unique and memorable gift we can mail out to a dozen (or more) people.

Unless you’re [Chris Wolsey], anyway. Rather than take the easy way out and simply mailing some pictures of his daughter out to friends and family, he recorded her giving a Christmas greeting and turned the waveform of her voice into a framed physical memento. Way to wreck the curve for the rest of us, [Chris].

Evolution of the printed waveform.

As it turns out, getting sound into CAD software isn’t exactly straightforward. To start, he made a recording of his daughter saying the words “Happy Christmas From the Wolsey Family” with Audacity, and then took a screenshot of the resulting waveform. This screenshot was then brought into Adobe Illustrator and exported to SVG, which Fusion 360 (and most other CAD packages) is able to import.

Now that the wave was in Fusion 360 he could scale it to a reasonable size, and use the revolve function to bring it into three dimensions. Cutting that object in half down the length then gave [Chris] a shape which should, theoretically, be printable on his FDM printers. But unfortunately, it wasn’t so easy. His personal Anet A8 had a tough time printing it, and the Prusa i3 MK2 at work didn’t fare much better. In the end, he had to make the leap to SLA, getting the shape printed on a Form 2 via 3D Hubs.

With the finalized shape in hand, [Chris] just need to put them into production. Printing them all via 3D Hubs wasn’t really an option, so he decided to make a mold and cast them in resin. He printed up a mold box, and after fiddling around with the mix a bit, was able to settle on a resin which allowed him to de-mold the shapes just 30 minutes after pouring.

Finally, he made frames for each cast waveform, and printed up a little label explaining just what the recipient was looking at; even going as far as showing which word corresponded to which section of the shape.

This is a fantastically executed and documented project, and while it’s too late to whip up your own version this year, we have no doubt they’ll be a few people “borrowing” this idea next time the holidays roll around.

It’s never too early to start planning for next Christmas. We’ve covered unique takes on the traditional holiday card before, as well as a sleighful of holiday decorating projects.

Detect Lightning Strikes With Audio Equipment

One of the driving principles of a lot of the projects we see is simplicity. Whether that’s a specific design goal or a result of having limited parts to work with, it often results in projects that are innovative solutions to problems. As far as simplicity goes, however, the latest project from [153armstrong] takes the cake. The build is able to detect lightning using a single piece of equipment that is almost guaranteed to be within a few feet of anyone reading this article.

The part in question is a simple, unmodified headphone jack. Since lightning is so powerful and produces radio waves in many detectable ranges, it doesn’t take much to detecting a strike within a few kilometers. Besides the headphone jack, a computer with an audio recording program is also required to gather data. (Audio is often used as a stand-in for storing other types of data; in this case, RF information.) [153armstrong] uses a gas torch igniter as a stand-in for a lightning strike, but the RF generated is similar enough to test this proof-of-concept. The video of their tests is after the break.

Audacity is a great tool for processing audio, or for that matter any other data that you happen to be gathering using a sound card. It’s open source and fairly powerful. As far as lightning goes, however, it’s possible to dive far down the rabbit hole. Detecting lightning is one thing, but locating it requires a larger number of weather stations.

Continue reading “Detect Lightning Strikes With Audio Equipment”

Dirt Cheap Motor Balancing And Vibration Analysis

Ever the enterprising hacker and discerning tool aficionado, [Chris] knows the importance of “feel”. As a general rule, cheap tools will shake in your hand because the motors are not well-balanced. He wanted a way to quantify said feel on the cheap, and made a video describing how he was able to determine the damping of a drill using a few items most people have lying around: an earbud, a neodymium magnet, scrap steel, and Audacity.

He’s affixed the body of the drill to a cantilevered piece of scrap steel secured in a vise. The neodymium magnet stuck to the steel interrupts the magnetic field in the earbud, which is held in place with a third hand tool. [Chris] taped the drill’s trigger down and controls its speed a variac. First, [Chris] finds the natural frequency of the system using Audacity’s plot spectrum, and then gets the drill to run at the same speed to induce wobbling at different nodes. As he explains, one need not even use software to show the vibration nodes—a laser attached to the system and aimed at a phosphorescent target will plot the sine wave.

Just for fun, he severely unbalances the drill to find the frequencies at which the system will shake itself apart. Check it out after the break.

Continue reading “Dirt Cheap Motor Balancing And Vibration Analysis”

Using MATLAB And SDR To Reverse Engineer 433MHz Messages

Hackers everywhere are having a lot of fun with SDR – as is obvious from the amount of related posts here on Hackaday. And why not, the hardware is cheap and easily available. There are all kinds of software tools you can use to dig in and explore, such as SDR# , Audacity, HDSDR and so on. [illias] has been following SDR projects for a while, which piqued his interest enough for him to start playing with it. He didn’t have any real project in mind so he focused on studying the methodology and the tools available for analyzing 433MHz RF transmission. He describes the process of using MATLAB to recover the transmissions being received by the SDR

He started off by studying the existing tools available to uncover the details of the protocol. The test rig uses an Arduino UNO with the rc-switch library to transmit via a common and inexpensive 433MHz module. SDR# is used to record the transmissions and Audacity allows [illias] to visualize the resulting .wav files. But the really interesting part is where he documents the signal analysis using MATLAB.

He used the RTL-SDR package in conjunction with the Communications System Toolbox to perform spectrum analysis, noise filtering and envelope extraction. MATLAB may not be the easiest to work with, nor the cheapest, but its powerful features and the fact that it can easily read data coming from the SDR makes it an interesting tool. For the full skinny on what this SDR thing is all about, check out Why you should care about Software Defined Radio.

Voices From The Past: Recovering Audio From Wire Recordings

wire recorder setup[Nick]’s grandfather was quite the old school hacker. In the 1940s, he built his own wire recorder and microphone to capture everything from his children’s Chirstmas wishes to his favorite songs and programs from the radio. Only 20 or so spools have survived and were doomed to silence until [Nick] was able to find a vintage wire recorder, restore it, and feed digitized audio into Audacity.

Once he restored one of the two machines that he was able to get his hands on, [Nick] was in business. Since his grandfather also rolled his own spools, [Nick] had to build a playback spindle that would hold them. His uncle found an old mechanical counter to do the job, which [Nick] secured to the workbench. He fed the output from the wire recorder’s playback head into a guitar pre-amp, effectively digitizing the audio for recording in Audacity.

After playing all the spools, he adjusted the levels where necessary and cleaned up the recordings. His biggest challenge was feeding the wires back on to their original spools, which he managed with an electric drill and a rubber grommet. Be sure to check out the mp3 clips on [Nick]’s page. If you’re in the mood for old audio hacking stories, here’s one about building a tape recorder in 1949.