Electronic Brick - Sound Sensor/Microphone Brick

Electronic Brick - Sound Sensor/Microphone Brick

Electronic Brick - Sound Sensor/Microphone Brick

Electronic brick of microphone can be connected to the analog I / O port, when speaking to the microphone, the analog value will be changed. A recorder can be made by reading and saving the analog value.

20 items in stock

Price:

1,50 €

Add to cart

Tinklapyje visos kainos nurodytos su 21% PVM.

No reward points for this product.

More info

Electronic brick of microphone can be connected to the analog I / O port, when speaking to the microphone, the analog value will be changed. A recorder can be made by reading and saving the analog value.

Data sheet

  • Width - 33 mm
  • Depth - 14 mm
  • Supply voltage - 5V DC
  • Connectors - 2.54 mm 3 pin / Grove
  • The method of transmission - Analog

Source codes

Connect S port of electronic brick of microphone to A0 port of Arduino, and we will use the following program to read the analog value. When the value exceeds the threshold, the LED indicator will flash.

const int ledPin =  13;      // šviesos diodo prievadas
const int thresholdvalue=400; //reikšmė kurią viršijus bus įjungiamas LED
void setup() {
     pinMode(ledPin, OUTPUT);
}
void loop() {
  int sensorValue = analogRead(A0); //nuskaitomas A0 prievadas (garso reikšmė)
  if(sensorValue>thresholdvalue)   //Jei garso reikšmė viršija thresholdvalue reikšmę
  digitalWrite(ledPin,HIGH); //įjungiamas šviesos diodas
  delay(200);
  digitalWrite(ledPin,LOW);
}

25 other products in the same category:

Customers who bought this product also bought: