Ship Tracking On The Commodore 128

Most of the world found out about AIS, the Automatic Identification System used in maritime operations back in 2021, when ship trackers got a flood of traffic from people caught up in the drama of the MV Ever Given‘s Suez snafu. [Ioannis Anagnostopoulos] a.k.a [Greek Geek] had a more professional introduction to AIS, but also just enjoys tracking ships. He also likes his vintage Commodore 128 8-bit computer, so in a years-long labour of love he’s created AIS4CBM, a full-featured ship tracking application for the vintage machine.

Alas, it doesn’t quite run on a full-stock C128 — the AIS protocol streams data at 38,400 bps, which isn’t impossible for a 1980s serial port, but it is for the serial port on the C128. He started by using an Arduino to buffer the data feed and trickle information to the Commodore, but later moved to a SwiftLink/Turbo-232-style cartridge to allow for period-appropriate fast-serial reads. [Ioannis] taught himself 6502 assembly to parse the data stream rapidly enough, but the rest of AIS4CBM is in BASIC — though not standard Commodore Basic. [Ioannis] is instead using BASIC 8, an extension by Walrus Soft that dates to the 1980s and should not be confused with DEC’s earlier BASIC 8 for PDP-8s. BASIC 8 has some fast draw routines for the 128’s video chip that can take advantage of up to 64kB of VDC memory. Getting up to 64kB of video memory was the upgrade that took [Ionnis]’s C128 beyond a stock machine, since it wasn’t a 128D. We’re pretty sure the warranty was void by now anyway.

Continue reading “Ship Tracking On The Commodore 128” →

ESP32-Powered Alarm Clock Gets A Comprehensive 2.0 Upgrade

[Mike Gassman] had an alarm clock, but his wife didn’t like the brightness or the sound. Thus, he set about building a more suitable replacement to fit his needs. The latest upgrade to the project is a significant one.

The Rouse Clock, as he calls it, is something we first saw a few months back in an earlier form. It’s built with the Waveshare ESP32-S3-Touch-LCD-3.5-C. It’s a horribly long part name, but it’s basically an ESP32-S3 microcontroller with a 3.5″ touchscreen LCD already stuck on the front of it. Armed with this, [Mike] already had much of the hardware he needed. Alternatively, the design also works with the Freenove FNK0104N or the CYD E32R35T. The hardware is wrapped up in a 3D-printed housing, with a nice big snooze bar on top so you can slap the clock to quiet it if you need to sleep in on a bad morning. There’s also an optional backup battery to prevent missed alarms from power outages. The general goal was to build a smart clock that worked without subscriptions, apps, or an ugly cloud service.

The clock makes excellent use of the big, bright LCD, showing the time nice and clearly. However, it’s the version 2.0 firmware that has really expanded the functionality. The same hardware now also grabs other useful data, like weather and sunset times, and displays it on the screen to tell you more about the day ahead. Taking advantage of the ESP32’s wireless connectivity, the clock can also act as an Internet radio. Indeed, it’s an internet clock radio, because you can use a stream as an alarm if you wish. It will also display photos or provide soothing sounds for sleep. Configuration is straightforward, as it’s handled through a web interface served by the ESP32 itself. You can even view the clock’s current display from the web interface if you need.

If you’re looking to build a clock quickly, or some other internet-connected appliance, it’s pretty easy to get started with these modern boards that slap an ESP32 and a screen together at the factory. We love a good clock build around these parts. That’s why we feature so many of them! Video after the break.

Continue reading “ESP32-Powered Alarm Clock Gets A Comprehensive 2.0 Upgrade” →

Hackaday Links Column Banner

Hackaday Links: November 29, 2026

Back in 2022, NASA put the Double Asteroid Redirection Test (DART) spacecraft on a collision course with Dimorphos to determine if humanity had the ability to redirect the trajectory of an asteroid — the sort of thing a species would like to know before they have to attempt to fend off a space rock hurtling towards their homeworld.

Hera spacecraft, credit ESA.

From our vantage point here on Earth, we could tell the mission had been a success because Dimorphos’s orbit had changed appreciably after the impact; in fact, it was even more off-kilter than estimates had predicted. But there was no way to know the extent of the damage to the asteroid itself.

Until now, that is. The European Space Agency’s Hera spacecraft entered the vicinity of the celestial fender-bender earlier this month, and has since delivered the first up-close images of the black eye NASA gave Dimorphos. As you might expect, DART’s impact left a considerable crater on the surface.

But beyond the fact that the 151-meter asteroid is now tumbling wildly, it more or less looks the same as it did before humans introduced themselves to its surface. This is significant, as studying how the actual structure of Dimorphos was affected by the impact is just as important as understanding how much its orbit was changed. Expect to hear more about Hera and its study of Dimorphos in the coming months.

Continue reading “Hackaday Links: November 29, 2026” →

Z2RAM: A Layered, Twin Take On Single-Transistor DRAM

One of the annoyances in dynamic random access memory (DRAM) is the need to manufacture ever smaller capacitors for the typical one-transistor, one-capacitor (1T-1C) DRAM configuration. Over the past decades, researchers have studied the possibility of dropping the capacitor and using the floating body effect of current silicon-on-insulator transistors instead. One proposed form here by [Nagare Labs] seeks to even stack a design based on this 1T-DRAM in many layers for potentially very high-density RAM, called Z2RAM.

