MoreRSS

site iconAndreasModify

Electrical engineer, musician, out and about on two wheels, read a lot of books, coffee-addict.
Please copy the RSS to your reader, or quickly subscribe to:

Inoreader Feedly Follow Feedbin Local Reader

Rss preview of Blog of Andreas

Old Computer Challenge 2026 Day 1 - Some Theory

2026-07-06 08:00:00

Yesterday I announced that I'm planning to build a USB-IR receiver for my media centre. Let's look in a bit more detail at what I'm trying to do here. I have three components:

  • An infrared receiver
  • An Arduino
  • A remote
An Arduino, an infrared sensor and an Apple remote
Infrared receiver, Arduino clone, Apple remote

I want to connect the infrared receiver to the Arduino so that the Arduino can receive commands I send from the remote, convert it to something the computer can easily understand (maybe by acting as a keyboard and sending keycodes) and pass it on to the computer (media centre) via USB.

The remote

This is just a basic Apple remote I had lying around. I think it came with the white Unibody Macbooks around 20 years ago, and some other devices as well. Mine I think came with a docking station for an iPod, with which it also works.

Once a key is pressed on an infrared remote, it rapidly pulses an infrared LED at a frequency of usually 38kHz (other frequencies in the range of 30kHz to 56kHz can be used, too) and sends out a few bytes of information which contain the ID of the key that's being pressed and maybe some other data. The simplest way to send digital data via light is to just code it as "light on means 1" and "light off means 0". That's not a very robust method of transmission though, so some other methods are usually used, like having a short pulse of light for a "0" and a long pulse for a "1".

We cannot see infrared light, but digital cameras can. You can point the camera of your phone at the front of an infrared remote and see the LED light up when you press a button:

The infrared LED of a remote as seen by a digital camera
The infrared LED of a remote as seen by a digital camera

The infrared receiver

This is a standard component, and there are many variants available. There's a good overview in the Arduino forum of the pinouts of the most common ones.

TSOP31238 IR receiver
TSOP31238 IR receiver

The one I have is a TSOP31238. It has three pins for GND, Vs (supply voltage) and OUT. How it works is you hook it up to power (3.3V or 5V) and when it receives a signal from an infrared remote, it will just send out the information it received as digital pulses on the OUT pin.

The frequency of the remote control and the IR receiver must match for them to work together. This is a 38kHz receiver, so I hope the remote works on 38kHz as well, but most do.

The Arduino

I have no idea when or where or why I got this, but I've had it in my parts bin for years. This is an Arduino clone called a Pro Micro. Arduino is a project started around 20 years ago by a few guys in Italy who wanted to make microcontroller programming easy, so they developed easy to use boards and greatly simplified the programming aspect. Since then, countless clones and derivatives of the original Arduino boards have appeared on the market. This one is equipped with an Atmel ATmega32U4 microcontroller (MCU, Micro Controller Unit) which runs at 16MHz, has 32KB of flash memory to store the program code, 2,5KB RAM and a 1KB EEPROM for data storage.

Arduino Pro Micro
Arduino Pro Micro

This board is really bare bones, it just contains the MCU itself, a crystal oscillator for the clock signal, a USB connector and it breaks out the MCUs pins into a more accessible form. It's just enough to make the microcontroller work.

What even is a microcontroller? Essentially it's a small computer on a single chip. It contains a CPU, program memory, RAM, some memory for persistent data storage and a number of interfaces to the outside world in the form of GPIO (General Purpose Input/Output) pins and more specialised interfaces like a UART (essentially RS232 serial port), analog to digital converter, and pins that speak various bus protocols like SPI, I2C, CAN, USB and so on. All in one chip which is small and runs at low power so it's perfect for embedding in devices where some kind of computing is needed.

If you're not familiar with microcontrollers, the specs above will sound crazy low compared to the phone or computer you're reading this on, but it's more than enough power for what I'm planning to do here. The most important part is that is has an integrated USB controller, so I can just hook it up to any PC without any fuzz. It also has a UART (serial port), so I could connect it to virtually any computer from the last 45 years or so, which is pretty amazing. This tiny thing can talk to your modern MacBook Ultra Turbo Pro Max Tim Cook Special Edition, but also to a Commodore 64.

Developing for a Microcontroller

