Help, please! Electronic Piano

Thread Starter

gabrielamortoza

Joined May 22, 2013
2
Hey, guys! I need to make a program in which I need to emulate a piano with seven buttons and a buzzer. I'm using pic16F877A and I need to make it with a timer0, so I can't use "Sound_play". The ideia is to change the frequency of the buzzer according to each button pressed. Does anyone have any idea of how can I do it?
 

MrChips

Joined Oct 2, 2009
30,708
The simplest method of generating a signal of known frequency is to use the timer to toggle an output pin.

Change the timer period depending on which key is pressed.
 
Top