From AM Signals to a Ghost Cat: Building Retro Radio Lab with Kiro

2026-12-05来源 dev.toEnglish
From AM Signals to a Ghost Cat: Building Retro Radio Lab with Kiro

This post is for the Kiroween 2026 hackathon.

I’m a third-year electrical engineering student in Taiwan, major is communications.

When decided to join Kiroween in November, I didn’t really know what to do. I wanted to make something related to my major, but also wanted it engaging. I had some experience with Python and MATLAB, but making a game was completely new to me.

I like games, animals, and old things. So I thought, why not make a game about fixing an old radio?

That eventually became Retro Radio Lab: Ghosts in the Frequency.

My first AM simulator

The first version looked nothing like the game now.

I started with Python and Streamlit. It was a very simple AM simulation with 200 Hz carrier and 10 Hz message signal, checking the FFT plot to see if there were three peaks at 190, 200, and 210 Hz.

At that time, there was no story or artwork. It just a graph and some controls. It look more like some project for a university homework.

I wanted to do something more with it.

Since I joined the Resurrection category, I thought about bringing an old radio back to life. But I also wanted a reason for the player to fix it. That’s where the idea of Bobo — a little cute ghost cat — came from.

A cat waiting for radio broadcast

The story takes place in an old radio repair workshop.

In November 1978, Bobo listened to the same radio program every night. One night, there was a storm. The radio broke right before the announcer saying goodnight.

Many years later, Bobo is still waiting.

The player have to fix the radio and help Bobo hear the broadcast again.

There are four engineering tasks in the game:

  • Frequency tuning
  • RF band-pass filtering
  • RC envelope detection
  • Audio low-pass filtering

I wanted the radio to actually work, I didn’t want to just play an audio when player turned the knob to correct position.

The game uses TypeScript and the Web Audio API. There are two simulated AM stations, noise, filters, an envelope detector, and FFT analysis. I used a scaled frequency plan with a sampling rate of 48 kHz. The signals are rendered offline in the browser.

One of my favorite part is the final broadcast. It goes through the receiver with the settings the player has adjusted during the game.

After all, the player has spent the whole game fixing that radio.

Bringing an old AM radio back to life.

I had to study while making the game

One little embarrassing thing about this is that I was still learning these topics in class.

When I started working on the receiver, I knew about AM modulation and band-pass filters, but hadn’t learn envelope detection yet.

I remember looking at the implementation tasks and having no idea what them meant. I had to ask AI to explain them to me, and this happened quite a lot during development.

Another problem was the game sometimes felt like a lab assignment. There were graphs, numbers, and instructions everywhere.

Even I found some parts confusing when I play it, how can a person who had never studied communications supposed to know?

I tried to improve the instruction and make the feedback easier to understand. I added audio comparisons so the player can hear the difference between settings.

I also made an engineering notebook. It was supposed to explain a few basic things about the radio, and ended up having eleven pages.

Making notebook was way more harder than I thought. I had to check the formulas, diagrams, and explanations. Sometimes I found that diagrams didn’t match the simulation, so I had to go back and change it.

I also add a Free Mode for people who just want to play with the receiver and don’t want to follow the story.

Learning while building.

How I used Kiro

I used Kiro mainly for the engineering side of the project.

There are three Specs in my repository:

  • AM Receiver Prototype
  • Receiver MVP DSP
  • Story Progression

Each Spec has requirements, a design document, and implementation tasks.

At first, I was overwhelmed by how much there had to read. The tasks were very detailed, and I didn’t understand all of them.

But once the project bigger, I was glad I had those documents.
I was using Kiro and Codex, so I needed a way to make sure they were working on the same project with the same rules.

I used Steering to write down things I wanted the implementation to follow. For example, the measurements had to come from actual calculations. The radio and the analyzer had to use the same receiver state. The story couldn’t continue just because a button was pressed. The engineering task actually had to pass.

I also wanted the last broadcast to go through the receiver, didn’t want this part to get replaced with direct audio playback later.

Having these rules saved me from having to explain the same things over and over again.

Organizing the project with Kiro Specs.

Agent Hooks

