allanhurst:
Try it my way with a signal generator. And do some sums .
And download and learn to use simulation programmes such as 'PSPICE' or 'LTSPICE'.
You'll find them very useful.
Allan
edit : you may find the enclosed driver useful - put the inductor/piezo where I show the loudspeaker.
Ok good news! I got it working with the signal processor, and i finally understand the entire setup, and how the capacitor, inductor and waveform signal processor work together. Managed to get around 16-17vAC from the 3v power source - Amazing!! Works like a charm, however when i try to move from the waveform generator towards a transistordriven circuit i get into trouble. I've made the setup as shown on the attachments, however it seems like i only get power from the transistor-gate and nothing form the actual DC power source. How can this be?
By the way, thanks for the tip with simulation-software, it has saved me lots of hours!
I'm trying to drive a LC/tank -circuit with an Arduino in order to increase the voltage across a piezo. This far i've managed to get the LC-circuit working perfectly with an increase from 3.3vAC to 16-17vAC when the 3.3vAC is supplied through a waveform generator. However since i need to run it from the Arduino i'm trying to get this to work with a transistor. I just can't seem to get it right. Whatever i try, it seems like the only source of power is the base-input of 1.5vAC from the simulated Arduino pin. And the 3.3v from the DC source doesn't affect the output at all - even tried changing it to 5v, 12v, and 60v in the simulations - no change in output.
What on earth am i doing wrong?
I've attached both setups in the 'Schematics.jph' file.
If you want to simulate a piezo element, you need to take into account its equivalent inductance, which can be surprisingly large, as well as the internal resistance. At the moment, you are just (incorrectly) simulating an LCR circuit.
Unfortunately decent SPICE/LTSPICE models for a piezo element are hard to find, but here is one attempt.
DVDdoug:
Where's the (simulated) meter connected? Of course the important thing is the voltage across the piezo.
Is the capacitor supposed to be the Piezo or is it supposed to be the resistor?
Of course, if you can supply a higher DC voltage in the real world you wouldn't have to be playing-around with resonant circuits.
The voltage is measured at the capacitor - which is yes supposed to act as the piezo. I don't have the possibility of having a higher DC-voltage across the piezo since we're running on a 3v battery - which is why i'm using a LC-circuit
jremington:
You will destroy the transistor (and may already have) if you fail to use a base resistor (1K - 10K).
To what peak-to-peak voltage have you set the signal generator?
Please explain why you think this.
I run the signal generator at 1.5V but if i change it, the output changes (and doesn't change if i change the DC input!) which is why i think the signal is providing the output.
jremington i have it working perfectly without the transistor, so my ressonant LC circuit is working fine
pwillard:
Note: I'm indicating you have to drive the BASE of the transistor with a PWM signal. No switching... no voltage... Just feeding DC won't do anything.
I'm not really sure what you mean - how should i simulate it? Could you elaborate?
You tried a different circuit, which won't work for several reasons.
You could try the one in reply #22, carefully following the instructions to replace the speaker (8 Ohm R2) with the piezo, but it won't be any louder than the direct output from an Arduino, because there is no voltage boost.
1/ modelling a piezo as a series capacitor and resistor isn't very accurate , but it's a reasonable starting approximation. A better model will not be linear, but will vary strongly with excitation voltage.
Can't be bothered.
2/ my crude circuit does not, as you say, provide any voltage gain, but it will provide much more current, which may be useful driving a low impedance series resonant load.The series l-c provides the voltage gain at resonance.
Pwillard : your circuit is a basic boost voltage convertor - but we don't want high voltage dc.
Danielvt. Your implementation of my circuit is inaccurate. Get it right and try again.
1 resistor, two transistors. Omit the 100uF capacitor. Could anything be much easier?
Didn't read all the posts in this thread, but isn't it easier to use a MAX232 to drive a piezo.
Like the do on an HC-SR4 ultrasonic sensor module.
The MAX232 should be able to drive a piezo to ~30volt peak/peak.
Leo..