Essayer OR - Gratuit

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.)

Circuit Cellar

Cette histoire est tirée de l'édition February 2025 de Circuit Cellar.

Abonnez-vous à Magzter GOLD pour accéder à des milliers d'histoires premium sélectionnées et à plus de 9 000 magazines et journaux.

Déjà abonné ?

PLUS D'HISTOIRES DE Circuit Cellar

Circuit Cellar

Circuit Cellar

Bourns Announces New Micro Encoders Offering High Reliability in a Compact Design

Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced its PEC04 Series 4mm Incremental Micro Encoder, its PEC05 Series 5mm Incremental Micro Encoder and its Model PEC06, a 6mm Incremental Micro Encoder. Bourns new micro encoders provide position and speed information essential for control functions in a broad variety of electronic applications.

time to read

1 min

September 2025

Circuit Cellar

Circuit Cellar

Harwin Brings Through-Hole Retention to Industrial Kontrol Range of Connectors

Harwin has extended its Kontrol lineup of connectors for industrial and embedded applications, adding through-hole retention to further enhance resilience and board-level reliability in harsh operational environments. Harwin has added 72 new products to the industrial connector family, extending the range by 48%.

time to read

1 min

September 2025

Circuit Cellar

Circuit Cellar

Renesas Introduces 64-bit RZ/G3E MPU for High-Performance HMI Systems Requiring AI Acceleration and Edge Computing

Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, announced the launch of its new 64-bit RZ/G3E microprocessor (MPU), a general-purpose device optimized for high-performance Human Machine Interface (HMI) applications.

time to read

1 mins

September 2025

Circuit Cellar

Circuit Cellar

Build a Follower Counter for Social Media

See Real-Time Metrics Using an Arduino Yún

time to read

20 mins

September 2025

Circuit Cellar

Circuit Cellar

Nordic Semiconductor Announces Highly Integrated nPM3104 Power Management IC With Support For Small-Size Battery Products

Nordic Semiconductor announced the new nPM1304 Power Management IC (PMIC). Building on the success formula of the well-established nPM1300, the nPM1304 offers the ideal solution for space-constrained applications that require small batteries.

time to read

2 mins

September 2025

Circuit Cellar

Circuit Cellar

Chaos on Your Desktop

Build a Color-Pulsing Light Sphere Using a PIC or Raspberry Pi Pico MCU

time to read

9 mins

September 2025

Circuit Cellar

Circuit Cellar

NXP’s New Battery Cell Control IC Family Advances New Energy Solutions

NXP Semiconductors announced its new 18-channel Li-ion battery cell controller, the BMx7318/7518 IC family, designed for electric vehicle (EV) high-voltage battery management systems (HVBMS), industrial energy storage systems (ESS) and 48V battery management systems.

time to read

1 mins

September 2025

Circuit Cellar

Circuit Cellar

Autonomous Mobile Robots

Robots Moving to Their Own Beat

time to read

12 mins

September 2025

Circuit Cellar

Circuit Cellar

The DVM on Your Wrist

A Wireless Link Between A DVM and a Smart Watch

time to read

18 mins

September 2025

Circuit Cellar

Circuit Cellar

Control Your Local IoT Network from the Cloud

Secrets of “Cloud Relaying” Revealed

time to read

5 mins

September 2025

Listen

Translate

Share

-
+

Change font size