Answer the question
In order to leave comments, you need to log in
Why doesn't the buzzer turn off after tone works?
Hello. I connected a buzzer (tweeter) and launched it using tone(8, 400, 400).
But even after work, it emits quiet impulse sounds and consumes 3 -
3.2 mA.
The noTone () function also did not help
The buzzer itself in the form of a ready-made module with Ali
#include <GyverPower.h>
void setup() {
power.autoCalibrate();
power.setSleepMode(POWERDOWN_SLEEP);
pinMode(7, OUTPUT); // Мосфет для отключения питания
}
void loop() {
digitalWrite(7, 1);
tone(8, 400, 400);
delay(400);
noTone(8);
digitalWrite(7, 0);
power.sleepDelay(5000);
}
Answer the question
In order to leave comments, you need to log in
"Zumer" you need to carefully look at the shield diagram. There should be nothing military. Boozer actually should squeak just when voltage is applied to the nameplate should be a transistor. Perhaps "tone();" does not need to be applied.
The booster cannot be directly powered by the output of the controller, the current of the booster may not be drawn.
and I would do so.
digitalWrite(7, HIGH);
digitalWrite(7, LOW);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question