RE: [AVR-Chat] ATTINY13 driving a Piezo transducer directly? The port just locks high .
2009-05-07 by Tim Mitchell
----Original Message----
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of doug_marysnowden Sent: 07 May 2009 06:23 To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] ATTINY13 driving a Piezo transducer directly? The port just locks high . > The PIEZO element is just a standard one that is supposed > to be resonant around 24khz. I disconnected the piezo > and the port started toggling, as it should. Should I > put a pair of HEX invertor drivers in parallel for each > output port to drive the piezo element? I am trying to > build a small dog whistler, and am using a 9vdc battery, > a 78L05 regulator for 5v to the Micro. > It should work, I've done it before, though at 4kHz rather than 24. How have you connected the piezo? Have you definitely set the drive pin to be an output (DDRB register)? -- Tim Mitchell