AI System Drops A Dime On Noisy Neighbors

“There goes the neighborhood” isn’t a phrase to be thrown about lightly, but when they build a police station next door to your house, you know things are about to get noisy. Just how bad it’ll be is perhaps a bit subjective, with pleas for relief likely to fall on deaf ears unless you’ve got firm documentation like that provided by this automated noise detection system.

OK, let’s face it — even with objective proof there’s likely nothing that [Christopher Cooper] is going to do about the new crop of sirens going off in his neighborhood. Emergencies require a speedy response, after all, and sirens are perhaps just the price that we pay to live close to each other. That doesn’t mean there’s no reason to monitor the neighborhood noise, though, so [Christopher] got to work. The system uses an Arduino BLE Sense module to detect neighborhood noises and Edge Impulse to classify the sounds. An ESP32 does most of the heavy lifting, including running the UI on a nice little TFT touchscreen.

When a siren-like sound is detected, the sensor records the event and tries to classify the type of siren — fire, police, or ambulance. You can also manually classify sounds the system fails to understand, and export a summary of events to an SD card. If your neighborhood noise problems tend more to barking dogs or early-morning leaf blowers, no problem — you can easily train different models.

While we can’t say that this will help keep the peace in his neighborhood, we really like the way this one came out. We’ve seen the BLE Sense and Edge Impulse team up before, too, for everything from tuning a bike suspension to calming a nervous dog. Continue reading “AI System Drops A Dime On Noisy Neighbors”

Sailor Hat Adds Graceful Shutdown To Pis

Even though Windows and other operating systems constantly remind us to properly eject storage devices before removing them, plenty of people won’t heed those warnings until they finally corrupt a drive and cause all kinds of data loss and other catastrophes. It’s not just USB jump drives that can get corrupted, though. Any storage medium can become unusable if certain actions are being taken when the power is suddenly removed. That includes the SD cards on Raspberry Pis, too, and if your power isn’t reliable you might consider this hat to ensure they shut down properly during power losses.

The Raspberry Pi hat is centered around a series of supercapacitors which provide power for the Pi temporarily. The hat also communicates with the Pi to let it know there is a loss of power, so that the Pi can automatically shut itself down in that situation to prevent corrupting the memory card. The hat is more than just a set of backup capacitors, though. The device is capable of taking input power from a wide range of sources and filtering it for the power requirements of the Pi, especially in applications like boats and passenger vehicles where the input power might be somewhat noisy. There’s an optocoupled CAN bus interface as well for those looking to use this for automotive applications.

The entire project is also available on the project’s GitHub page for those wishing to build their own. Some sort of power backup is a good idea for any computer, though, not just Raspberry Pis. We’ve seen uninterruptible power supplies (UPS) with enough power to run an entire house including its computers, to smaller ones that’ll just keep your Internet online during a power outage.

Continue reading “Sailor Hat Adds Graceful Shutdown To Pis”

Taking Mechanical Keyboard Sounds To The Next Level

When it comes to mechanical keyboards, there’s no end to the amount of customization that can be done. The size and layout of the keyboard is the first thing to figure out, and then switches, keycaps, and then a bunch of other customizations inside the keyboard like the mounting plate and whether or not to add foam strips and other sound- and vibration-deadening features. Of course some prefer to go the other direction with it as well, omitting the foam and installing keys with a more noticeable click, and still others go even further than that by building a separate machine to make their keyboard activity as disruptive as it could possibly be.

This started as a joke among [ac2ev] and some coworkers, who were already teasing about the distinct sound of the mechanical keyboard. This machine, based on a Teensy microcontroller, sits between any USB keyboard and its host computer, intercepting keystrokes and using a small solenoid to tap on a block of wood every time a keystroke is detected. There’s also a bell inside that rings when the enter key is pressed, similar to the return carriage notification for typewriters, and as an additional touch an audio amplifier with attached speaker plays the Mario power-up sound whenever the caps lock key is pressed.

[ac2ev] notes that this could be pushed to the extreme by running a much larger solenoid powered by mains electricity, but since this was more of a proof-of-concept demonstration for some coworkers the smaller solenoid was used instead. The source code for the build can be found on the project’s GitHub page and there’s also a video of this machine in action here as well. Be careful with noisy mechanical keyboards, though, as the sounds the keys produce can sometimes be decoded to determine what the user is typing.

Don’t Let The Baluns Float Over Your Head

Most ham radio operators will build an antenna of some sort when they first start listening or transmitting, whether it’s a simple dipole, a beam antenna like a Yagi, or even just a random wire vertical antenna. All of these will need to be connected feedline of some sort, and in the likely event you reach for some 50-ohm coax cable you’ll also need a balun to reduce noise or unwanted radiation. Don’t be afraid of extra expenses when getting into this hobby, though, as [W6NBC] demonstrates how to construct an “ugly balun” out of the coax wire itself (PDF).

