Danh mục sản phẩm

Đang trực tuyến

Trang web hiện có:
41 khách & 0 thành viên trực tuyến

Lượt truy cập

Hôm nay
Hôm qua
Tất cả
264
957
586076


Microphone Sound

Giá: 30.000 đ
Lượt xem: 633
  • Số lượng: 

Thông tin sản phẩm

These boards are all a common pattern, on a red circuit board. They have two outputs, one is a digital output that triggers Low→High based on the sensor level and the other is an analog output that is the exact level of the sensor.

The boards have two LEDs - one for power (L1) and one connected to the digital “trigger” output (L2.)

Turn the screw on the potentiometer (blue module) to tune in the level that the digital output triggers on.

Pin Label Arduino Connection
1 AO Analog input
2 G Ground (GND)
3 + 5 volt power
4 DO Digital input

Code test reads the analog and digital outputs and prints them to the serial port.

// Arduino pin numbers
const int DO_pin = 2;
const int AO_pin = 0;
 
void setup() {
  pinMode(DO_pin, INPUT);
  Serial.begin(115200);
}
 
void loop() {
  Serial.print(digitalRead(DO_pin));
  Serial.print("-");
  Serial.println(analogRead(AO_pin));
  delay(5);
}