Home
Welcome
Information


FPGA projects - Basic
Music box
LED displays
Pong game
R/C servos
Text LCD module
Quadrature decoder
PWM and one-bit DAC
Debouncer
Crossing clock domains
The art of counting
External contributions

Interfaces
RS-232
JTAG
I2C
EPP
SPI
PCI
PCI Express
Ethernet
HDMI
SDRAM

Advanced
Digital oscilloscope
Graphic LCD panel
Direct Digital Synthesis
CNC steppers
Spoc CPU core

Hands-on
A simple oscilloscope


FPGA introduction
What are FPGAs?
How FPGAs work
Internal RAM
FPGA pins
Clocks and global lines
Download cables
Configuration
Learn more

FPGA software
Design software
Design-entry
Simulation
Pin assignment
Synthesis and P&R

FPGA electronic
SMD technology
Crystals and oscillators

HDL info
HDL tutorials
Verilog tips
VHDL tips

Quick-start guides
ISE
Quartus-II

Site
Links
HDL tutorials
Forum


Music box

Here we teach our FPGA how to play sounds and music.
We start by generating a single tone. Then slowly more fun stuff like producing a police siren and play a tune.

You can listen to the sound produced by clicking on the speaker icon. For example here's the "police siren" .

The hardware

A Pluto FPGA board, a speaker and a 1KΩ resistor are used for this project.

A more formal representation looks like this:

The oscillator provides a fixed frequency to the FPGA. The FPGA divides the fixed frequency to drive an IO. The IO is connected to a speaker through the 1KΩ resistor. By changing the IO frequency, the FPGA produces different sounds.

The HDL design

The description is split into 3 parts:

>>> NEXT - part 1: Music box - part 1 >>>



This page was last updated on February 12 2014.