Author Topic: Help with piezo op amp circuit  (Read 592 times)

0 Members and 1 Guest are viewing this topic.

Offline alexander_Topic starter

  • Newbie
  • Posts: 6
  • Country: us
Help with piezo op amp circuit
« on: January 31, 2025, 04:25:14 pm »
Hello,

I am trying to read voltages off of a piezo cylinder in order to generate an FFT.  Ultimately, this circuit will be for a low-powered hydrophone with a raspberry pi PICO as the main board.  While I'm testing the circuit, I'm hooking the sensor up to a raspberry pi 4 since it is easier to visualize the FFT produced by the sensor using matplotlib.  The components I'm using are:

Raspberry Pi 4
Op amp: https://www.digikey.com/en/products/detail/rohm-semiconductor/LMR1001YF-CE2/21679178
MCP3008
Piezo cylinder from Steminc

I have some python code to generate the FFT and I'm confident that the code works since it accurately creates an FFT when use a MAX4466 electret microphone as the sensor (expose the microphone to a 400Hz tone and I get a FFT with a 400Hz spike).  However, I've had NO success with the piezo however and I think the problem comes down to either my circuit or my choice of op amp. 



The circuit: I've tried to make a simple voltage follower circuit.  I have a 1M resistor in parallel to one of the piezo inputs for impedance matching.  This input goes to the op amp's Vpos.  The Vneg of the op amp provides feedback to the output.  I'm new to electronics, but as I understand it, that setup ought to give at least some sort of signal to the ADC.  But in fact, I observe no change to the FFT when I expose the piezo to a loud tone or even when I physically touch it.  I also tried doubling R1 to 2M and tried adding an R2 between the Vneg and output but there is no change in the FFT.

The op amp: I went with a Rohm LMR1001YF-CE2 op amp simply because it appears to meet the requirements of my circuit which are: (1) rail-to-rail and (2) works at 3.3V.  I'm not confident that this is the best op amp.  I've read that op amps can be either a good or bad fit given the impedance of the sensor but I'm not sure where to look at op amp data sheets to judge the suitability of the LMR1001YF-CE2 for this circuit.

Is there something obvious I'm overlooking?
« Last Edit: February 02, 2025, 04:20:23 pm by alexander_ »
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 9250
  • Country: us
  • Retired, now restoring antique test equipment
Re: Help with piezo op amp circuit
« Reply #1 on: January 31, 2025, 04:51:43 pm »
You didn’t post a circuit, but it sounds like you are running both op amp inputs at nominal 0 V with a single power supply.  The output voltage will not be able to swing properly.
  The usual way to fix this, when a single supply is necessary, is to generate a “virtual ground” DC voltage at half the supply voltage and connect your 1 or 2 M\$\Omega\$ resistor to that node instead of ground.  The output should swing positive and negative with respect to that voltage.
That voltage supplies almost zero current, so a simple two-resistor divider with bypass capacitor usually suffices.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 7097
  • Country: nl
Re: Help with piezo op amp circuit
« Reply #2 on: January 31, 2025, 05:16:12 pm »
You don't impedance match a microphone, you might want to equalize it through loading, but you don't impedance match.

Calling the Piezo connections "inputs" is confusing.

You should use a charge amplifier.

https://www.allaboutcircuits.com/technical-articles/understanding-and-implementing-charge-amplifiers-for-piezoelectric-sensor-s/
 

Offline alexander_Topic starter

  • Newbie
  • Posts: 6
  • Country: us
Re: Help with piezo op amp circuit
« Reply #3 on: February 03, 2025, 02:38:31 pm »
Thanks for the update and I fixed the missing circuit by adding the attachment to the OP.

I took your advice and tried tying the positive piezo lead to a voltage divider from 3.3V.  I can see my raw voltage values of the samples are coming in around a mean of ~1.52 V but, I'm sorry to say, that this has not made any change in the FFT.  This is what my circuit looks like now along with what the FFT looks like - no spikes:



Once again, I've tried adjusting R1 and R2 with no luck.  Can someone please critique my design and tell me if I've made some mistake?
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 15335
  • Country: de
Re: Help with piezo op amp circuit
« Reply #4 on: February 03, 2025, 05:20:37 pm »
The new resistors R3 R4 are replacing the 1 M resistor to ground. In principle a good idea, but likely higher resistance (e.g. 1 M) needed. How much resistance is needed depends on the sensor capacity and frequency range of interest.
Depending on the sensor and signal level expected one may want additional gain at the amplifier. This may have to be for the AC part only. The expected amplitude may be going down towards higher frequency.
For lowest noise one may want some form of AA filter to limit the BW seen by the ADC. This may not be an issue without gain.

R2 may not be needed.
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 9250
  • Country: us
  • Retired, now restoring antique test equipment
Re: Help with piezo op amp circuit
« Reply #5 on: February 03, 2025, 06:03:05 pm »
The piezo sensor is equivalent to a voltage generator (your desired signal) in series with the device’s capacitance.  That capacitance  C and the high-resistance load R  form a high-pass filter that attenuates frequencies below
fc = 1 / (2 pi R C)
per the usual filter response, which is why you want a large value of R, including the amplifier and bias resistor.
What is your piezo’s capacitance and your lowest frequency of interest?
 

Offline alexander_Topic starter

  • Newbie
  • Posts: 6
  • Country: us
Re: Help with piezo op amp circuit
« Reply #6 on: February 03, 2025, 07:39:16 pm »
The piezo sensor is equivalent to a voltage generator (your desired signal) in series with the device’s capacitance.  That capacitance  C and the high-resistance load R  form a high-pass filter that attenuates frequencies below
fc = 1 / (2 pi R C)
per the usual filter response, which is why you want a large value of R, including the amplifier and bias resistor.
What is your piezo’s capacitance and your lowest frequency of interest?


Thanks Tim.  Here is the datasheet for the piezo:

Piezo Material: SM111
Dimensions: Ext. Diam. 26 x Int Diam 22 x Height 13mm
Resonant frequency fr: 42 KHz±1.0 KHz
Electromechanical coupling coefficient Keff: 36 %
Dielectric Loss tg δ: 0.42%
Resonant impedance Zm: ≤4.6Ω
Static capacitance Cs: 6600pF±20%@1kHz
Test Condition: 23±3 °C 40~70% R.H.
fr, Zm, Kr => Hoop mode vibration application
Cs tanδ => LCR meter at 1KHz 1Vrms

Based on the math you provided, the low cutoff for this transducer with a 1M resistor is 24Hz which is a much lower freq than the sounds I've been using to troubleshoot the circuit.  The lowest freqency I would be looking for would be right around 100 Hz.  If it helps, here is a link to the instructables project which I am modeling mine after:
https://www.instructables.com/Lets-Build-Some-World-Class-Hydrophones/


The new resistors R3 R4 are replacing the 1 M resistor to ground. In principle a good idea, but likely higher resistance (e.g. 1 M) needed. How much resistance is needed depends on the sensor capacity and frequency range of interest.
Depending on the sensor and signal level expected one may want additional gain at the amplifier. This may have to be for the AC part only. The expected amplitude may be going down towards higher frequency.
For lowest noise one may want some form of AA filter to limit the BW seen by the ADC. This may not be an issue without gain.

R2 may not be needed.

You're absolutely right in that my schematic replaces R1 with R3 and R4.  I didn't mean to draw the schematic that way.  Instead, it ought to look like this:
If I'm correct, this circuit ought to work.  The voltage divider ought to create a virtual ground halfway between 0 and 3.3V.  The 1M resistor ought to drive the piezo.  Also in this circuit, I have added a feedback circuit, R2 and R5.  I've tried many different ratios of R2/R5 as I understand this is how to create gain.  None of this has allowed me to read the transducer. :/


 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 9250
  • Country: us
  • Retired, now restoring antique test equipment
Re: Help with piezo op amp circuit
« Reply #7 on: February 03, 2025, 08:21:03 pm »
That placement of R1 is wrong:  you have it in series with the device Cs, driving a very low resistance of R4 and R3 in parallel = 500 ohms.
 

Online Xena E

  • Frequent Contributor
  • **
  • Posts: 766
  • Country: gb
Re: Help with piezo op amp circuit
« Reply #8 on: February 04, 2025, 01:39:52 am »
...
If I'm correct, this circuit ought to work.  The voltage divider ought to create a virtual ground halfway between 0 and 3.3V.  The 1M resistor ought to drive the piezo. 

I'm not going to comment on the overall project because I'm TL;DR.

In the conjunction you wish to have a 1M input impedance to the non inverting input just create the divider R3 R4 from two 2M resistors.

Also in this circuit, I have added a feedback circuit, R2 and R5.  I've tried many different ratios of R2/R5 as I understand this is how to create gain.  None of this has allowed me to read the transducer. :/

It's not going to.

The way to do the feedback scaling how you're intending there is to have a resistor from output to inverting input then the other from there to ground, to produce a potential divider.

However, as you're trying to run this circuit from a single supply that will not only affect gain but also the DC output level.

You could try a divider at the inverting input as you did for the non inverting, ie., doubling the resistor to ground value and again placing the two in series between the supply, then calculating gain from half the divider resistor value and the feedback resistor value from the output... but there are more elegant ways to do this.

It really depends on what you require on the input of the MCP3008?... do you want the amplified signal to swing around the half supply rail point?

The most useful thing for you to do as you seem a bit lost on this, is to learn a few opamp basics, watch a tutorial and apply what you actually need.

A good beginner book is "BP88 How to use opamps" by E A Parr.

That can be downloaded free from World Radio History site, direct from a Gurgle search.

X
 

Online Xena E

  • Frequent Contributor
  • **
  • Posts: 766
  • Country: gb
Re: Help with piezo op amp circuit
« Reply #9 on: February 04, 2025, 02:49:59 am »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf