See code below : during setup the buzzer beeps loudly for 500 msec, but as soon as the lcd.begin() call is made any digitalWrite call to get the buzzer going ends up in a very soft chirp. Furthermore when counting in a loop and updating the lcd the buzzer chirps softly while the GPIO5 (buzzer) is not addressed at all
The buzzer vcc is hooked up to 3.3 volts. the board is an ESPduino by DOIT
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup() {
pinMode(BUZZER, OUTPUT);
pinMode(RELAY, OUTPUT);
digitalWrite(RELAY, LOW);
// USE_SERIAL.begin(115200);
digitalWrite(BUZZER, HIGH); delay(500);digitalWrite(BUZZER, LOW);
WiFiMulti.addAP("xxxxxxxxxxxxx", "xxxxxxxxxxxxxx");
SPI.begin(); // Init SPI bus
mfrc522.PCD_Init(); // Init MFRC522 card
digitalWrite(RELAY, HIGH);delay(300);digitalWrite(RELAY, LOW);
lcd.begin();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Laser 'VERA' ");
}