hello to all I want to connect the doorbell intercom with a 12V output with Arduino and Blynk notification. the hardware part such as to be connected? I 2-wire, 12v positive and a negative of the doorbell. I found this code
// You Should get Auth Token in the Blynk App.
// Go to the Project Settings (icon nut).
auth char [] = “YourAuthToken”;
SimpleTimer timer;
WidgetLCD LCD (V1);
void setup ()
{
Serial.begin (9600);
Blynk.begin (auth);
while (Blynk.connect () == false) {
// Wait until connected
}
}
notifyOnButtonPress void ()
{
// Invert been, since button is “Active LOW”
int = isButtonPressed! digitalRead (2);
if (isButtonPressed) {
BLYNK_LOG (“Button is pressed.”);
Blynk.notify (“Please open up! Somebody is on the door!”);
lcd.clear (); // Use it to clear the LCD Widgets
I tried to put the pin 2 input to 5v dell’arduino nn but I get no notification.
can you help me? Thank you so much!!