FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits

cyclone II buzzer or sound

Altera_Forum
Honored Contributor II
1,980 Views

i am using the cyclone II DE2 board to do an assignment with the title alarm clock... normally we are using the LED to represent the alarm sound... i would like to ask izit possible that make DE2 playing some sound or any other way to perform it?

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
961 Views

There is a CODEC chip on the DE2 board which will allow you to play (and record) sounds, but thats significantly harder than making an LED turn on. 

 

Your best bet is to buy a piezo electric buzzer and attach it to one of the GPIOs.
0 Kudos
Altera_Forum
Honored Contributor II
961 Views

what is GPIO?

0 Kudos
Altera_Forum
Honored Contributor II
961 Views

Did you use NIOS II for alarm clock or direct HW? 

 

I think you need to use NIOS II and right drivers to initialize and use CODEC chip. 

 

Easiest way is to get Piezo buzzer and control it with selected GPIO. 

 

If you want to use IO pin to audio output for amplifier then this may help. Examples are in Verilog. 

http://www.fpga4fun.com/musicbox.html 

 

Edit: 

GPIO (General Purpose Input Output). Usually mean pin in FPGA.
0 Kudos
Altera_Forum
Honored Contributor II
961 Views

In this context, the GPIOs are those two 40 pin connectors on the DE2.

0 Kudos
Reply