Hey everybody,
So I am needing to incorporate a horn on my RC car. I want to make it as simple as possible, so I was planning on using my PSoC micro and using a PWM output to drive a speaker. I don't need a very "clean" output so I heard that this is the way to go.
I am getting confused on how to hook this circuit up. From what I have read, you take the PWM output and take it through a low pass RC filter. Do you then drive this speaker from the output of the RC filter? Does this low pass filter just get rid of the sharp transitions of the PWM output and make it more smooth?? And, since this PWM output varies from 0 - 5 V, wouldn't the DC voltage destroy my speaker? I really am looking for a solution that doesn't require a negative voltage. Here is the speaker that I am using
http://www.mallory-sonalert.com/specifications/PB-2015W.pdf
Also, what frequency should I set this PWM output as? Should I set it as the audible frequency that I want to hear coming from the speaker?
Thank you,
Joey
So I am needing to incorporate a horn on my RC car. I want to make it as simple as possible, so I was planning on using my PSoC micro and using a PWM output to drive a speaker. I don't need a very "clean" output so I heard that this is the way to go.
I am getting confused on how to hook this circuit up. From what I have read, you take the PWM output and take it through a low pass RC filter. Do you then drive this speaker from the output of the RC filter? Does this low pass filter just get rid of the sharp transitions of the PWM output and make it more smooth?? And, since this PWM output varies from 0 - 5 V, wouldn't the DC voltage destroy my speaker? I really am looking for a solution that doesn't require a negative voltage. Here is the speaker that I am using
http://www.mallory-sonalert.com/specifications/PB-2015W.pdf
Also, what frequency should I set this PWM output as? Should I set it as the audible frequency that I want to hear coming from the speaker?
Thank you,
Joey
Last edited: