8-Tracks Are Back? They Are In My House

What was the worst thing about the 70s? Some might say the oil crisis, inflation, or even disco. Others might tell you it was 8-track tapes, no matter what was on them. I’ve heard that the side of the road was littered with dead 8-tracks. But for a while, they were the only practical way to have music in the car that didn’t come from the AM/FM radio.

If you know me at all, you know that I can’t live without music. I’m always trying to expand my collection by any means necessary, and that includes any format I can play at home. Until recently, that list included vinyl, cassettes, mini-discs, and CDs. I had an 8-track player about 20 years ago — a portable Toyo that stopped working or something. Since then, I’ve wanted another one so I can collect tapes again. Only this time around, I’m trying to do it right by cleaning and restoring them instead of just shoving them in the player willy-nilly.

Update: I Found a Player

A small 8-track player and equally small speakers, plus a stack of VHS tapes.
I have since cleaned it.

A couple of weeks ago, I was at an estate sale and I found a little stereo component player and speakers. There was no receiver in sight. I tested the player with the speakers and bought them for $15 total because it was 75% off day and they were overpriced originally. While I was still at the sale, I hooked it up to the little speakers and made sure it played and changed programs.

Well, I got it home and it no longer made sound or changed programs. I thought about the play head inside and how dirty it must be, based on the smoker residue on the front plate of the player. Sure enough, I blackened a few Q-tips and it started playing sweet tunes again. This is when I figured out it wouldn’t change programs anymore.

I found I couldn’t get very far into the player, but I was able to squirt some contact cleaner into the program selector switch. After many more desperate button presses, it finally started changing programs again. Hooray!

I feel I got lucky. If you want to read about an 8-track player teardown, check out Jenny List’s awesome article. Continue reading “8-Tracks Are Back? They Are In My House”

Comparing Those Ten Cent Microcontrollers

If you follow the world of microcontrollers, then you’ll probably be familiar with the most recent crop of ten cent parts. They bring power and features previously the preserve of much more expensive chips into the super-budget arena, and they’re appearing in plenty of projects on these pages.

If you’re not familiar with them it can seem daunting to decide which one to use, so to help you [Zach of All Trades] is comparing two of the more common ones. The CH32V003 with a RISC-V core and the PY32F002 with an ARM Cortex M0+ core are both pretty similar on paper, but which should you use?

The video below gives a run-down of each part along with some demonstrations before making its conclusions. The ARM-based part isn’t as quick as the RISC-V one but has a slight edge on peripherals, while the support is where a potential winner emerges in the shape of the CH32. That should be the last word, but for that the PY32 has the distance advantage over its rival of ready availability.

So this look at two families of cheap microcontrollers reveals the pros and cons of each, but in reality it provides an introduction to two sets of powerful chips for pennies.

As we’ve observed before, there are more chips to be found in this market.

Continue reading “Comparing Those Ten Cent Microcontrollers”

A Guide To Running Your First Docker Container

While most of us have likely spun up a virtual machine (VM) for one reason or another, venturing into the world of containerization with software like Docker is a little trickier. While the tools Docker provides are powerful, maintain many of the benefits of virtualization, and don’t use as many system resources as a VM, it can be harder to get the hang of setting up and maintaining containers than it generally is to run a few virtual machines. If you’ve been hesitant to try it out, this guide to getting a Docker container up and running is worth a look.

The guide goes over the basics of how Docker works to share system resources between containers, including some discussion on the difference between images and containers, where containers can store files on the host system, and how they use networking resources. From there the guide touches on installing Docker within a Debian Linux system. But where it really shines is demonstrating how to use Docker Compose to configure a container and get it running. Docker Compose is a file that configures a number of containers and their options, making it easy to deploy those containers to other machines fairly straightforward, and understanding it is key to making your experience learning Docker a smooth one.

While the guide goes through setting up a self-hosted document management program called Paperless, it’s pretty easy to expand this to other services you might want to host on your own as well. For example, the DNS-level ad-blocking software Pi-Hole which is generally run on a Raspberry Pi can be containerized and run on a computer or server you might already have in your home, freeing up your Pi to do other things. And although it’s a little more involved you can always build your own containers too as our own [Ben James] discussed back in 2018.

Fixing Issues With Knockoff Altera USB Blasters

Using an external MCU as a crude clock source for the Altera CPLD. (Credit: [Doug Brown])
One exciting feature of hardware development involving MCUs and FPGAs is that you all too often need specific tools to program them, with [Doug Brown] suffering a price tag aneurysm after checking the cost of an official Altera/Intel USB Blaster (yours for $300) to program a MAX 10 FPGA device with. This led him naturally down the path of exploring alternatives, with the $69 Terasic version rejected for ‘being too expensive’ and opting instead for the Waveshare USB Blaster V2, at a regretful $34. The amazing feature of this USB Blaster clone is that while it works perfectly fine under Windows, it works at most intermittently under Linux.