The concept of 1T-DRAM was first pitched by [S. Okhonin] in 2002, with research continuing since then to make it into a functional design suitable for mass production. As this 2022 paper by [Dongxue Zhao] (and others) shows, there’s still a lot of work to make this type of 1T-DRAM work.

What the design by [Nagare Labs] proposes is a — thus far experimental — hybrid SRAM/DRAM cell in which two transistors are used to either write or non-destructively read a stored charge. This might in some ways be easier, as it theoretically eliminates the need to refresh a cell. Of course, in SRAM a state is stored using a rather definitive latch-based circuit, whereas both traditional DRAM and these new types have to store a certain number of electrons.

So far, the Z2RAM design is struggling with stability issues, keeping it firmly stuck in the R&D labs for now. As the company behind it has attached itself firmly to the AI ecosystem, it probably at least stands to attract a lot of funding. If they do manage to bring it to the market, it could mean SRAM-like latencies at DRAM-like densities, which would be rather nifty.

Want to really learn about DRAM? Try building your own.

ESP32 DevKit Becomes Retro-Style Desk Gadget

Some days you want to break out KiCAD and go an an epic journey of hardware hacking. Other days, you look at the myriad dev kits on the market, and one of them makes you say “I can work with that”– and the Phosphor desk gadget, by [melihkoray] and his imaginary amigo Claude, was evidently conceived on one of those days.

The only hardware here is the Waveshare ESP32-S3-Touch-LCD-3.49, which provides a beyond-ultrawide 640×172 candybar-shaped touchscreen with, well, you guessed it — an ESP32-S3, plus a few buttons and an accelerometer, all of which this project uses. Along with the almost-requisite clock, timer and weather display, there’s also an internet radio player and a handful of games. We particularly like the use of the accelerometer in the blackjack game, where you hit or sit by knocking the table.

Continue reading “ESP32 DevKit Becomes Retro-Style Desk Gadget” →

A Detailed Breakdown Of The 2021 Texas Power Crisis

Although the Texas grid operator managed to prevent a full-blown collapse of the electrical grid in February 2021, they only managed to do so after exhausting every measure at their disposal, while the emergency kept happily zipping through the neatly lined up holes in the stack of cheese slices. These events, what led up to them and the conclusions of the official investigative report are covered in a detailed breakdown by [Jordan], also known as [The Electric Brit].

The most obvious problem was the lack of cold weather proofing, which during Winter Storm Uri set in motion something that would end up costing the lives of hundreds of people. The sudden extreme freezing weather conditions affected all generators on the grid, with wind turbines suffering from iced-up blades that led to loss of capacity and protection mechanisms kicking in due to e.g. excess vibrations caused by unbalanced blades.

For gas-powered plants the issues were many, with them relying on a constant supply of pressurized gas and thus having many weak points at processing and extraction sites. Even one nuclear power unit tripped due to an external feedwater sensor malfunctioning, highlighting the importance of weatherproofing auxiliary systems, with this also taking out some solar capacity.

Although often called a blackout, the grid operator managed to disconnect enough load to limp by on the remaining generators to keep part of the grid functional. Yet with 20 GW disconnected, the impact on the Texan population was severe, trying to survive in houses not built to withstand temperatures down to -20°C.

Perhaps most inexcusable of this event was that previous events in 1989 and again in 2011 showed the need to better prepare, yet with the short memory of the politicians and populace at large those lessons were repeatedly forgotten, including the benefits of having more interconnects with the wider US grids.

Keeping a large grid stable is a delicate balance between voltage, frequency and reactive power. Usually this goes well, but as the 2003 Northeast Blackout showed, sometimes the holes line up perfectly and all you can do is hold on for dear life. If you’re lucky the crisis happens during pleasant weather as in 2003 or with the 2025 Iberian peninsula blackout, rather than during an extreme winter storm.

Although the idea of using electric cars as grid-level backup is rather daft, they can be very useful to power one’s home during an outage, providing a lot of power without the risks of e.g. gas-powered generators.

Continue reading “A Detailed Breakdown Of The 2021 Texas Power Crisis” →

ESP32 Remote Access Done Light

The team behind Pinscope had a problem. They needed an ESP32 to stay securely connected to a server, but they didn’t have enough spare RAM on the chip to do TLS, what with everything else going on. Thus, they whipped up a useful workaround to get remote access on an ESP32 without TLS.

The team noted they didn’t need the general functionality of TLS. See, TLS is great for connecting any client and server securely with certificates, but it’s a bit heavy when you’re working with a device that only needs to connect to one server for maintenance. The team decided the device just needed to ID whether it was talking to the real server, it must ensure credentials are sent over the wire encrypted, and messages should not be able to be replayed, read, reordered, or otherwise changed while in transit.

The solution to this problem was the Noise protocol. Specifically, Noise_NK_25519_ChaChaPoly_SHA256, where the server uses a static key which the device knows in advance. Since only the holder of the server’s private key can properly finish a handshake, the device knows it’s talking to the real server, and the entire handshake takes just 0.3 seconds on the ESP32, with just 100 bytes sent over the wire. The results are compelling. The ESP32 needed 23.6 KB of RAM to stay connected via TLS, while this dropped to just 9.4 KB using the Noise protocol.

If you need to lighten the burden on a remotely-connected ESP32, you might find this work very useful. Files are on Github for the curious.

Continue reading “ESP32 Remote Access Done Light” →