Go Down

Topic: piezoelectric sensors (Read 2425 times) previous topic - next topic


do u know any piezoelectric sensor
to measure pressure
i can use with arduino?
emanuele bari italy


No piezo sensor can measure static pressure, piezo sensors only output voltages proportional to change (well more precisely they output charge proportional to the signal, but leakage current eventually reduces the signal to zero again when the input is static).

[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


  I once attempted to use a piezo buzzer element (Radio Shack) as a pressure sensor.
  I used a TL082 op-amp (also Radio Shack ...super high input "resistance") to avoid loading the voltage appearing across the the crystal. When I added pressure from a finger, the voltage leaped to about 9 volts and took about 5 secs to fall (as long as I maintained pressure). As long as you pedal quickly enough (faster than 1 Hz.) you should be OK.
  What you need to watch out for electronically is what happens after you release pressure on the crystal. When it rebounds to a no load position, the voltage will be pulled LOWER than ground. You'll need to reset the piezo after you read it (on the upstroke somehow ... analog switch to ground maybe?) so the crystal starts at 0 volts on the next pedal downstroke.
  Mechanically, what are you going to do so you don't fracture the crystal? It won't bend much without breaking ... Google "wiki "load cell" " for some hints!
Good Luck, watch out for traffic!


const int sensorPin=0;
const int ledPin= 13;
const int threshold= 350;
int i;
void setup()
pinMode(ledPin, OUTPUT);

void loop()
int val= analogRead(sensorPin);
if (val >= threshold)
digitalWrite(ledPin, HIGH);
digitalWrite(ledPin, LOW);
digitalWrite(ledPin, LOW);

I want my LED should glow after every 10 pulses from piezoelectric. please help me with the code.

Go Up