Posts

Showing posts from April, 2024

Making Beer Like It’s 1574, For Science And Heritage

Image
Are you interested in the history of beer, food science, or just a fan of gathering “um, actually” details about things? Well you’re in for a treat because FoodCult (exploring Food, Culture, and Identity in early modern Ireland) has a fantastic exhibition showcasing their recreation of beer last brewed in the sixteenth century by putting serious scientific work into it, and learning plenty in the process. A typical historical beer of middling strength was around 5% alcohol by volume, similar to a modern-day lager. The recipes, equipment and techniques are straight from what was used at Dublin Castle in the late 1500s. This process yielded very interesting insights about what beer back then was really like, how strong it was, and what was involved in the whole process. Documentation from the era also provides cultural insight. Beer was often used to as payment and provided a significant amount of dietary energy. Dublin Castle, by the way, consumed some 26,000 gallons per year. I

3D-Printed Macro Pad Plate Is LEGO-Compatible

Image
We love LEGO, we love keyboards, and when the two join forces, we’re usually looking at a versatile peripheral that’s practically indestructible. Such seems to be the case with [joshmarinacci]’s LEGO-compatible 3D-printed plate for a three-key macro pad. For a first foray into scratch-built keyboard construction, we think this is pretty great. The idea here is threefold: the plate holds the switches in place, negates the need for a PCB, and makes it possible to build the case completely out of LEGO. In fact, [joshmarinacci]’s plan for the keycaps even includes LEGO — they are going to 3D print little adapters that fit the key switch’s stem on one side, and the underside of a 2×2 plate on the other. Although [joshmarinacci]’s plan is to design a PCB for the next version, there is plenty to be said for combining the plate and the PCB by printing guides for the wires, which we’ve seen before. We’ve also seen LEGO used to create a keyboard stand that fits just right.  Via KBD from

The Cheapest USB Blaster Ever, Thanks To CH552

Image
Here’s a CH552G-based USB Blaster project, in case you needed more CH552G in your life, which you absolutely do. It gives you the expected IDC-10 header ready for JTAG, AS, and PS modes. What’s cool, it fits into the plastic shell of a typical USB Blaster, too! The PCB is flexible enough, and has all the features you’d expect – a fully-featured side-mounted IDC-10 header, two LEDs, a button for CH552 programming mode, and even a UART header inside the case. There’s an option to add level shifter buffers, too – but you don’t have to populate them if you don’t want to do that for whatever reason! The Hackaday.io page outlines all the features you are getting, though you might have to ask your browser to translate from Chinese. Sadly, there’s no firmware or PCB sources – just schematics, .hex, BOM, and Gerber .zip, so you can’t fix firmware bugs, or add the missing USB-C pulldowns. Nevertheless, it’s a cool project and having the PCB for it is lovely, because you never know when you

Possibly The Cheapest Way To Film In Bullet Time

Image
When The Matrix hit the cinemas back in 1999 it started a minor revolution with its use of so-called “Bullet time” — a freeze-frame technique in which the action could move round a momentarily frozen subject. It’s filmed using an array of cameras in an arc, something which was pretty expensive back then but is now within the reach of almost anyone. Just how cheaply bullet time can be filmed is shown by [3DSage], who turned nine toy cameras into a budget bullet time rig . The cameras themselves are what you might expect for the princely sum of nine dollars, but as he points out, their low-resolution video has a certain charm. Some iteration was required to produce the rig without fouling their flip-out screens, and he found that the video quality was far better than their still image quality. But eventually he was able to extract the required array of frames and stitch them together with a video interpolator for the required effect. His cat is a handsome creature from any angle, we c

Sound and Water Make Weird Vibes in Microgravity

Image
NASA astronaut [Don Pettit] shared a short video from an experiment he performed on the ISS back in 2012, demonstrating the effects of sound waves on water in space . Specifically, seeing what happens when a sphere of water surrounding an air bubble perched on a speaker cone is subjected to a variety of acoustic waves. The result is visually striking patterns across different parts of the globe depending on what kind of sound waves were created. It’s a neat visual effect, and there’s more where that came from. [Don] experimented with music as well as plain tones, and found that cello music had a particularly interesting effect on the setup. Little drops of water would break off from inside the sphere and start moving around the inside of the air bubble when cello music was played. You can see this in action as part of episode 160 from SmarterEveryDay (cued up to 7:51) which itself is about exploring the phenomenon of how water droplets can appear to act in an almost hydrophobic way

This Is How a Pen Changed the World

Image
Look around you. Chances are, there’s a BiC Cristal ballpoint pen among your odds and ends. Since 1950, it has far outsold the Rubik’s Cube and even the iPhone, and yet, it’s one of the most unsung and overlooked pieces of technology ever invented. And weirdly, it hasn’t had the honor of trademark erosion like Xerox or Kleenex. When you ‘flick a Bic’, you’re using a lighter. It’s probably hard to imagine writing with a feather and a bottle of ink, but that’s what writing was limited to for hundreds of years. When fountain pens first came along, they were revolutionary, albeit expensive and leaky. In 1900, the world literacy rate stood around 20%, and exorbitantly-priced, unreliable utensils weren’t helping. In 1888, American inventor John Loud created the first ballpoint pen. It worked well on leather and wood and the like, but absolutely shredded paper, making it almost useless. One problem was that while the ball worked better than a nib, it had to be an absolutely perfect fit,

Tiny Arduino Drone Even Has an FPV Camera

Image
In the turmoil of today’s world, drones are getting bigger, badder, and angrier. [Max Imagination] has gone the other way with his work, though, building a teeny Arduino drone that can fit in the palm of your hand. Even if you have a small hand! The drone is based around an Arduino Pro Mini, and uses an MPU6050 IMU for motion sensing and flight control. Communication with the drone is via an NRF24L01. Four small coreless motors are used for propulsion, driven by tiny MOSFETs, and the whole assembly is run via a teeny 220 mAh lithium-polymer battery. Oh, and there’s an FPV camera so you can put on some goggles and see where it’s going! Control is via MultiWii software, written specifically for building multirotor craft. [Max] flies the craft using a controller of his own creation, again using an NRF24L01 for communication. It’s a neat build, and a titchy one too! Tiny drones have a character all their own , even if they can’t really stand up to windier outdoor environments. Video a

A CH552G Devboard In Case You Missed It

Image
We might just never get tired of covering cool small cheap MCUs, and CH552G sure fits this description. Just so you know, here’s a Hackaday.io project you should check out – a CH552G devboard that’s as simple as it sufficient, in case you needed a tangible reminder that this chip exists, has a lively community, and is very much an option for your projects. The devboard design by [Dylan Turner] is so straightforward, it’s almost inspiring – a square of PCB with the chip in the center and plenty of empty space for your mods. Everything is open-source with KiCad sources stored on GitHub. The most lovely aspect of this board, no doubt, is having the pin mapping written on the bottom, with all the alternate pin functions – you won’t have to constantly glance at the datasheet while wiring this one up. Plus, of course, there’s the microUSB port for programming, and the programming mode button that a few CH552 projects tend to lack. It’s simple, it’s self-documenting, it’s breadboardable

AI Can Now Compress Text

Image
There are many claims in the air about the capabilities of AI systems, as the technology continues to ascend the dizzy heights of the hype cycle. Some of them are true, others stretch definitions a little, while yet more cross the line into the definitely bogus. [J] has one that is backed up by real code though, a compression scheme for text using an AI , and while there may be limitations in its approach, it demonstrates an interesting feature of large language models. The compression works by assuming that for a sufficiently large model, it’s likely that many source texts will exist somewhere in the training. Using llama.cpp it’s possible to extract the tokenization information of a piece of text contained in its training data and store that as the compressed output. The decompressor can then use that tokenization data as a series of keys to reassemble the original from its training. We’re not AI experts but we are guessing that a source text which has little in common with any tra

Hack In Style With This Fallout Cyberdeck

Image
There’s always an appeal to a cool-looking computer case or cyberdeck – and with authentic-looking Vault-Tec style, [Eric B] and [kc9psw]’s fallout-themed cyberdeck is no exception. The case looks like it came straight out of one of the Fallout games and acts the part: while (obviously) not capable of withstanding a direct nuclear bomb impact, it can protect the sensitive electronics inside from the electromagnetic pulse and shockwave that follows – if you keep it closed. And it’s not just the case that’s cool: This cyberdeck is packed full of goodies like long-range radios, SDRs, ADSB receivers, a Teensy 4.1, and dual Raspberry Pis. But that’s just the hardware! It also comes with gigabytes upon gigabytes of Wikipedia, Wikihow, TED talks, and other information/entertainment, for the less eventful days in the wastelands. If you, too, would like to have one, fret not! The parts list and design files are public, even though some assembly is required. from Blog – Hackaday https

You Can Run BASIC On an Old HP 4592 Protocol Analyzer

