Produce music from PIC

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Produce music from PIC

Postby shahrul » Wed Jun 17, 2009 3:31 pm

Hello,
anybody know how to produce music from PIC?
Let say, I connect speaker directly to the Digital Output of PIC.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Produce music from PIC

Postby sich » Tue Jun 30, 2009 8:07 pm

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.
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 604
Joined: Tue Apr 21, 2009 2:15 pm

Re: Produce music from PIC

Postby shahrul » Tue Jun 30, 2009 9:47 pm

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.

Ok, I want try that method.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Produce music from PIC

Postby sahniana » Wed Jul 01, 2009 4:35 pm

is there are any other way to produce music?
sahniana
Apprentice
 
Posts: 44
Joined: Wed Jul 01, 2009 4:30 pm

Re: Produce music from PIC

Postby shahrul » Wed Jan 27, 2010 5:42 pm

I have found the music coding. Use series capacitor and speaker into digital output. Programming like compose nokia music code.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Produce music from PIC

Postby sich » Wed Jan 27, 2010 9:04 pm

Ooo...mind to share? :D
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 604
Joined: Tue Apr 21, 2009 2:15 pm

Re: Produce music from PIC

Postby shahrul » Thu Jan 28, 2010 10:40 am

sich WROTE:Ooo...mind to share? :D

Yes, see this coding example, PIC Music
You can connect audio amplifier to the output pin for louder tone.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Produce music from PIC

Postby ABSF » Sun Jan 23, 2011 1:03 pm

shahrul WROTE:
sich WROTE:Ooo...mind to share? :D

Yes, see this coding example, PIC Music
You can connect audio amplifier to the output pin for louder tone.


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
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: Produce music from PIC

Postby shahrul » Sun Jan 23, 2011 6:03 pm

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

I change the lesson number. This the link Lesson Ringtone.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: Produce music from PIC

Postby ABSF » Sun Jan 23, 2011 7:15 pm

Thank you very much, Shahrul :D

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Next

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest

cron