54 Multiple Tunes on A Piezo Speaker

54 : Multiple Tunes on A Piezo Speaker

Select Project123456789ONSW2
  • Author: Jiaxun Yang
  • Description: Plays multiple Tunes over a Piezo Speaker connected across io_out[1:0]
  • GitHub repository
  • Clock: 10000 Hz

How it works

Converts an RTTL ringtone into verilog using Python - and plays it back using differential PWM modulation

How to test

Provide 10kHz clock on io_in[0], briefly hit reset io_in[1] (L->H->L) and io_out[1:0] will play a differential sound wave over piezo speaker, different tunes can be selected by different tune_sel inputs

External hardware

Piezo speaker connected across io_out[1:0]

IO

#InputOutput
0clockpiezo_speaker_p
1resetpiezo_speaker_n
2tune_sel0ledout_0
3tune_sel1ledout_1
4ledout_2
5ledout_3
6
7