2023 Halloween Hackfest: Treat Trough Of Terror Is Actually Pretty Cute

Even though it seems the worst of COVID has passed, October generally kicks off cold and flu season, so why not continue to pass out Halloween treats in a socially-distanced fashion?

That is, of course the idea behind [Gord Payne]’s Halloween Treat Trough of Terror. Lay a treat at the top of the trough and it will activate the LED strips that follow the treat down to the end, as well as some spooky sounds. The treat in question is detected by an SR-04 ultrasonic distance sensor connected to an Arduino Nano.

All in all this was a highly successful build as far as neighborhood entertainment value goes. Toddlers stared in awe at the blinkenlights, teenagers proclaimed it ‘sick’, and we can only assume that the adults were likely happy to see something aimed at kids that’s not scary.

[Gord] has a nice how-to if you want to build your own, and of course, the Arduino sketch is available. Be sure to check it out in action after the break.

Don’t have room to build a treat slide? Here’s a socially-distanced dispenser that lets them stomp a giant button.

Continue reading “2023 Halloween Hackfest: Treat Trough Of Terror Is Actually Pretty Cute”

Bus Sniffing The Model 5150 For Better Emulation

At the risk of stating the obvious, a PC is more than just its processor. And if you want to accurately emulate what’s going on inside the CPU, you’d do well to pay attention to the rest of the machine, as [GloriousCow] shows us by bus-sniffing the original IBM Model 5150.

A little background is perhaps in order. Earlier this year, [GloriousCow] revealed MartyPC, the cycle-accurate 8088 emulator written entirely in Rust. A cycle-accurate emulation of the original IBM PC is perhaps a bit overkill, unless of course you need to run something like Area 5150, a demo that stretches what’s possible with the original PC architecture but is notoriously finicky about what hardware it runs on.

Getting Area 5150 running on an emulator wasn’t enough for [GloriousCow], though, so a deep dive into exactly what’s happening on the bus of an original IBM Model 5150 was in order. After toying with and wisely dismissing several homebrew logic analyzer solutions, a DSLogic U3Pro32 logic analyzer was drafted into the project.

Fitting the probes for the 32-channel instrument could have been a problem except for the rarely populated socket for the 8087 floating-point coprocessor on the motherboard. A custom adapter gave access to most of the interesting lines, including address and data buses, while a few more signals, like the CGA sync lines, were tapped directly off the video card.

Capturing one second of operation yielded a whopping 1.48 GB CSV file, but a little massaging with Python trimmed the file considerably. That’s when the real fun began, strangely enough in Excel, which [GloriousCow] used as an ad hoc but quite effective visualization tool, thanks to the clever use of custom formatting. We especially like the column that shows low-to-high transitions as a square wave — going down the column, sure, but still really useful.

The whole thing is a powerful toolkit for exploring the action on the bus during the execution of Area 5150, only part of which [GloriousCow] has undertaken as yet. We’ll be eagerly awaiting the next steps on this one — maybe it’ll even help get the demo running as well as 8088MPH on a modded Book8088.

Review: LibrePCB Hits Version 1.0

Nearly three years ago at the start of 2020 and before the pandemic hit, we took a look at an up-and-coming player in the world of PCB design. LibrePCB is by no means as old as the more established players, but at the time it was joining the ranks of open-source EDA packages with its first early stable releases. It showed a lot of promise but was still a little rough around the edges back then, but in the years since it’s advanced to the extent that in September they released version 1.0. That’s a significant moment for any open source package, so it’s time to return and take another look. It’s a cross-platform package with builds available for Linux, Windows, MacOS and FreeBSD, of which I needed the Linux version. There are one or two options to choose from, I went for the appImage as probably the least trouble. Very quickly I was in a new EDA package, and I set out to make a simple Schmitt trigger oscillator as a test project. Continue reading “Review: LibrePCB Hits Version 1.0”

Metamaterial Enables Topological Pumping Of Elastic Surface Waves

Although it is generally assumed that surface elastic waves (vibrations) — such as those of earthquakes — will travel mostly unimpeded until their energy dissipates, there are ways to ‘steer’ this energy using metamaterials.

Time response of the topological surface wave transport.(A to C). The magnitude of total displacement field at 0.5 ms, 2.5 ms, and 4 ms, respectively. A 50-cycle tone burst signal centered at 41.88 kHz is simulated on the bottom supercell. (Wang et al., 2023)
Time response of the topological surface wave transport.
(A to C). The magnitude of total displacement field at 0.5 ms, 2.5 ms, and 4 ms, respectively. A 50-cycle tone burst signal centered at 41.88 kHz is simulated on the bottom supercell. (Wang et al., 2023)

A recent study by [Shaoyun Wang] and colleagues in Science Advances details how a carefully modelled grouping of columns creates what is termed a synthetic dimension. In their experimental setup, it is demonstrated how an applied wave is guided across the metamaterial, rather than spreading out the way which we would expect to see in conventional materials.

