/tt02-play-tune

Plays a tune over a piezo speaker connected to GPIO pins

Primary LanguageVerilogApache License 2.0Apache-2.0

TinyTapeout tt02: Super Mario Tune on A Piezo Speaker

Overview

This Verilog chip design is made for the TinyTapout tt02 shuttle. It will play the Super Mario Tune over a Piezo Speaker connected across io_out[1:0]. The speaker is driven in differential PWM mode to increase its output power.

Listen To The Generated Sound

Listen to the Verilog Simulation PWM output for 3125Hz clock frequency here.

Chip Design of the Super Mario Tune player

Chip Design of the Super Mario Tune player (see also the interactive version of this design)

Verilog Design Files

Waveform of Verilog Simulation Output

Using GTKWave for visualization of Simulation Results: 25s of Verilog simulation - showing the Waveform output Zooming into the Waveform

Listen To The Generated Sound

Listen to the Verilog Simulation PWM output for 3125Hz clock frequency here.

How To Test

Provide 3125Hz clock on io_in[0], briefly hit reset io_in[1] (Low, High, Low) and io_out[1:0] will play a differential sound wave over piezo speaker (Super Mario Tune).

External Hardware Required

Piezo speaker connected across io_out[1:0]