TDK PS1240P02BT Piezo: Question about Protecting Arduino with Resisters.


hello all!

i got uno yesterday , trying retrofit piezo element (ps1240p02bt) vibration sensor using knock example.

currently want read analog reading modified code following:

code: [select]

const int viberationsensor = a0;

int sensorreading = 0;

void setup() {
 serial.begin(9600);
}

void loop() {
 sensorreading = analogread(viberationsensor);
 serial.println(sensorreading);
 delay(100);
}


currently can receive zeros on serial console when put resister equal or larger 560 ohm in parallel piezo. (i not data @ 10k ohm resister.) should still put resister protect arduino?

1-do know working audio electronics ?
2- test signal using generate sound piezo pick ?
there nothing in code posted suggest there whatsoever piezo pick why expecting ?
3- did read datasheet piezo ?
4- using amplification of signal piezo ?
5- frequency of test signal ?
6- response frequency of piezo ?
7- amplitude expect piezo ?
8- can draw schematic of piezo circuit interface arduino ?

code: [select]
  const int viberationsensor = a0;

int sensorreading = 0;

void setup() {
  serial.begin(9600);
}
void loop() {
  sensorreading = analogread(viberationsensor);
  serial.println(sensorreading);
  delay(100);
}


Arduino Forum > Using Arduino > Sensors > TDK PS1240P02BT Piezo: Question about Protecting Arduino with Resisters.


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support