Garage door remote control

Alright buddy.

If you need anything I will be here.

Greetings.

Yes, it is. But the sketch you posted is a Blynk Legacy sketch, as it doesn’t contain a template ID, which i why I thought you were already using Blynk Legacy.

Pete.

Today, when in the app, I realized that I was using Legacy haha so now I’ll try to do something with 2.0 looking at the examples
btw, how are pins assigned to the app widgets?

I’d suggest that you read the documentation for Blynk IoT.

Pete.

hi, I’ve been working in my project, trying to figure out how the terminal works to implement it on my project, but i haven’t been able to try the example from the examples.blynk.com page

May I ask you why are you using a terminal instead of buttons ?

just to know if the esp receives the signal correctly and, in a future, to know the door status with some detectors

In my personal opinion, You can use buttons and labeled value to get more elegant looking remote app.

Hello, after some time trying to figure out how blynk works, I’ve ended up with this code. I wanted to receive messages through the lcd widget but it doesn’t show anything. I haven’t used labeled values because I prefer the look of the lcd in my app.

#define BLYNK_TEMPLATE_ID           "TMPLm7VtMX7-"
#define BLYNK_DEVICE_NAME           "Garatge"
#define BLYNK_AUTH_TOKEN            "zU3RHV1j1u5Dpbwnavr4vBGy2RIdcOkh"
#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "MOVISTAR_A01E";
char pass[] = "F7736A3CE2CB15E12FC7";


WidgetLCD lcd(V4);
BlynkTimer timer;


BLYNK_WRITE(V0)
{
  int pinValue = param.asInt(); 
  
  if (pinValue == 1){

    releOn();
    
    }
  
}
void releOn(){
    digitalWrite (2, HIGH);
    digitalWrite (LED_BUILTIN, HIGH);
    timer.setTimeout(1000, releOff);
  }

  void releOff(){
    digitalWrite (2, LOW);
    digitalWrite (LED_BUILTIN, LOW);
    }



BLYNK_WRITE(V4)
{
 if (V0 == 1){
  lcd.print(0, 0, "Obrint porta...");
  timer.setTimeout(10000, clearLCD);
  }
}

void clearLCD(){
  lcd.clear();
  }


void setup()
{
  Serial.begin(115200);
  
  digitalWrite (2, LOW);
  digitalWrite (LED_BUILTIN, LOW);
  pinMode(2,OUTPUT);
  pinMode(LED_BUILTIN, OUTPUT);
  
  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
  timer.run();
}


How have you defined datastream V4 in the web console?

Pete.

Make sure the data type of datastream V4 is string. I believe this will fix your problem.

It’s already a String. I had a similar problem when testing out the terminal widget, the content wouldn’t update unless I sent something through it. May the datastream name something to do with this?

Are you using advanced or simple in the app lcd widget settings ?

What exactly does this mean?

Pete.