I set up four hook configurations for audio, DSP, and release reviews.

One of them, the Audio Asset Guard, found a problem near the end of development.

When the radio was detuned, the broadcast was supposed to become quieter. However, the gain calculation didn’t properly account for how the volume control worked.

I probably wouldn’t have noticed this just by playing the game.
Kiro helped me fix it and improve the tests.

I also configured the DSP Contract Guard and Release Readiness hooks.

Custom Agents

I made two custom agents:

  • RF & DSP Reviewer
  • Gameplay & Audio QA Reviewer

I used the RF & DSP Reviewer to check things like the filters, measurements, and task evaluation.
Sometimes the game looked good, but I wasn’t sure whether the engineering behind was right. Having a reviewer focused on that part was useful.

I kept the Specs, Steering files, hooks, and custom agent definitions in the GitHub repository.

Making a game is a lot of work

I thought the DSP part would take most of my time.

Then I started making the illustrations and working on the audio, I spent a lot of time trying to get the radio to look good. I had to separate the knobs and pointers from the radio so they could move separate in the game. I also had to check whether the frequency markings matched the tuning behavior.

Getting all the illustrations to have a similar style was another problem.
And then there was the radio announcer.

I used ElevenLabs for her voice. I wanted her to sound calm and warm, like someone you would enjoy listening to before going to sleep.
Some of the first versions sounded like English listening tests.

I kept changing the voice and instructions. Sometimes most of the recording sounded fine, but she suddenly became very cheerful in the middle of a sentence. It took quite a few tries to get a version I liked.

I also spent time looking for background music and sound effects, wanted the workshop be comfortable.
By this point, the project had become much bigger than the little AM simulator I started with.

Testing and breaking my own website

Since I used AI to write a lot of the code, I needed to test it.

I used Vitest and fast-check for the automated tests. They covered things like receiver settings, frequency mapping, filters, and story progression.

For some of the property-based tests, we also tried deliberately incorrect versions of the code. I wanted to know if the tests would actually fail when something was wrong.

The results of my final local release check were:

  • 999 tests passed
  • 1 test skipped
  • 0 tests failed

I was really happy about this, but I still had to publish the game.

Before release, AI-assisted code reviews found a problem with an audio file path. It worked locally, but it could cause problems when the game was hosted on GitHub Pages.

I fixed it with Kiro’s help, finally let the website working.

I decided to change the name of my GitHub repository from rrl to retro-radio-lab.

And the website broke.

I forgot to update the Vite base path. After spending so much time checking the DSP, audio, and gameplay, I managed to break the website by renaming a repository.

Fortunately, I fixed it before the deadline.

Almost a thousand passing tests!

What I learned

I used AI tools for this project. Kiro did much of the DSP implementation and technical verification. Codex helped with the frontend and gameplay. I used ChatGPT for the story, illustrations, and a lot of questions along the way. ElevenLabs was used for the announcer’s voice.

I didn’t write all the code myself, there are still parts of the code that I need to spend more time studying.

But I learned a lot about how to work with AI on a larger project.

Sometimes I knew what I wanted, but I didn’t know how to make it. Sometimes I didn’t even know how to describe what was wrong. I had to ask questions, learn more about the problem, and try again.

I also learned that just because something works doesn’t mean it’s doing what I think it’s doing.

I never thought I would spend so much time making a project about AM modulation. It’s something I usually see in lecture slides and exam questions.

Now I have a little game about it.
I’m happy that I got to use things from my communications classes in a project that also includes things I personally enjoy, like cute animals, music, illustrations, and storytelling.

There are still many things I want to improve, but for now, I’m just proud of myself that I finished it.

Try Retro Radio Lab:

Don’t need to install anything or create an account. I recommend playing on a computer with headphones.

Thank you to the Kiro team for giving me a reason to try making something like this.

And thank you for visiting Bobo’s little workshop!

Bobo finally feels at home

⸻

AI disclosure: I used ChatGPT to help draft and edit this article based on my own development experience and project records.

原文:https://www.a8q9.cn/en/article/from-am-signals-to-a-ghost-cat-building-retro-radio-lab-with-kiro-075482.html

相关文章