The main purpose of a balun, a contraction of “balanced-unbalanced” is to convert an unbalanced transmission line to a balanced one. However, as [W6NBC] explains, this explanation obscures much of what baluns are actually doing. In reality, they take a three-wire system (the coax) and convert it to a two-wire system (the antenna), which keeps all of the electrical noise and current on the shield wire of the coax from interfering with the desirable RF on the interior of the coax.

This might seem somewhat confusing on the surface, as coax wires only have a center conductor and a shield wire, but thanks to the skin effect which drives currents to the outside of the conductor, the shield wire effectively becomes two conductors when taking into account its inner and outer surfaces. At these high frequencies the balun is acting as a choke which keeps these two high-frequency conductors separate from one another, and keeps all the noise on the outside of the shield wire and out of the transmitter or receiver.

Granted, the world of high-frequency radio circuits can get quite complex and counter-intuitive and, as we’ve shown before, can behave quite unexpectedly when compared to DC or even mains-frequency AC. But a proper understanding of baluns and other types of transformers and the ways they interact with RF can be a powerful tool to have. We’eve even seen other hams use specialty transformers like these to make antennas out of random lengths and shapes of wire.

Continue reading “Don’t Let The Baluns Float Over Your Head”

Automated Shusher Keeps Conference Loudmouths In Line

Few things are more annoying than being at a conference and having an inconsiderate group conducting a vociferous sidebar that drowns out the speaker. More annoying still is the inevitable shushing; nobody likes being either the shusher or the shushed. So why not take the humans out of the loop and automate the chore of keeping the peace?

Such was the challenge presented to [BotBerg] before a recent conference, who came up with this automated shusher (translation) on short notice. The build is based on the Arduino Nano 33 BLE Sense Deck, a sensor-rich dev board that’s perhaps a little overkill for the job, but hey — you roll with what you’ve got. The board’s MEMS microphone is the sensor used here, which measures the ambient sound pressure level multiple times per second. When the background noise exceeds a potentiometer-set threshold, an MP3 player is triggered to play a sound clip entreating the offenders to pipe down. The whole thing is housed in a playful 3D-printed enclosure shaped like a mouth, which should be sufficient reminder alone to keep yours shut.

This was a quick-and-dirty prototype, of course, and probably could use some refinement. Given the behavior we’ve witnessed at some conferences, we’d say hooking it up to a Nerf turret gun would be a justifiable escalation.

Hackaday Links Column Banner

Hackaday Links: January 29, 2023

We’ve been told for ages that “the robots are coming for our jobs!” It’s true that we’ve seen robots capable of everything from burger flipping to bricklaying being demonstrated, and that’s certainly alarming for anyone employed in such trades. But now it looks like AI has set its sights set on the white-collar world, with the announcement that ChatGPT has managed a passing grade on a Wharton MBA exam.

For those not in the know, the University of Pennsylvania’s Wharton School of Business is in the major league of business schools; earning a Master’s in Business Administration from that august institution is no mean feat, and is likely to put the budding executive on a ballistic career trajectory. So the fact that ChatGPT could pass the exam is significant. But before you worry about a world in which our best and brightest business leaders are replaced with soulless automatons, relax. The exam presented to ChatGPT was just a final exam for one course, Operations Management, so it’s not like it aced everything an MBA is expected to know, and it took a lot of hints from a human helper to get it that far. It’s also reported that it made a lot of simple math mistakes, too, so maybe a Wharton MBA isn’t that much of a big deal after all.

Continue reading “Hackaday Links: January 29, 2023”

solenoid wound pickup coil next to a selection of bolts and a steel rod

The Barkhausen Effect: Hearing Magnets Being Born

The Barkhausen effect — named after German Physicist Heinrich Barkhausen — is the term given to the noise output produced by a ferromagnetic material due to the change in size and orientation of its discrete magnetic domains under the influence of an external magnetic field. The domains are small: smaller than the microcrystalline grains that form the magnetic material, but larger than the atomic scale. Barkausen discovered that as a magnetic field was brought close to a ferrous material, the local magnetic field would flip around randomly, as the magnetic domains rearranged themselves into a minimum energy configuration and that this magnetic field noise could be sensed with an appropriately arranged pickup coil and an amplifier. In the short demonstration video below, this Barkhausen noise can be fed into an audio amplifier, producing a very illustrative example of the effect.

One example of practical use for this effect is with non-destructive testing and qualification of magnetic structures which may be subject to damage in use, such as in the nuclear industry. Crystalline discontinuities or impurities within a part under examination result in increased localized mechanical stresses, which could result in unexpected failure. The Barkhausen noise effect can be easily leveraged to detect such discontinuities and give the evaluator a sense of the condition of the part in question. All in all, a useful technique to know about!

If you were thinking that the Barkhausen is a familiar name, you may well be thinking about the Barkhausen stability criterion, which is fundamental to describing some of the conditions necessary for a linear feedback circuit to oscillate. We’ve covered such circuits before, such as this dive into bridge oscillators.

Continue reading “The Barkhausen Effect: Hearing Magnets Being Born”