This led [Doug] down the path of reverse-engineering and diagnosing the problem, ultimately throwing in the towel and downclocking the Altera CPLD inside the adapter after finding that it was running a smidge faster than the usual 6 MHz. This was accomplished initially by wiring in an external MCU as a crude (and inaccurate) clock source, but will be replaced with a 12 MHz oscillator later on. Exactly why the problem only exists on Linux and not on Windows will remain a mystery, with Waveshare support also being clueless.

Undeterred, [Doug] then gambled on a $9 USB Blaster clone (pictured above), which turned out to be not only completely non-functional, but also caused an instant BSOD on Windows, presumably due to the faked FTDI USB functionality tripping up the Windows FTDI driver. This got fixed by flashing custom firmware by [Vladimir Duan] to the WCH CH552G-based board after some modifications shared in a project fork. This variety of clone adapters can have a range of MCUs inside, ranging from this WCH one to STM32 and PIC MCUs, with very similar labels on the case. While cracking one open we had lying around, we found a PIC18 inside, but if you end up with a CH552G-based one, this would appear to fully fix it. Which isn’t bad for the merest fraction of the official adapter.

Thanks to [mip] for the tip.

A LEGO Orrery

We aren’t sure how accurate you can get with LEGO, but a building block orrery looks cool, if nothing else. [Marian42] saw one done a few years ago and decided to build a version with a different mechanism. At first, the plan was to use some 3D printed fixtures, but the final product is made entirely from LEGO bricks. Very impressive. The video below shows that it has been complete for awhile, but the write-up that goes into great detail has only just arrived and it was worth the wait.

This is one of those things that seems simple if you don’t think too hard about it. However, when you sit down to actually do it, there are a number of challenges. For one thing, the Earth tilts at 23.5 degrees, and as the planet rotates, the tilt stays in the same direction, making it tricky to model mechanically.

The moon also has a 5.15 degree inclination, but since that’s hard to notice at this scale, the LEGO orrery exaggerates it. So, the Moon’s track has its own set of design problems. The whole thing has to rotate on a concentric shaft, which is also tricky to get right with kids’ building blocks.

Compared to the last orrery we saw, this one is huge. We’ve always been partial to ones that you have to look up to.

Continue reading “A LEGO Orrery”

Hackaday Links Column Banner

Hackaday Links: June 9, 2024

We’ve been harping a lot lately about the effort by carmakers to kill off AM radio, ostensibly because making EVs that don’t emit enough electromagnetic interference to swamp broadcast signals is a practical impossibility. In the US, push-back from lawmakers — no doubt spurred by radio industry lobbyists — has put the brakes on the move a bit, on the understandable grounds that an entire emergency communication system largely centered around AM radio has been in place for the last seven decades or so. Not so in Japan, though, as thirteen of the nation’s 47 broadcasters have voluntarily shut down their AM transmitters in what’s billed as an “impact study” by the Ministry of Internal Affairs and Communications. The request for the study actually came from the broadcasters, with one being quoted in a hearing on the matter as “hop[ing] that AM broadcasting will be promptly discontinued.” So the writing is apparently on the wall for AM radio in Japan.

Continue reading “Hackaday Links: June 9, 2024”

Making Intel Mad, Retrocomputing Edition

Intel has had a deathgrip on the PC world since the standardization around the software and hardware available on IBM boxes in the 90s. And if you think you’re free of them because you have an AMD chip, that’s just Intel’s instruction set with a different badge on the silicon. At least AMD licenses it, though — in the 80s there was another game in town that didn’t exactly ask for permission before implementing, and improving upon, the Intel chips available at the time.

The NEC V20 CPU was a chip that was a drop-in replacement for the Intel 8088 and made some performance improvements to it as well. Even though the 186 and 286 were available at the time of its release, this was an era before planned obsolescence as a business model was king so there were plenty of 8088 systems still working and relevant that could take advantage of this upgrade. In fact, the V20 was able to implement some of the improved instructions from these more modern chips. And this wasn’t an expensive upgrade either, with kits starting around $16 at the time which is about $50 today, adjusting for inflation.

This deep dive into the V20 isn’t limited to a history lesson and technological discussion, though. There’s also a project based on Arduino which makes use of the 8088 with some upgrades to support the NEC V20 and a test suite for a V20 emulator as well.

If you had an original IBM with one of these chips, though, things weren’t all smooth sailing for this straightforward upgrade at the time. A years-long legal battle ensued over the contents of the V20 microcode and whether or not it constituted copyright infringement. Intel was able to drag the process out long enough that by the time the lawsuit settled, the chips were relatively obsolete, leaving the NEC V20 to sit firmly in retrocomputing (and legal) history.