Output the simplest way

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 I want to connect a speaker of a buzzer as output. So that the speaker can produce sound. 

   

The only requirment is that I want to control the frequency of sound produced, is there any simplest way to set up?

0 Likes
1 Reply
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Yes, use a timer, and APIs to set/ change its period.

   

 

   

Also if using voice coil speaker, use clamp diodes on pin, or

   

better yet use a single transistor buffer with a clamp on speaker.

   

If you don't you will get transients on pin and blow up the part.

   

 

   

If you use latter, transistor, limit its base current with an R, same

   

for collector in series with speaker.

   

 

   

Regards, Dana.

0 Likes