Зуммер активный (buzzer) - KY-012
Active buzzer module
- (1) The module uses 9012 transistor drive
- (2) Operating voltage 3.3V-5V
- (3) Fixing bolt holes for easy installation
- (4) PCB size: 2.0cm * 1.5cm
- (1) VCC external 3.3V-5V voltage (which can be connected directly with the 5v microcontroller and 3.3v microcontroller)
- (2) GND External GND
- (3) I / O external microcontroller IO port
Arduino test code:
int speakerPin = 8 ;/ / control horn pin
int potPin = 4 ;/ / control pin adjustable resistor
int value = 0;
void setup ()
{
pinMode (speakerPin, OUTPUT);
}
void loop () {
value = analogRead (potPin); reading resistor values pin
digitalWrite (speakerPin, HIGH);
delay (value); adjust the speaker sound of the time;
digitalWrite (speakerPin, LOW);
delay (value); adjust the speaker does not ring a time;
}
- Тип:
- Модуль звука
- Рабочее напряжение:
- 3V-5V
- Брэнд:
- Funduino
- Способ монтажа:
- отдельный модуль