Image
What do you do when you find an ancient piece of test gear and want to have fun? Well, you can always try getting BASIC running on it, and that’s precisely what [David Kuder] did. The HP4952A Protocol Analyzer actually looks a lot like an old computer, even if it was never meant for general-purpose use. The heart of the machine is a Zilog Z80 CPU, though, so it shares a lot in common with microcomputers of its era. Among other hacks, [David] worked to get Microsoft Basic-80 running on the machine. Initially, he was only able to get it up and running on the display, with no way to read the keyboard, disk, or access the serial port. Eventually, by diving into the nitty-gritty of the machine, he was able to at least get the keyboard working along with some basic BASIC programs. Usable memory is just 8KB, but you can do a fair bit with that when you’ve only got a 32×16 display for output anyway! It’s a neat hack and one that was extendable to the HP4957A as well. We’ve seen similar mac

Train a GPT-2 LLM, Using Only Pure C Code

Image
[Andrej Karpathy] recently released llm.c , a project that focuses on LLM training in pure C, once again showing that working with these tools isn’t necessarily reliant on sprawling development environments. GPT-2 may be older but is perfectly relevant, being the granddaddy of modern LLMs (large language models) with a clear heritage to more modern offerings. LLMs are fantastically good at communicating despite not actually knowing what they are saying, and training them usually relies on PyTorch deep learning library, itself written in Python. llm.c takes a simpler approach by implementing the neural network training algorithm for GPT-2 directly. The result is highly focused and surprisingly short: about a thousand lines of C in a single file. It is a highly elegant process that does the same thing the bigger, clunkier methods accomplish. It can run entirely on a CPU, or it can take advantage of GPU acceleration, where available. This isn’t the first time [Andrej Karpathy] has ben

Pi Pico Gets a ZX Spectrum Emulator

Image
The Pi Pico is a capable microcontroller that can do all kinds of fun and/or useful things. In the former vein, [antirez] has ported a ZX Spectrum emulator to the Pi Pico. ZX2040, as it is known, is a port of [Andre Weissflog’s] existing ZX spectrum emulator. It’s designed for use on the compact embedded Pi Pico platform, using ST77xx TFT displays. To that end, it has a UI optimized for small, low resolution screens and minimal buttons. After all, very few Pi Picos come with a full QWERTY keyboard attached. Certain hacks are necessary to make it all work; the chip is overclocked to get things humming fast enough. The emulator also runs upscaling or downscaling in realtime as needed. This allows the emulator to run with a variety of displays, almost none of which are a direct match for the ZX Spectrum’s original resolution of 256×192 pixels. Code is on Github for the curious, including a great run down from [antirez] on everything that makes it tick. If you want to play ZX Spectrum

Wine in Beverage Cans Had a Rotten Egg Problem, Until Now

Image
Aluminum beverage cans are used for all kinds of drinks, but when it comes to wine there are some glitches. Chief among them is the fact that canned wine occasionally smelled like rotten eggs. Thankfully, researchers have figured out why that happens, and how to stop it . How was this determined? As the image above hints at, lots and lots of samples and testing. What causes this, and why don’t other beverages have this problem? Testing revealed that the single most important factor was the presence of molecular sulfur dioxide (SO 2 ), a compound commonly used in winemaking as an antioxidant and antimicrobial. It turns out that the thin plastic lining on the inside of beverage cans doesn’t fully stop molecular SO 2 from reacting with the surrounding aluminum, creating hydrogen sulfide (H 2 S) in the process. H 2 S has a very noticeable rotten egg smell, even in low concentrations. Researchers discovered that if a canned beverage contained more than 0.5 ppm of molecular SO 2 , a no

RGB LED HexaClock Doesn’t Actually Light Up the Night

Image
Who says a clock can’t be both useful and beautiful? That seems to be the big idea behind the lovely little HexaClock from [Bulduper]. And boy, is it both. Probably the most important part of this well-illuminated clock is the light sensor, which allows it to adjust the brightness automatically. If you’re not into that, well, there’s a really nice web app that’ll let you program the dickens out of it. The brains of this thing is an ESP8266 on a custom PCB which controls the 127 individually addressable RGB LEDs. The clock may look large, but the big printed parts just fit on the bed of a Prusa i3. [Bulduper] used ABS because the LED strip and the PCB might get a little warm; they didn’t want to risk using PLA and having it turn into a Salvador Dali clock (although that could be cool). Speaking of heat, make sure to use 18 AWG or thicker wires as [Bulduper] advises. LEDs may be efficient, but this clock uses lots of them! If you want to build one of these to bathe your wall in usef

