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:
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?
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 ?
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
Post a Comment