Sensores Flexibilidade & Força & Vibração

Produtos visualizados

Piezos Amplifiers Ver maior

Piezoelectric

BE15000341

Novo produto

A Piezo is nothing but an electronic device that can both be used to play tones and to detect tones.

Mais detalhes

2,11 € com IVA

Adicionar à Lista de desejos

Mais informação

Plate Material: Brass
It's suitable for installing in cigar box guitars, foot stompers and other home-made instruments
They can also be used for custom pickup arrangements in more traditional stringed and percussion instruments


Resonant Frequency (kHz): 4.6 +/- 0.5kHz
Resonant Impedence (ohm): 300 max
Capacitance (nF): 20.0 +/- 30% [1kHz]
Plate Diameter:Approx.2.7cm/1.06''
Lead Length: Approx.5.7cm/2.24''

Code:

/* Knock Sensor

* Program using a Piezo element as if it was a knock sensor.
* We have to basically listen to an analog pin and detect
* if the signal goes over a certain threshold. It writes
* "knock" to the serial port if the Threshold is crossed,
* and toggles the LED on pin 13.
* (cleft) 2005 D. Cuartielles for K3

* edited by Scott Fitzgerald 14 April 2013

*/


int ledPin = 13;
int knockSensor = 0;
byte val = 0;
int statePin = LOW;
int THRESHOLD = 100;

void setup() {

pinMode(ledPin, OUTPUT);
Serial.begin(9600);

}


void loop() {

val = analogRead(knockSensor);
if (val >= THRESHOLD) {

statePin = !statePin;
digitalWrite(ledPin, statePin);
Serial.println("Knock!");

}

delay(100); // we have to make a delay to avoid overloading the serial port
}

 

Here we use a Piezo element to detect sound, what will allow us to use it as a knock sensor. We are taking advantage of the processors capability to read analog signals through its ADC - analog to digital converter. These converters read a voltage value and transform it into a value encoded digitally. In the case of the Arduino boards, we transform the voltage into a value in the range 0..1024. 0 represents 0volts, while 1024 represents 5volts at the input of one of the six analog pins.

Acessórios

Clientes que compraram este produto também compraram: