Accurate Dispensing Of Toilet Paper Will Get Us Through The Crisis

As we enter our second week of official COVID-19-related lockdown where this is being written, it’s evident that there are some resources we will have to conserve to help get us through all this. Instead of just using all of something because we can nip out to the store and buy more, we have to look at what we’ve got and treat it as though it will have to get us through the next three months. It’s not always certain that on our infrequent trips to the supermarket they’ll have stocks of what we want.

This is the very last of the toilet paper in my local supermarket, on the 8th of March.
This is the very last of the toilet paper in my local supermarket, on the 8th of March.

A particular shortage has been of toilet paper. The news was full of footage showing people fighting for the last twelve-pack, and since early last month there has been none to be had for love nor money. To conserve stocks and save us from the desperate measures of having to cut the Daily Mail into squares and hang them on the wall, a technical solution is required. To this end I’ve created a computerised toilet roll dispenser which carefully controls the quantity of the precious sanitary product, in the hope of curbing its consumption to see us through the crisis.

In the midst of a full lockdown it’s difficult to secure immediate delivery of our usual maker essentials, so rather than send off for the controller boards I might have liked it has been necessary to make do with what I had. In the end I selected an older single board computer I had in a box under my bench. The Sinclair ZX81 has a single-core Z80 processor running at 3.25 MHz, dual-channel memory, a Ferranti GPU, and plenty of expansion possibilities from its black plastic case. I chose it because I could repurpose its thermal printer peripheral as a toilet paper printer, and because it has an easily wiped and hygienic membrane keyboard rather than a conventional one that could harbour germs.

Hardware wise I found I was fairly easily able to adapt a standard roll of Cushelle to the ZX printer, and was soon dispensing sheets with the following BASIC code.

10 REM TOILET PAPER PRINTER
20 FOR T=0 TO 44
30 LPRINT ""
40 NEXT T
50 LPRINT "---------- TEAR HERE -----------"

For now it’s working on the bench, but it will soon be mounted with a small portable TV as a monitor on the wall next to the toilet. Dispensing toilet paper will be as simple as typing RUN and hitting the ZX’s NEW LINE key, before watching as a sheet of toilet paper emerges magically from the printer. It’s the little hacks like this one that will be so useful in getting us through the crisis. After all, this Sinclair always has a square to spare.

Gold Cables Really Do Work The Best

As a writer, I have long harboured a dream that one day an editor will buy me a top-of-the-range audio analyser, and I can set up an audio test lab and write pieces debunking the spurious claims made by audiophiles, HiFi journalists, and the high-end audio industry about the quality of their products. Does that amp really lend an incisive sibilance to the broader soundstage, and can we back that up with some measurable figures rather than purple prose?

An Audio Playground You Didn’t Know You Had

An Audio Precision APx525 audio analyser.
An Audio Precision APx525 audio analyser. Bradp723 (CC-BY-SA 3.0)

Sadly Hackaday is not an audio magazine, and if Mike bought me an Audio Precision he’d have to satisfy all the other writers’ test equipment desires too, and who knows where that would end! So there will be no Hackaday audio lab — for now. But that doesn’t mean I can’t play around with audio analysis.

Last month we carried a write-up of a Supercon talk from Kate Temkin and Michael Ossmann, in which they reminded us that we have a cracking general purpose DSP playground right under our noses; GNU Radio isn’t just for radio. Once I’d seen the talk my audio analysis horizons were opened up considerably. Maybe that audio analyser wouldn’t be mine, but I could do some of the same job with GNU Radio.

It’s important to stress at this point that anything I can do on my bench will not remotely approach the quality of a professional audio analyser. But even if I can’t measure infinitesimal differences between very high-end audio circuitry, I can still measure enough to tell a good audio product from a bad one.

Continue reading “Gold Cables Really Do Work The Best”

Fail Of The Week: How Not To Die Of Boredom During Isolation

They say you can’t actually die from boredom, but put a billion or so people into self-isolation, and someone is bound to say, “Hold my beer and watch this.” [Daniel Reardon]’s brush with failure, in the form of getting magnets stuck up his nose while trying to invent a facial touch reminder, probably wasn’t directly life-threatening, but it does underscore the need to be especially careful these days.

The story begins with good intentions and a small stack of neodymium magnets. [Daniel]’s idea for a sensor to warn one of impending face touches was solid: a necklace with magnetic sensors and wristbands studded with magnets. Sounds reasonable enough; one can easily see a compact system that sounds an alarm when a hand subconsciously crosses into the Danger Zone while going in for a scratch. Lacking any experience in circuits, though, [Daniel] was unable to get the thing working, so he started playing with the magnets instead. One thing led to another, and magnets were soon adorning his earlobes, and then his nostrils. Unfortunately, two magnets became locked on either side of his septum, as did two others meant to neutralize the pull of the first pair. So off [Daniel] went to the emergency department for a magnetectomy.

Of course it’s easy to laugh at someone’s misfortune, especially when self-inflicted. And the now-degaussed [Daniel] seems to be a good sport about the whole thing. But the important thing here is that we all do dumb things, and hackers need to be especially careful these days. We often work with sharp, pointy, sparky, toxic, or flammable things, and if we don’t keep our wits about us, we could easily end up in an ER somewhere. Not only does that risk unnecessary exposure to COVID-19, but it also takes medical resources away from people who need it more than you do.

By all means, we should be hacking away these idle hours. Even if it’s not in support of COVID-19 solutions, continuing to do what we do is key to our mental health and well-being. But we also need to be careful, to not stretch dangerously beyond our abilities, and to remember that the safety net that’s normally there to catch us is full of holes now.

Thanks to [gir.st] for the tip — you actually were the only one to send this in.

Empanada Becomes Impractical, Delicious Synth

Vegemite is an Australian staple – a rich, protein-filled sandwich spread with a strong salty flavor. It serves as a great way to add a little umami to any dish, which is the hottest open secret in Australian cuisine this decade. It also works as a servicable conductive paint, which [Alex] used to make this baked good into a musical device.

The basis of the device is a basic audio example sketch running on an Adafruit Circuit Playground Express. The code was tweaked to play a 7-note C major scale. The PCB was then attached to the empanada with toothpicks through each pad, with the baked good itself seemingly connected to the ground plane. The toothpicks through the pads were then coated with Vegemite, and another toothpick treated the same way and used as a stylus. By touching the toothpick to the empanada and one of the pads, the circuit is made, and a note is played.

It’s an impractical way to go about musical performance, sure. But it is an effective demonstration of foodstuffs used in electronics. Calvin Harris did much the same back in 2009, albeit with humans substituting for the delicious pastry. Video after the break.

Continue reading “Empanada Becomes Impractical, Delicious Synth”

Handheld 3D Scanning, Using Raspberry Pi 4 And Intel RealSense Camera

Raspberry Pi 4 (with USB 3.0) and Intel RealSense D415 depth sensing camera.

When the Raspberry Pi 4 came out, [Frank Zhao] saw the potential to make a realtime 3D scanner that was completely handheld and self-contained. The device has an Intel RealSense D415 depth-sensing camera as the main sensor, which uses two IR cameras and an RGB camera along with the Raspberry Pi 4. The Pi uses a piece of software called RTAB-Map — intended for robotic applications — to take care of using the data from the camera to map the environment in 3D and localize itself within that 3D space. Everything gets recorded in realtime.

This handheld device can act as a 3D scanner because the data gathered by RTAB-Map consists of a point cloud of an area as well as depth information. When combined with the origin of the sensing unit (i.e. the location of the camera within that area) it can export a point cloud into a mesh and even apply a texture derived from the camera footage. An example is shown below the break.
Continue reading “Handheld 3D Scanning, Using Raspberry Pi 4 And Intel RealSense Camera”

Shoot The Moon With This Homebrew Hardline RF Divider

You can say one thing for [Derek]’s amateur radio ambitions — he certainly jumps in with both feet. While most hams never even attempt to “shoot the Moon”, he’s building out an Earth-Moon-Earth, or EME, setup which requires this little beauty: a homebrew quarter-wave hardline RF divider, and he’s sharing the build with us.

For background, EME is a propagation technique using our natural satellite as a passive communications satellite. Powerful, directional signals can bounce off the Moon and back down to Earth, potentially putting your signal in range of anyone who has a view of the Moon at that moment. The loss over the approximately 770,000-km path length is substantial, enough so that receiving stations generally use arrays of high-gain Yagi antennas.

That’s where [Derek]’s hardline build comes in. The divider acts as an impedance transformer and matches two 50-ohm antennas in parallel with the 50-ohm load expected by the transceiver. He built his from extruded aluminum tubing as the outer shield, with a center conductor of brass tubing and air dielectric. He walks through all the calculations; stock size tubing was good enough to get into the ballpark for the correct impedance over a quarter-wavelength section of hardline at the desired 432-MHz, which is in the middle of the 70-cm amateur band. Sadly, though, a scan of the finished product with a NanoVNA revealed that the divider is resonant much further up the band, for reasons unknown.

[Derek] is still diagnosing, and we’ll be keen to see what he comes up with, but for now, at least we’ve learned a bit about homebrew hardlines and EME. Want a bit more information on Moon bounce? We’ve got you covered.

Continue reading “Shoot The Moon With This Homebrew Hardline RF Divider”

Magnets Turn Flexible PCB Into Electric Grasshopper

Just because something doesn’t seem to have an apparent purpose, that doesn’t mean we shouldn’t try making it anyway. As flexible PCBs become cheaper and easier to order from low-scale fab houses, we’re seeing hobbyists experiment with new uses for them such as [Carl Bugeja]’s jumping circuit.

The circuit is based a coil printed on the flexible PCB itself acting as an electromagnet, but unlike other designs which use the same trick, in this one the coil is made to be the static side of an actuator. Attached to the circuit with folding arms is a stack of two permanent magnets, which work as the moving part. Since the magnets make up most of the mass of the circuit, as they’re pushed down and sprung back up, it causes the whole thing to leap around just under one centimeter off the table like a little electric grasshopper.

This is far from [Carl]’s first appearance here on Hackaday, and he’s been clearly busy exploring new uses for flexible PCBs with their properties as electromagnets, from making POV displays with them to small robots that move around through vibration. We’re excited to see what else he can come up with, and you can see this one in action after the break.

Continue reading “Magnets Turn Flexible PCB Into Electric Grasshopper”