Hello,
anybody know how to produce music from PIC?
Let say, I connect speaker directly to the Digital Output of PIC.
sich WROTE:Hi Shahrul,
If u're talking about music like midi sound, u can use pwm method on the output pin that u connect to a buzzer. Of course u need a transistor between the pic o/p pin and the buzzer. Alter the pwm frequency and duty cycles will give u different pitch.
sich WROTE:Ooo...mind to share?
shahrul WROTE:sich WROTE:Ooo...mind to share?
Yes, see this coding example, PIC Music
You can connect audio amplifier to the output pin for louder tone.
ABSF WROTE:
Hi, Shahrul,
I went to your website and found the PIC Music was not there any more. Can you upload it again or give me the link where you get it from?
Allen
Users browsing this forum: No registered users and 1 guest