Hello everyone,
Since the beginning of the pandemic I stopped using Blynk, now I’m coming back and I find myself with a lot of news.
I uploaded my first project on the Dashboard, something very simple, Turning on and off an LED, and Turning on and off a buzzer, I’m using an ESP32, on pin 23 the LED is on, and on pin 22 the Buzzer, on the Dashboard I put the virtual ones pin V0 for the LED and V1 for the Buzzer, I uploaded the code and everything is apparently ok.
The problem is that the LED lights up normally, but the buzzer doesn’t work, I’ve tested the off-board buzzer it works perfectly, on the smartphone I set the buttons exactly like V0 and V1 as on the Dashboard, the buzzer button works, that is, , it is triggered, but the buzzer does not respond.
I’ll put my schedule here to see if there’s something wrong with it.
I would like to thank everyone who wants to collaborate with me to solve my problem.
Greetings to all Blynkers.
#definexxxxxxxx"
#define BLYNK_DEVICE_NAME "LED TESTE"
//#define BLYNK_DEVICE_NAME "Device"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG
#define APP_DEBUG
// Uncomment your board, or configure a custom board in Settings.h
//#define USE_WROVER_BOARD
//#define USE_TTGO_T7
//#define USE_ESP32C3_DEV_MODULE
//#define USE_ESP32S2_DEV_KIT
#include "BlynkEdgent.h"
const byte ledPin = 23;
const byte Buzzer = 22;
void setup()
{
Serial.begin(115200);
delay(100);
pinMode (ledPin, OUTPUT);
BlynkEdgent.begin();
}
void loop() {
BlynkEdgent.run();
}
BLYNK_WRITE (V0){
int state = param.asInt();
digitalWrite(ledPin,state);
}
BLYNK_WRITE (V1){
int state = param.asInt();
digitalWrite(Buzzer,state);
}