Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
1,062 Views

cyclone II buzzer or sound

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
Highlighted
Honored Contributor I
43 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
Highlighted
Honored Contributor I
43 Views

what is GPIO?

0 Kudos
Highlighted
Honored Contributor I
43 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
Highlighted
Honored Contributor I
43 Views

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

0 Kudos