Australian Library Uses Chatbot To Imitate Veteran With Predictable Results

Image
The educational sector is usually the first to decry large language models and AI, due to worries about cheating. The State Library of Queensland, however, has embraced the technology in controversial fashion. In the lead-up to Anzac Day, the primarily Australian war memorial holiday, the library released a chatbot intended to imitate a World War One veteran . It went as well as you’d expect. The highlighted line was apparently added to the chatbot’s instructions later on to help shut down tomfoolery. Twitter users immediately chimed in with dismay at the very concept. Others showed how easy it was to “jailbreak” the AI, convincing Charlie he was actually supposed to teach Python , imitate Frasier Crane , or explain laws like Elle from Legally Blonde. One person figured out how to get Charlie to spit out his initial instructions ; these were patched later in the day to try and stop some of the shenanigans. From those instructions, it’s clear that this was supposed to be educatio

Keep Tabs on PC Use with Custom Analog Voltmeter

Image
With the demands of modern computing, from video editing, streaming, and gaming, many of us will turn to a monitoring system of some point to keep tabs on CPU usage, temperatures, memory, and other physical states of our machines. Most are going to simply display on the screen but this data can be sent to external CPU monitors as well. This retro-styled monitor built on analog voltmeters does a great job of this and adds some flair to a modern workstation as well. The build, known as bbMonitor, is based on the ESP32 platform which controls an array of voltmeters via PWM. The voltmeters have been modified with a percentage display to show things like CPU use percentage. Software running on the computers sends this data in real time to the ESP32 so the computer’s behavior can be viewed at a glance. Each voltmeter is also augmented with RGB LEDs that change color from green to red as use increases as well. The project’s creator, [Corebb], also notes that the gauges will bounce around i

Build Your Own Class-E Musical Tesla Coil

Image
We’ve all seen a million videos online with singing Tesla coils doing their thang. [Zach Armstrong] wasn’t content to just watch, though. He went out and built one himself! Even better, he’s built a guide for the rest of us, too! His guide concerns the construction of a Class-E solid state Tesla coil. These are “underrated” in his opinion, as they’re simple, cheap, and incredibly efficient. Some say up to 95% efficient, in fact! It’s not something most Tesla coil fans are concerned with, but it’s nice to save the environment while making fun happy sparks, after all. [Zach]’s guide doesn’t just slap down a schematic and call it good. He explains the theory behind it, and the unique features too. He uses an adjustable Schmitt trigger oscillator for the build, and he’s naturally given it an audio modulation capability because that’s a good laugh, too. If you’ve ever wanted to convince you’re friends you’re incredibly smart and science-y, you can’t go wrong with a singing Tesla coil.

2024 Home Sweet Home Automation: Spray Bottle Turret Silences Barking

Image
Ah, dogs. They sure like to bark, don’t they? [rrustvold]’s dog likes to bark at the door when a package arrives. Or when someone walks by the house, or whenever the mood strikes, really. To solve the barking issue, at least near the front door, [rrustvold] built a spray bottle turret to teach the dog through classical conditioning. As you can see from the image, it’s all about pulling the trigger on a standard spray bottle at the right time. This machine only sprays when two conditions are met: it hears noise (like barking) and detects motion (like overzealous tail wagging). It also has heat-seeking abilities thanks to a Raspberry Pi thermal camera. To do the actual spraying, there’s a DC motor mounted behind the bottle which turns a pulley that’s mounted to its shaft. Around the pulley is a string that wraps around the spray bottle’s trigger. To complete the build, everything is mounted on a lazy Susan so there’s nowhere for Fido to hide-o. If you’ve a dog whose bite is worse th

Synthesis of Goldene: Single-Atom Layer Gold With Interesting Properties

Image
The synthesis of single-atom layer versions of a range of atoms is currently all the hype, with graphene probably the most well-known example of this. These monolayers are found to have a range of mechanical (e.g. hardness), electrical (conduction) and thermal properties that are very different from the other forms of these materials. The major difficulty in creating monolayers is finding a way that works reliably and which can scale. Now researchers have found a way to make monolayers of gold – called goldene – which allows for the synthesis of relatively large sheets of this two-dimensional structure. In the research paper by [Shun Kashiwaya] and colleagues (with accompanying press release ) as published in Nature Synthesis, the synthesis method is described. Unlike graphene synthesis, this does not involve Scotch tape and a stack of graphite, but rather the wet-etching of Ti 3 Cu 2 away from Ti 3 AuC 2 , after initially substituting the Si in Ti 3 SiC 2 with Au. At the end of t

