--_004_79C6CF21452A41B3943FA1A96AD71EBFivp1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > you see those musical greeting cards with piezo elements that > appear to be producing a wide range of frequencies at loud > volumes If you do want to have a go with piezos - You'll find that drive in a greetings card is by reciprocating outputs, which is in effect a 3V p-p signal from a 1.5V cell. If you were to do this with a PIC the piezo would be between two I/O pins, not one pin and Vss. ie when one pin is '1' the other is '0' Be aware that piezos are capacitors, ISTR in the 1nF - 20nF range. (1) this may tax I/O pins current-wise (2) vibration of the piezo (eg being struck or the simple act of it returning to its rest position after being driven) will cause it to generate a voltage high enough to quickly and easily fry an I/O pin, so it would be better to use a couple of transistors to isolate the PIC Watches use a parallel inductor (several mH) to increase the volume, particularly at a resonant frequency. This may work OK if tunes were restricted to an octave or so. I doubt piezos have anywhere enough travel to create enough sound pressure for good bass Attached are a couple of driving/voltage boost examples. The parallel 1k resistor increases volume by discharging the C of the piezo. You'll find it's very quiet otherwise. The 22mH resonating inductor increases volume in low-voltage circuits. 50V may be too high for some single piezos, you can load the circuit or change the duty cycle to produce 25V - 30V Joe= --_004_79C6CF21452A41B3943FA1A96AD71EBFivp1_ Content-Type: image/gif; name="pic+piezo2.gif" Content-Description: pic+piezo2.gif Content-Disposition: attachment; filename="pic+piezo2.gif"; size=2109; creation-date="Mon, 29 Aug 2011 19:24:38 GMT"; modification-date="Mon, 29 Aug 2011 19:24:38 GMT" Content-Transfer-Encoding: base64 R0lGODlhSQG7AIAAAAAAAP///ywAAAAASQG7AAAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq2 7gvH8kzX9o3n+s73/g8MCofEovH4AihXS0Mz8IwCdE8nsqVsZq2I6TXhhaa8U7JYbDbjsuHwF+Vu nw/ub70uinf3dL6NvYT3NnLXNyeIdAe4yNjoqGfIJQn1WGl5iZmpucnZyQm2dSiJeFTI5DeXShFK sqgqwxpDWhZJO+hHepXbwRZZs6syK2oFbBR7O0lo+vcL1ifniyzNUDytUH2Cx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1raaULVFc0ThTds25yw4rd6BqWt7V9rGjXQNrWhre8Vz1rV3yL3OFSVr7vhe95 9frT5663vhWkLX+Le93x0rdP+yWwgN1rYNsG+K3+TbB5F/xUqy53s/e1aX6ra1/+JBXDpNlwetMK txCLeMQkThZ8G3Ji+6Y4xUtdcXta7GLvwDjG0ZkxjYdj4xvLJsc6xmGPFfzjxPI4yE0kcmiN3Nch IzkwS4arkpvcTyhD8MlSPmmVdwbNK2t5y7xhBJe/DGYTUjnMZC6zmc+M5jRvtgAAADs= --_004_79C6CF21452A41B3943FA1A96AD71EBFivp1_ Content-Type: image/gif; name="pic+piezo1.gif" Content-Description: pic+piezo1.gif Content-Disposition: attachment; filename="pic+piezo1.gif"; size=1072; creation-date="Mon, 29 Aug 2011 19:24:38 GMT"; modification-date="Mon, 29 Aug 2011 19:24:38 GMT" Content-Transfer-Encoding: base64 R0lGODlh7wCXAIAAAAAAAP///ywAAAAA7wCXAAAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq2 7gvH8kzXtgrc+s6DeQ8MCh+/ofEILCKXTJmyCY2intKq1UO9areULPcLVnjD5O+4jLae0+zmug03 vuP03ryOt93z/Bhg3xe48kdYaHiImKj4J9goBvgB6ZgmiTV5WdmReQm2ueHJuQWaMRqqBlNqKpVq warqhvra59oly0c7gWs7tFnokEOl1Lt7lCnM8BOMMEzMi5FFaHCYcEzNGFCUDNzs/FyNLR1OvTwe ng2Orcsd+Zl84I5O/l4Ofn6+nqQZD688L18/7x4+HsbI3YP3L544gOnQXRu4o1c0aQ+10Us3cWJD /ovqIGroSMQjGpC/RJYh2QClSReeFj18BM3lyiAtU47RuOzmzHykWqjc2eqjT6AEhSJzWekn0VxG IeB8tlRHzQhPLyiN6rQpDqx6tKa4yjWl1ylhaUwdVHbG2a1p/Yw9AbZtwqAsXspF25Pl3aF59e69 6OPt179sofq9C4zfNUMU94BSWjXtYoYKEd4ZBTburYAYK/pTWFIw3L32QC8UGLIvX7mTt4n79gTp tKxiPocIVtHuRc1CEr9e7Asj2Ue2NekuvbB28Um8axn0R0vn8+DfOOGSHRmZcsqBF8TeaI4xaQmA vlMkAa0cv8p/L1eAbZpD+n/rq7fFrjv0Z9fG/ufbrj8Xc7k1px09CFmSUzSMAbhcI8jFF0uE7e1T T0adWYPfGwQSSMdk4TkEHoSAOXfYhMi5sx5thuGQH2sUMnigWKrh5aI5nIGYYmorrnbfgK/ZCKKK VklImAlr0VikkaKhx2FYRw6XJJRD1hXlYDNKWSV6S47QpJNbitAlV0+OlqWSV5JZppZnmpkml1/e 1qaaO1oZ523GtChnnZFkyGef2OlpJ6CBhCloiYXWQeihSCp62E+JxukZnYxSeRCak67GX56XUnke m4UqyAioibnyIJiTboMqQKmyA6Spp6oK66oIBtlOg4KmiiuscsSoaK6+iihVpgm+pFFwp+HJ0s2v v+4q3Y/O5nTaTsrq+hapZxzTz3MUzjStrFB9xwqy0+DmWTbIrtMtd+/gt99+fopXYKveBYmaSOkK KxS4tcoob20L2orPvcDSNWIr18rzYDX1eiQwvhHhCa9wjRl4brKxXvwocRnL0vDAZvHKaMcbQ5vc qaGePKrES4y8qasttwHyy1xkJ7MWNNdchbE4h8Hyzm/6DAvQnQg9NNEzG3000jYrvTTTpzidM9RR Sx1Fz1Tze/XKWQe9NRJWby1T12JzO9vYZq9089lqr8122zsXAAA7 --_004_79C6CF21452A41B3943FA1A96AD71EBFivp1_ Content-Type: text/plain; name="ATT00001.txt" Content-Description: ATT00001.txt Content-Disposition: attachment; filename="ATT00001.txt"; size=208; creation-date="Mon, 29 Aug 2011 19:24:38 GMT"; modification-date="Mon, 29 Aug 2011 19:24:38 GMT" Content-Transfer-Encoding: base64 LS0gDQpodHRwOi8vd3d3LnBpY2xpc3QuY29tIFBJQy9TWCBGQVEgJiBsaXN0IGFyY2hpdmUNClZp ZXcvY2hhbmdlIHlvdXIgbWVtYmVyc2hpcCBvcHRpb25zIGF0DQpodHRwOi8vbWFpbG1hbi5taXQu ZWR1L21haWxtYW4vbGlzdGluZm8vcGljbGlzdA0K --_004_79C6CF21452A41B3943FA1A96AD71EBFivp1_-- .