Interestingly, in the paper it is also demonstrated how the same technique can be used to create a wave-splitter that diverts the wave energy in two distinct directions. Due to the innate resistance of this type of structure to defects, manufacturing it is not too complicated.

In this experiment the metamaterials were milled out of a block of aluminium on a CNC mill, which makes it seem eminently realistic that it could be scaled up and translated to other applications. Conceivably annoyances like vibrations from road traffic and heavy machinery, all the way up to the destructive energies of earthquakes could one day be reduced, redirected or even extinguished using structures as demonstrated here.

Chip Shortage Engineering: Misusing DIP Packages

After years of seeing people showing off and trading their badge Simple Add-Ons (SAOs) at Supercon, this year I finally decided to make one myself. Now for a first attempt, it would have been enough to come up with some cool PCB art and stick a few LEDs on it. But naturally I started with a concept that was far more ambitious than necessary, and before long, had convinced myself that the only way to do the thing justice was to have an onboard microcontroller.

My first thought was to go with the venerable ATtiny85, and since I already had a considerable stock of the classic eight-pin DIP MCUs on hand, that’s what I started prototyping with. After I had something working on the breadboard, the plan was to switch over to the SOIC-8 version of the chip which would be far more appropriate for something as small as an SAO.

Unfortunately, that’s where things got tricky. I quickly found that none of the major players actually had the SMD version of the chip in stock. Both DigiKey and Mouser said they didn’t expect to get more in until early 2024, and while Arrow briefly showed around 3,000 on hand, they were all gone by the time I checked back. But that was only half the problem — even if they had them, $1.50 a piece seems a hell of a lot of money for an 8-bit MCU with 8K of flash in 2023.

The whole thing was made all the more frustrating by the pile of DIP8 ATtiny85s sitting on the bench, mocking me. Under normal circumstances, using them in an SAO wouldn’t really be a problem, but eight hand-soldered leads popping through the front artwork would screw up the look I had in mind.

While brooding over the situation my eyes happened to fall on one of the chips I had been fiddling with, it’s legs badly bent from repeated trips through the programmer. Suddenly it occurred to me that maybe there was a way to use the parts I already had…

Continue reading “Chip Shortage Engineering: Misusing DIP Packages”

At Last! Faster OpenSCAD Rendering Is On The Horizon

Known as “The Programmers Solid 3D CAD Modeller”, OpenSCAD is used by many people for whom writing code comes more naturally than learning a fiddly user interface. It’s a very capable piece of software, but regular users will tell you that it can be rather slow when it comes to rendering your work. We’re very pleased to see that a fix for this has been produced courtesy of [@ochafik], can now be found as an experimental feature in nightly builds, and will in due course no doubt find its way to official releases.

Despite a modern computer invariably having a multi-core architecture, it might surprise you to find that OpenSCAD wasn’t able to take advantage of this previously. The above-linked thread spans over a decade of experimenting and contains some fascinating discussions if you’re prepared to wade through it, and culminates a few weeks ago in the announcement of the new feature giving access to multiple CPUs. We don’t have it yet, but it’s great to know it’s in the works and we’re looking forward to render time involving considerably less of a wait.

So many OpenSCAD projects have passed through these pages over the years, it’s safe to say that it has a significant user base among Hackaday readers. It’s still something an AI hasn’t mastered yet though.

Thanks [pca006132] for the tip.

Femtosecond Laser Clones Itself In Glass

When researchers at the Galatea laboratory in Switzerland set out to create a femtosecond laser in glass they weren’t certain it was going to work. To be precise, their goal was to create a femtosecond laser cavity using carefully aligned optics. Rather than using the traditional, discrete method, they used a commercial femtosecond laser to carve out the elements of the optical cavity in glass. The choice for glass came down to the low thermal expansion of this material, and it being transparent for the optical frequencies being targeted.

Generic concept of an “all-glass” optical device, with the various stages of fabrication. (Credit: Antoine Delgoffe et al., 2023)
Generic concept of an “all-glass” optical device, with the various stages of fabrication. (Credit: Antoine Delgoffe et al., 2023)

Even after using the existing laser to create the rough laser cavity, the resulting optical mirrors were not aligned properly, but this was all part of the plan.

By also adding slots that created a flexure mechanism, brief laser pulses could be used to gradually adjust the mirrors to create the perfect alignment. During subsequent testing of the newly created laser cavity it was found to be operating as expected. The original femtosecond laser had successfully created a new femtosecond laser.

Perhaps the most tantalizing aspect of this research is that this could enable much faster and ultimately cheaper production of such laser systems, especially once the tedious and currently completely manual mirror alignment procedure is automated. In addition, it raises the prospect of producing other types of optics including splitters and guides in a similar manner.