AI-Powered Snore Detector Shakes The Pillow So You Won’t

If you snore, you’ll probably find out about it from someone. An elbow to the ribs courtesy of your sleepless bedmate, the kids making fun of you at breakfast, or even the lady downstairs calling the cops might give you the clear sign that you rattle the rafters, and that it’s time to do something about it. But what if your snores are a bit more subtle, or you don’t have someone to urge you to roll over? In that case, this AI-powered haptic snore detector might be worth building.

The most distinctive characteristic of snoring is, of course, its sound, and that’s exactly what [Naveen Kumar] chose as a trigger. To differentiate between snoring and other nighttime sounds, [Naveen] chose an Arduino Nicla Voice sensor board, which sports a Syntiant NDP120 deep-learning processor and a built-in MEMS microphone. To generate a model that adequately represents the full tapestry of human snores, a publicly available snoring dataset — because of course that’s a thing — was used for training. Importantly, the training data included samples of non-snoring sounds, like sirens and thunder, as well as clips of legit snoring mixed with these other sounds. The model is trained with an online tool and downloaded onto the board; when it detects the sweet sound of sawing wood three times in a row, a haptic driver board vibrates the pillow as a gentle reminder to reposition. Watch it in action in the brief video below.

Snoring is something that’s easy to make light of, but in all seriousness, it’s not something to be taken lightly. Hats off to [Naveen] for developing a tool like this, which just might let you know you’ve got a problem that bears a closer look by a professional. Although it might work better as a wearable rather than a pillow-shaker.

Continue reading “AI-Powered Snore Detector Shakes The Pillow So You Won’t”

This Packable Ham Radio Antenna Is Made From Nothing But Tape

On today’s episode of “Will It Antenna?”, [Ben Eadie (VE6SFX)] designs and tests an antenna made entirely of tape, and spoiler alert — it works pretty well.

By way of background, the basic design [Ben] uses here is known as a J-pole, a popular “my first antenna” design for amateur radio operators looking to go beyond the stock whip antenna that comes with that cheap handy-talkie you just can’t resist buying as soon as you get your license. Usually, though, hams will build their J-poles from rigid materials, copper water pipe being a typical choice. Copper has the advantage of being easily sourced, and also results in a self-supporting, weather-resistant antenna that’s easy to mount outdoors. However, copper is getting to be egregiously expensive, and a couple of meters of water pipe isn’t exactly amenable to portable operation, if that’s your jam.

To solve those problems, [Ben] decided to keep his copper use to a minimum with a roll of copper foil tape. He doesn’t provide any specs on the tape, but it looks like it’s about 6 mm (1/4″) wide and judging by a quick Amazon search, probably goes for about $10 a roll. He starts the build with a couple of strips of plain old duck tape — we’ve already had the “duck vs. duct” argument — laid out with the sticky sides together. The copper foil is applied to the duck tape backing using dimensions from any of the J-pole calculators available online. Dimensions are critical to getting good performance from a J-pole, and this is where [Ben]’s tape design shines. Element too long? No problem, just peel up a bit and tear some off. Did you go too far and make an element too short? Easy — just stick on an extension piece of foil. Tuning the location of the feedline connection was a snap, too, with movable terminals held in place with magnets.

Once everything was tuned up, [Ben] soldered down the feed points and covered the foil with a protective layer of duck tape. The antenna performed swimmingly, and aside from costing almost nothing to build, it weighs very little, rolls up to fit in a pack for field operations, and can easily be hoisted into a tree for better coverage. Looks like we’ll be putting in an order for some copper tape and building one of these too. Continue reading “This Packable Ham Radio Antenna Is Made From Nothing But Tape”

Hackaday Podcast Ep 240: An Amazing 3D Printer, A Look Inside Raspberry Pi 5, And Cameras, Both Film And Digital

Date notwithstanding, it’s your lucky day as Elliot and Dan get together to review the best hacks of the week. For some reason, film photography was much on our writers’ minds this week, as we talked about ways to digitalize an old SLR, and how potatoes can be used to develop film (is there a Monty Python joke in there?) We looked at a 3D printer design that really pulls our strings, the custom insides of the Raspberry Pi 5, and the ins and outs of both ferroresonant transformers and ham radio antennas. Learn about the SMD capacitor menagerie, build a hydrogen generator that probably won’t blow up, and listen to the differences between a mess of microphones. And that’s not all; the KIM-1 rides again, this time with disk drive support, Jenny tests out Serenity but with ulterior motives, and Kristina goes postal with a deep dive into ZIP codes.

Check out the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Grab a copy for yourself if you want to listen offline.

Continue reading “Hackaday Podcast Ep 240: An Amazing 3D Printer, A Look Inside Raspberry Pi 5, And Cameras, Both Film And Digital”

Tattoo-Removal Laser Brought Out Of Retirement For A Megawatt Of Fun

We’ve got to say that [Les Wright] has the most fun on the internet, at least in terms of megawatts per dollar. Just look at his new video where he turns a $30 eBay tattoo-removal laser into a benchtop beast.

The junk laser in question is a neodymium:YAG pulse laser that clearly has seen better days, both externally and internally. The original pistol-grip enclosure was essentially falling apart, but was superfluous to [Les]’ plans for the laser. Things were better inside the business end of the gun, at least in terms of having all the pieces in place, but the teardown still revealed issues. Chief among these was the gunk and grunge that had accumulated on the laser rod and the flash tube — [Les] blamed this on the previous owner’s use of tap water for cooling rather than deionized water. It was nothing a little elbow grease couldn’t take care of, though. Especially since the rest of the laser bits seemed in good shape, including the chromium:YAG Q-switch, which allows the lasing medium to build up a huge pulse of photons before releasing them in one gigantic pulse.