Combadge Project Wants to Bring Trek Tech to Life

Image
While there’s still something undeniably cool about the flip-open communicators used in the original Star Trek , the fact is, they don’t really look all that futuristic compared to modern mobile phones. But the upgraded “combadges” used in Star Trek: The Next Generation and its various large and small screen spin-offs — now that’s a tech we’re still trying to catch up to. As it turns out, it might not be as far away as we thought. A company called Vocera actually put out a few models of WiFi “Communication Badges” in the early 2000s that were intended for hospital use, which these days can be had on eBay for as little as $25 USD. Unfortunately, they’re basically worthless without a proprietary back-end system. Or at least, that was the case before the Combadge project got involved . Designed for folks who really want to start each conversation with a brisk tap on the chest, the primary project of Combadge is the Spin Doctor server , which is a drop-in replacement for the original

A Smart Power Distribution Unit for Home Automation

Image
Power distribution units, as the name implies, are indispensable tools to have available in a server rack. They can handle a huge amount of power for demands of intensive computing and do it in a way that the wiring is managed fairly well. Plenty of off-the-shelf solutions have remote control or automation capabilities as well, but finding none that fit [fmarzocca]’s needs or price range, he ended up building his own essentially from scratch that powers his home automation system . Because it is the power supply for a home automation system, each of the twelve outlets in this unit needed to be individually controllable. For that, three four-channel relay boards were used, each driven by an output on an ESP32. The ESP32 is running the Tasmota firmware to keep from having to reinvent the wheel, while MQTT was chosen as a protocol for controlling these outlets to allow for easy integration with the existing Node-RED-based home automation system. Not only is control built in to each chan

The Myth of Propellantless Space Propulsion Refuses to Die

Image
In a Universe ruled by the harsh and unyielding laws of Physics, it’s often tempting to dream of mechanisms which defy these rigid restrictions. Although over the past hundred years we have made astounding progress in uncovering ways to work within these restrictions — including splitting and fusing atoms to liberate immense amounts of energy — there are those who dream of making reality a bit more magical. The concept of asymmetrical electrostatic propulsion is a major player here, with the EmDrive the infamous example. More recently [Dr. Charles Buhler] proposed trying it again , as part of his company Exodus Propulsion Technologies. This slide from Dr. Buhler’s APEC presentation shows the custom-made vacuum chamber built to test their propellantless Propulsion drive in a simulated space environment. Image Credit: Exodus Propulsion Technologies, Buhler, et al. The problem with such propellantless space propulsion proposals is that they violate the core what we know about the phy

The Performance Impact of C++’s `final` Keyword for Optimization

Image
In the world of software development the term ‘optimization’ is generally reason for experienced developers to start feeling decidedly nervous, especially when a feature is marked as an ‘easy and free optimization’. The final keyword introduced in C++11 is one of such features. It promises a way to speed up object-oriented code by omitting the vtable call indirection by marking a class or member function as – unsurprisingly – final, meaning that it cannot be inherited from or overridden. Inspired by this promise, [Benjamin Summerton] figured that he’d run a range of benchmarks to see what performance uplift he’d get on his ray tracing project . To be as thorough as possible, the tests were run on three different systems, including 64-bit Intel and AMD systems, as well as on Apple Silicon (M1). For the compilers various versions of GCC (12.x, 13.x), as well as Clang  (15, 17) and MSVC (17) were employed, with rather interesting results for final versus no final tests. Clang was pr

Downloading Satellite Imagery With a Wi-Fi Antenna

Image
Over the past century or so we’ve come up with some clever ways of manipulating photons to do all kinds of interesting things. From lighting to televisions and computer screens to communication, including radio and fiber-optics, there’s a lot that can be done with these wave-particles and a lot of overlap in their uses as well. That’s why you can take something like a fairly standard Wi-Fi antenna meant for fairly short-range communication and use it for some other interesting tasks like downloading satellite data . Weather satellites specifically use about the same frequency range as Wi-Fi, but need a bit of help to span the enormous distance. Normally Wi-Fi only has a range in the tens of meters, but attaching a parabolic dish to an antenna can increase the range by several orders of magnitude. The dish [dereksgc] found is meant for long-range Wi-Fi networking but got these parabolic reflectors specifically to track satellites and download the information they send back to earth. W