Microcontroller development used to be pretty complicated, but thanks in no small part to the Arduino project it has gotten much easier.

What's needed is some kind of code editor, a compiler for the target architecture of the microcontroller (called a cross compiler) and some software to flash the compiled binary to the microcontroller.

In the past you had to cobble all these components together separately and try to get them to work (and for controllers that aren't mainstream you still have to), but for popular microcontroller boards like the Arduinos and their clones there's the Arduino IDE which brings everything in one package, ready to go.

There's one thing that is very different in a program on a microcontroller compared to a program that runs on an operating system: The program can never be allowed to terminate. As soon as it finishes, the controller enters an undefined state, because it isn't running any code anymore. And the only way to bring it back is a reset, either through a power toggle, an external reset circuit or an internal timer which resets the controller. So every microcontroller program will at some point enter an infinite loop which it never leaves.

I think that's enough theory for today; tomorrow we'll look at the Arduino IDE and start coding.

Old Computer Challenge 2026 - Make Something

2026-07-05 08:00:00

It's that time of the year again. For the past three years I participated in the old computer challenge every year, and I always had a lot of fun, so I wanted to do something this year, too. The topic for this year isn't strictly about old computers, but rather about making something yourself, to combat the onslaught of AI slop that we're all being subjected to on a daily basis.

I like this topic, and so I've been racking my brain without much success on what I could (and want to) make. I currently have a lot of time (thanks to some health issues), but not a lot of energy or ability to focus and work on something for a prolonged period of time (thanks to the same health issues...), so many things I would want to do are probably beyond my current abilities.

So I thought rather than torture myself trying to come up with something elaborate and then failing at it, I'll try my hands on something simple and fun. I'm going to use an Arduino to build a USB infrared receiver, so I can control my media centre (which is a Raspberry Pi running Kodi) with an infrared remote control. (I know I can attach the IR receiver to the Pi's GPIO pins directly, but using USB makes it more universal.)

That might sound complicated, and in the past it would have been, but thanks to Arduino and tons of available software libraries it should actually be pretty straight forward. I'm also a firmware developer by trade, so this falls way within my comfort zone.

I don't even have to buy anything, because all that's needed is an infrared receiver, a remote control and a random microcontroller board, of which I have way too many anyway. So I dug out a few parts I had lying around, and that's my project for this year. Make something usable out of the parts in the picture, and maybe 3D print an enclosure to make it look nice.

An Arduino, an infrared sensor and an Apple remote
Infrared sensor, Arduino clone, Apple remote

The goal here is to build something (semi)useful, but also to create a tutorial on how to get started building something with an Arduino, so that anyone who is interested in working with microcontrollers but is maybe a bit intimidated by it can follow along and see that it's actually fairly easy to get something going.

Should be fun. I'm going to get started now, I'll post updates throughout the week.


Continue here:

I bought a Sony Walkman

2026-07-04 08:00:00

It keeps happening. I can't control it. Sometimes, I feel nostalgic for some old piece of tech, and before I know what's happening, I'm already browsing eBay looking for one. That's how I ended up with an old Thinkpad from 2004 recently. And now it happened again, and so I'm now the proud owner of a Sony Cassette Walkman. Despite not having any tapes anymore....

Ok, so I got nostalgic for Walkmans (Walkmen?) and tapes recently, and as I was browsing eBay I found this one, sold as not working, and it cost only 17,50€ including shipping. It looks a little beat up, but I'm fine with that. In fact, I prefer it because I noticed that if I buy some retro hardware that still looks pristine, I'm hesitant to use it because I'm scared I will scratch it up. So when a device comes with some cosmetic damage already, that's perfect for me.

A Sony WM-EX521 Walkman
Sony WM-EX521

I also bought a tape, because what would I do with a Walkman without a tape? It's one of my favourite albums by Rush, Signals from 1982.

Signals by Rush on a tape
Rush, Signals, 1982

The Walkman is the Sony WM-EX521 from 2002, which is a pretty late model. It's not one of the classics from the 80s, but I really like the design, the case is made out of metal so it looks and feels really solid and with it being relatively young, I don't expect too many problems. In fact, I had a suspicion that the only thing that was wrong with it might be the belt. Tape drives have rubber belts in them which link the motor with the tape mechanism, and these wear out over time. They can become loose or lose their elasticity, some break and some also try to turn themselves back into crude oil, which leaves a giant mess behind.

So when the Walkman arrived, I opened the back to see how it looked on the inside, which required putting it on a heat plate for a few minutes to soften the adhesive, and then I could carefully insert a plastic tool between the frame and the back cover and start prying... nah, I'm kidding. This was made before all of that nonsense. You take out five screws and you're in. Which is how it should be.

Anyway, I took the back off, stuck a battery in, pressed play and I could see that the motor was spinning, but the belt was loose and wasn't moving. Suspicion confirmed, the belt was bad. Thankfully it was just worn out and hadn't disintegrated yet, so that's an easy fix.

I ordered a new belt here, which arrived a few days later from Portugal, and replaced the old one. I also sprayed some contact cleaner into the volume potentiometer while I was at it, because it sounded very noisy and scratchy. Here are some pictures, and you can see the old, worn out belt next to the new one. It's literally twice as long! No wonder it wasn't working anymore.

The inside of the Walkman
The inside of the Walkman
Two belts, one new, one worn out
New belt vs worn out old belt
After that was done I put in the Rush tape, pushed play, and success! The tape played. Walkman fixed!

There was one more problem though: the tape ran slow. I'm very familiar with these songs and I noticed pretty quickly that they sounded kind of slow and tired here. There is a trimmer on the circuit board which adjusts the playback speed, and there are special calibration tapes which have a tone of a precise frequency recorded on them, so you can connect the tape player to some measuring equipment and dial in the speed until the tape plays the tone at the right frequency.

I don't have such a tape however, so I did this: The first song on the album, Subdivisions, starts with a single note, played repeatedly on a synthesizer. I checked the version of the song on Youtube with a guitar tuning app and figured out that this note is an F#. So I played this part of the tape on the Walkman over and over again through a speaker and slowly adjusted the speed upwards until that note also showed as an F# on the tuner (it started out being close to E, so almost a semitone lower and slower than it should have been). This might not be the most precise way to calibrate the Walkman, but it is good enough for my taste.

Adjusting the playback speed
Adjusting the playback speed

Then I put the Walkman back together and I was done.

Except, it turned out I wasn't quite done yet. I played the tape for a bit, and at first it sounded fine, but after a few minutes it began to slow down and playback eventually stopped. And it wouldn't fast forward or rewind, either. I suspected that the tape might have been lying around unused for years, if not decades and as such might be a bit hard to turn. And maybe all it needed was to be wound back and forth a few times to loosen up.

Now, I could have done that with a pencil like we used to do, but I was too lazy, so I came up with a different solution: I 3D-printed a cog that fit into the tape, attached that to my battery powered drill and wound the tape back and forth a couple of times this way. And I'm happy to report that with this completely sensible and not at all stupidly overengineered solution, the tape plays perfectly now!

Loosening up the tape
I'm an engineer!

And with that, I now have a perfectly working Walkman again, something that I haven't had in more than 25 years. And I don't think I ever had a Sony.

So I guess now I have to go and buy some more tapes.

Linkdump No 114

2026-07-03 08:00:00

an animated 90s style GIF that has the word Links in green font on black background

I recently had a "phone support" call with my parents, where they needed help with their computers and smartphones and the internet router. They regularly ask me for help, because they're completely overwhelmed and out of their depth when it comes to modern technology, and it makes me sad to see how much they struggle with their devices. We have incredible technology these days; things that 40 or 50 years ago were pure science fiction, like a supercomputer that you carry around in your pocket and that is connected at all times to the rest of the world, can play music, can play movies, can run games, can record video... it can do virtually anything you can think of. And yet it's terrible, especially for elderly and non tech-savvy people.

Technology is supposed to make our life easier. That's why we have it. But somewhere in the last 20 years or so we completely abandoned this idea and created devices that are downright hostile to the user. They bombard us with notifications, demand our constant attention and insist that we make an account here, enter our personal data there, create a password (whoops, this one's not strong enough - try again!), solve a captcha, verify our identity and on and on and on. And my parents, who grew up at a time where the most complicated piece of tech they had at home was a black and white TV set that had ONE KNOB to select the channel are predictably completely overwhelmed by all this bullshit. It makes me so sad and angry to see this.

We really messed up here. The technology that we have today, as amazing as it is on paper, isn't making our life easier anymore. It's just creating headache after headache. It wasn't like this 20 years ago, and I hope it won't be like this 20 years from now. But today, unfortunately, we have to deal with it and I'm going to have many more support calls with my parents trying to help them whip their tech into doing what it's supposed to.

At least that gives us something to bond over as a family. Thanks, Silicon Valley.


Articles

  • Sony erases digital content from libraries; we’re reminded we don’t own what we buy
    Friendly reminder... if you "buy" something that isn't offered to you as a DRM-free download, you don't really own it and the vendor has probably given themselves permission somewhere in the 200 pages of terms and services that you didn't read that they are allowed to take it away whenever they feel like it.
  • Adversarial Communication
    "'AI' turns every conversation into a fight, because fighting is what they are good at." A list of things where AI is more or less openly acting as an adversary, be it in customer support, education or job automation. (via Tim Chase)

Software/Services

Videos

Around the Small Web

Linkdump No 113

2026-06-26 08:00:00

an animated 90s style GIF that has the word Links in green font on black background

It's July again! Soon, anyway. And this means two things: Heat waves (hate it) and computer shenanigans thanks to the Old Computer Challenge (love it). This is what I started this blog with three years ago, and I've participated every year since. Last year the community was a bit meh, and for a while it looked like nobody was interested this time, but Tekk came up with a nice concept and updated the website accordingly. This year's challenge is again not strictly defined, but I like the topic: Make something yourself, to combat the onslaught of AI slop we're being subjected to. I think that's a great idea, and I'm sure I'll come up with something and I hope some of you will, too.


Articles

Software/Services

Videos

  • I Revived MSN Messenger and Its Forgotten Companion Gadget! - YouTube
    Here's something I've never seen before... a plastic toy shaped like the MSN messenger icon, and when a message arrives it blinks and wiggles it's wings. It's cheap and plasticky and pointless, but it looks like fun. Remember when tech was fun?
  • 5 Monitors on a Commodore 128! - YouTube
    Connecting 5 monitors to a Commodore 128 and driving them all independently. Sounds impossible, but by splitting up the individual colour channels to different screens it can be done.
  • Dear AI Companies: Stop the “Doom Trolling” - YouTube
    Cal Newport makes the argument that either the AI company CEOs are truthful in saying that their invention will destroy the world, in which case they're awful humans for continuing to develop it, or they know that that's not true and they're lying through their teeth to keep the interest in their product high, in which case they're awful humans for lying out of nothing but sheer greed. Either way... awful.

Around the Small Web

Misc

  • MAGAZINE, HEFTE
    German again, sorry... but sometimes these links are also for me to remember. This is an archive of old computer magazines from the 80s and early 90s, focusing on the home computers of the era.

Linkdump No 112

2026-06-19 08:00:00

an animated 90s style GIF that has the word Links in green font on black background

I recently discovered that Bubbles offers the option to embed a widget on your website, to show how often your post has been upvoted and also to nudge people to go upvote in the first place. I'm not sure if I really want this on my blog and if it really has any kind of benefit... The idea behind it of course is to get your post in front of more eyes and increase your reach and visibility, and this leads back to the question why I write a blog in the first place. Is it just to get my thoughts out, or is it to have an "audience" and have people read what I write?
A little bit of both of course, but I'm never really sure where on this spectrum I really stand. But I thought I'd give it a try and see if I like it. It's all the way at the bottom and not particularly well integrated (yet) because I'm not good at web design, but it's there for now. What do you think, keep it or leave it? And do I have to do this influencer thing now where I tell you to like, comment, subscribe, upvote and share my post? Don't forget to turn on notifications and ring the bell so you don't miss anything!


Articles

Software/Services

Videos

Around the Small Web

  • AmigaOS 2: The Greatest Upgrade
    Datagubbe (still the best name ever) is back with another Amiga post. This time he takes a look at Workbench 2.0 and why it is vastly superior to it's predecessor.
  • "These Days I'd Rather Read a Book" | Brandon's Journal
    Despite being a movie enthusiast, modern movies are driving Brandon away from the cinema and towards reading books instead, and I can see why. There's very little in the cinema that interests me these days, either.

Misc