Cleaned up and with a few special modifications of his own, including a custom high-voltage power supply, [Les]’ laser was ready for tests. The results are impressive; peak optical power is just over a megawatt, which is enough power to have some real fun. We’ll be keen to see what he does with this laser — maybe blasting apart a CCD camera?

Continue reading “Tattoo-Removal Laser Brought Out Of Retirement For A Megawatt Of Fun”

Implant Fights Diabetes By Making Insulin And Oxygen

Type 1 diabetes remains a problem despite having an apparently simple solution: since T1D patients have lost the cells that produce insulin, it should be possible to transplant those cells into their bodies and restore normal function. Unfortunately, it’s not actually that simple, and it’s all thanks to the immune system, which would attack and destroy transplanted pancreas cells, whether from a donor or grown from the patient’s own stem cells.

That may be changing, though, at least if this implantable insulin-producing bioreactor proves successful.  The device comes from MIT’s Department of Chemical Engineering, and like earlier implants, it relies on encapsulating islet cells, which are the insulin-producing cells within the pancreas, inside a semipermeable membrane. This allows the insulin they produce to diffuse out into the blood, and for glucose, which controls insulin production in islet cells, to diffuse in. The problem with this arrangement is that the resource-intensive islet cells are starved of oxygen inside their capsule, which is obviously a problem for the viability of the implant.

The solution: electrolysis. The O2-Macrodevice, as the implant is called, uses a tiny power-harvesting circuit to generate oxygen for the islet cells directly from the patient’s own interstitial water. The circuit applies a current across a proton-exchange membrane, which breaks water molecules into molecular oxygen for the islet cells. The hydrogen is said to diffuse harmlessly away; it seems like that might cause an acid-base imbalance locally, but there are plenty of metabolic pathways to take care of that sort of thing.

The implant looks promising; it kept the blood glucose levels of diabetic mice under control, while mice who received an implant with the oxygen-generating cell disabled started getting hyperglycemic after two weeks. What’s really intriguing is that the study authors seem to be thinking ahead to commercial production, since they show various methods for mass production of the cell chamber from standard 150-mm silicon wafers using photolithography.

Type 1 diabetics have been down the “artificial pancreas” road before, so a wait-and-see approach is clearly wise here. But it looks like treating diabetes less like a medical problem and more like an engineering problem might just pay dividends.

Hackaday Links Column Banner

Hackaday Links: October 8, 2023

Too much of a good thing is generally a bad thing, but a surfeit of asteroid material is probably a valid exception to that rule. Such was NASA’s plight as it started to unpack the sample return capsule recently dropped off by the OSIRIS-REx spacecraft as it flew by Earth, only to discover it was packed to overflowing with samples of asteroid Bennu. The spacecraft, which arrived at Bennu in 2018 and spent a good long time mapping the near-Earth asteroid, apparently approached its carefully selected landing site a bit too energetically and really packed the sample container full of BennuBits™ — so much so that they could actually see sample shedding off into space before stowing it for the long trip back to Earth. The container is now safely in the hands of the sample analysis team, who noted that everything in the TAGSAM (Touch and Go Sample Acquisition Module), even the avionics deck, is covered with black particles, each precious one of which needs to be collected and cataloged. The black stuff is especially interesting to planetary scientists, as it might be exactly what they were after when they selected Bennu, which may have broken off a much larger carbon-rich asteroid a billion or so years ago. It’ll be interesting to see if these interplanetary hitchhikers have anything to tell us about the origin of life in the solar system.

Continue reading “Hackaday Links: October 8, 2023”

Tetris On An Oscilloscope, The Software Way

When we talk about video games on an oscilloscope, you’d be pardoned for assuming the project involved an analog CRT scope in X-Y mode, with vector graphics for something like Asteroids or BattleZone. Alas, this oscilloscope Tetris (Russian language, English translation) isn’t that at all — but that doesn’t make it any less cool.

If you’re interested in recreating [iliasam]’s build, it’ll probably help to be a retro-oscilloscope collector. The target instrument here is a Tektronix TDS5400, a scope from that awkward time when everything was going digital, but CRTs were still cheaper and better than LCDs. It’s based on a Motorola 68EC040 processor, sports a boatload of discrete ICs on its main PCB, and runs VxWorks for its OS. Tek also provided a 3.5″ floppy drive on this model, to save traces and the like, as well as a debug port, which required [iliasam] to build a custom UART adapter.

All these tools ended up being the keys to the kingdom, but getting the scope to run arbitrary code was still a long and arduous process, with a lot of trial and error. It’s a good story, but the gist is that after dumping the firmware onto the floppy and disassembling it in Ghidra, [iliasam] was able to identify the functions used to draw graphics primitives on the CRT, as well as the functions to read inputs from the control panel. The result is the simple version of Tetris seen in the video below. If you’ve got a similar oscilloscope, the code is up on GitHub.

Care for a more hardware-based game-o-scope? How about a nice game of Pong? Or perhaps a polar breakout-style game is what you’re looking for. Continue reading Tetris On An Oscilloscope, The Software Way”