I am using toneAC library to get maximum volume from my 50 Ohm speaker. I am using pins D9, D10 to drive the speaker in a double-ended confuguration. I have added some MOSFET's to furnish the necessary current. Here's my schematic. Anyone have a simpler schematic? Thanks.
You need to be careful of shoot though on the MOSFETs.
This is what I use:
You could consider a Boost Converter say 12v.
Then a simple MOSFET keying between 12V and GND.
but my speaker has 50 Ohms resistance. I would like to have 5V on speaker 1 when 0V is on speaker2 and vice versa.
You could consider a Boost Converter say 5v to 12v.
Then a simple MOSFET keying between 12V and GND.
Or get a piezo sonalert .
H-bridge module?
That's sort of what I did but manually with an additional PC daughter board. It works OK but it's a little complicated to wire up. Maybe I'll just leave it at that. The toneAC library forces pin 9 at 5V with pin 10 on 0V, then the inverse. This allows the speaker to always be active in a positive or negative current so I get the double of the volume instead of ON and OFF condition. Thought there might be a simpler way with only 1 NCHANNEL & 1 PCHANNEL mosfet but maybe not.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.