TryGOLD- Free

Reviving Frogger's Retro Audio with a Programmable Sound Generator - Using an AY-3-8910 Chip and a Z80 Emulator on a Raspberry Pi
Circuit Cellar|February 2025
The Frogger arcade video game is considered one of the best of all time. Chris shares his journey to bring the nostalgic sounds of Frogger back to life using the classic AY-3-8910 sound chip and a modern Raspberry Pi setup with coding insights and a fix to the original game's music glitch.
- Chris Cantrell
Reviving Frogger's Retro Audio with a Programmable Sound Generator - Using an AY-3-8910 Chip and a Z80 Emulator on a Raspberry Pi

I have become that guy—the old man at the office who bores the young engineers with tales of how things used to be. DigiKey? The Internet? Back in my day (the early 1980s), we rode our bikes to RadioShack and browsed racks of electronic components by hand—resistors, capacitors, breadboards, LEDs—you name it. I remember the Forrest Mims engineering notebooks on a shelf as I walked in. These were our definitive guides to electronics, op amps, and logic gates. You can still read them on the Web today. Next to the bookshelf was the wall of chips—analog and digital ICs in cardboard packaging, with transparent plastic bubbles so you could see the parts before you bought them. And don't forget to use your battery-of-the-month-club card to get a free battery when you check out.

It was on that wall of chips that I first met my old friend, the AY-3-8910 programmable sound generator. It's a 40-pin DIP chip, packed with features: three voices, a noise generator, and a complex envelope control. Over the years, it has been with me on many projects, including an LED movie project I wrote about in Circuit Cellar #239, June 2010 [1].

Here I am with another retro project featuring the sound chip. In this article, I'll show you how I used Python to talk to my AY-3-8910 from a Raspberry Pi. That isn't revolutionary; you'll find many hardware and software examples on the Internet. But my project has a cool twist.

I'll show you how I ran the original binary code from the Frogger arcade machine in a Z80 emulator on my Pi. For readers who weren't around in the 1980s, Frogger is an action game, the objective of which is to get several little frogs home safely—by keeping them from drowning in a river, or becoming road kill, or the lunch of a snake or alligator. (You can still buy “refurbished” original Frogger games on Amazon, and can even play it as a board game, on PS1, and online.)

This story is from the {{IssueName}} edition of {{MagazineName}}.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the {{IssueName}} edition of {{MagazineName}}.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM CIRCUIT CELLARView all
HSYCO Unveils New BACnet Server Driver for Enhanced Building Automation
Circuit Cellar

HSYCO Unveils New BACnet Server Driver for Enhanced Building Automation

HSYCO, a leading provider of integrated building management solutions, is excited to announce the release of its new BACnet Server driver.

time-read
1 min  |
March 2025
Longsys Launches 7.2mm Subsize eMMC, Breaking the Physical Space Constraints of AI Wearables
Circuit Cellar

Longsys Launches 7.2mm Subsize eMMC, Breaking the Physical Space Constraints of AI Wearables

In the design of wearable devices, every millimeter matters.

time-read
2 mins  |
March 2025
The Future of Voice-Enabled AI Industry Advancements in MEMS Microphones for Voice AI
Circuit Cellar

The Future of Voice-Enabled AI Industry Advancements in MEMS Microphones for Voice AI

Acoustic Activity Detection and High Acoustic Overload Point Transform Voice Interaction Advancements in MEMS microphones are enhancing voiceenabled AI technologies across various consumer electronics.

time-read
4 mins  |
March 2025
Exploring the RP2350 Security
Circuit Cellar

Exploring the RP2350 Security

Raspberry Pi's Novel \"Security through Transparency\" Approach

time-read
8 mins  |
March 2025
Learn Lisp Programming Using MCUS
Circuit Cellar

Learn Lisp Programming Using MCUS

Part 3—Forward Kinematics in µLisp

time-read
10+ mins  |
March 2025
Pison and STMicroelectronics Announce Timex as Neural Sensor Partner, Ushering a New Era of Neurocognitive Wearables
Circuit Cellar

Pison and STMicroelectronics Announce Timex as Neural Sensor Partner, Ushering a New Era of Neurocognitive Wearables

Pison, the trailblazer in AI-powered neural sensors for neurocognitive health, wellness, and gesture control, announced it has begun licensing its innovative neural sensor to leading smartwatch and wearable brands.

time-read
1 min  |
March 2025
Datasheet: DSPs and DSCs
Circuit Cellar

Datasheet: DSPs and DSCs

Smarter Algorithms and Beyond

time-read
7 mins  |
March 2025
An Air Quality Monitor with a Blues Satellite Link Module
Circuit Cellar

An Air Quality Monitor with a Blues Satellite Link Module

Brian had no sooner finished the review of Blues' LoRa Notecard when the new Starnote module was introduced. This module allows an IoT device to link to a geosynchronous satellite, for situations in which neither WiFi nor Cellular data links are operational. This article describes a project using the Starnote module.

time-read
10+ mins  |
March 2025
Create an AI-Driven Smart Home Security System
Circuit Cellar

Create an AI-Driven Smart Home Security System

Part 1- Setup and First Steps of the Raspberry Pi AI Kit

time-read
10+ mins  |
March 2025
Wearable Devices Announces Availability of its Mudra Link Neural Gesture-Control Wristband
Circuit Cellar

Wearable Devices Announces Availability of its Mudra Link Neural Gesture-Control Wristband

Wearable Devices, Ltd., announced the general availability of its Mudra Link, the first neural wristband for Android, macOS, and Windows devices.

time-read
1 min  |
March 2025

We use cookies to provide and improve our services. By using our site, you consent to cookies. Learn more