| Electronics > Projects, Designs, and Technical Stuff |
| Active Buzzer with Arduino |
| (1/3) > >> |
| anishkgt:
Hi All, I am using an arduino to generate PWM tone. My question is is a transistor as a switch needed to drive the buzzer. Secondly would analogWrtie(Tone, Freq). I get a different tones as i adjust the Freq. Would this be possible with the attached car. Is it necessary to add a transistor and a diode. |
| hamster_nz:
Without the details of your buzzer, it is highly likely that the answer is no. Most buzzers have a fixed frequency (e.g. something like https://www.jaycar.co.nz/mini-piezo-buzzer-3-16v/p/AB3462) You would need to use a speaker for the Arduino to be able to control frequency. |
| Mechatrommer:
Buzzer is quite narrow band compared to speaker, there is one sweet frequency that will generate loudest beep, 1khz or 2khz cant remember or it depends on buzzer type, you can go 1khz, 2khz or 3khz but beep will quickly attenuated beyond sweet spot. Your circuit will work given you break connection resistor to 5v and connect it to mcu pin. It wont work as in your picture, buzzer will burn without sound. Better use transistor as in the picture, better safe than sorry. |
| t1d:
You have the low side of the transistor going to "BZR." It should go to ground. |
| anishkgt:
A buzzer like this one https://www.digikey.com/product-detail/en/AI-1223-TWT-5V-2-R/668-1220-ND The tone library within the arduino works when connecting the buzzer to the ic at the high side. But would the tone work when connecting at the high side using the transistor ? Would it be affected when using a pnp transistor ? Www.Georgehobby.wordpress.com Equipments: DSO104z, Hakko FX888D, Brymen BM869s Sent from my iPhone using Tapatalk |
| Navigation |
| Message Index |
| Next page |