[Question] LCD Widget Connections

@farazappy do you need a physical LCD now you have Blynk’s virtual LCD on your Smartphone?

I always hated wiring up LCD’s as they require so many pins.

See http://www.instructables.com/id/Connecting-an-LCD-to-the-Arduino/?ALLSTEPS for LCD details. You then need to adapt the LCD example provided in the Arduino IDE to work with Blynk.

1 Like

I did the same wiring but how to configure LCD widget in Blynk app? And also which Sketch to use?

I mean to send data from my Blink app like lcd.print(0,1 “Hello World”); and it displays on my Physical LCD.

Is this possible?

Thanks!

Yes it is very possible.

As you are Uno with ESP you need Blynk’s softserial example.

The regular Arduino LCD example is:

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}

Make both sketches work separately and then combine them.

Depends what you are actually looking to do but you can for example add a button to Blynk that will then send text to your physical LCD depending on the state of the button.

Thanks! Will try that in some hours.

@farazappy Here is https://github.com/blynkkk/blynk-library/tree/master/examples/Widgets/LCD a bunch of LCD examples. Please read comments carefully. Also above examples for Ethernet, so be aware.

Hey,

Thanks for replying will try those out as well!

@Dimtriy Also would like to suggest you guys to add a feature for IR LED’s which would be awesome!

@farazappy IR LED’s for phone that have IR capabilities, send high and low signals to an IR LED attached to an Arduino / ESP or something else?

Sending HIGH and LOW signals to an IR LED is surely already available.

@Costas No, but sending the hex code which make IR receiver works so that we can place an IR led at a suitable place in our room and send different sets of codes which activates the led for Television/Home Theatre/AC/etc.

Kind of using a single smartphone remote instead of multiple controllers!

That can be done already. You store the Hex code in your sketch and Blynk would call the relevant Hex based on whichever button you pressed in your dashboard. As you will know the number of different HEX codes is huge so not really something for Blynk to do, more an end user implementation.

@Costas yeah that can be done also! Cool!

Hello, is it possible for the LCD widget display the same thing with the Physical LCD? Can you show some example to do it and how the connection?

@Aizat_Nazih The Widget LCD doesn’t require connections like a real one (obviously).

It is also not capable of graphics, just text and numbers, pretty much anything ASCII I believe.

And sending information to it is as simple as shown in the >documents<:

WidgetLCD lcd(V1);  In app, also assign virtual pin V1 to the Widget LCD in advanced mode.
lcd.clear();  //  Clear the LCD Widget screen
lcd.print(4, 0, "Hello");  // print Hello on the 1st line, starting at the 4th character in.
lcd.print(4, 1, "World");  // print World on the 2st line, starting at the 4th character in.

Thanks for that response. How about the Physical LCD display? the example only for LCD widget. i want to make for both physical lcd and lcd widget display at same time

Controlling any physical LCD is not a Blynk specific task… just follow the parameters of whatever LCD libraries work with your brand of LCD.

Thankss @Gunner

Hey bro did u try and get it to hardware lcd and i am too trying .

Is there any example for Wifi (nodemcu)

@krishnan As I have already stated.

yes, @krishnan. only change lybraries for wifi

//#define BLYNK_PRINT Serial  
//#include ESP8266WiFi.h
//#include BlynkSimpleEsp8266.h


// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxx";


WidgetLCD lcd(V1);


void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  
  lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Hello"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(0, 1, "word");
  // Please use timed events when LCD printintg in void loop to avoid sending too many commands
  // It will cause a FLOOD Error, and connection will be dropped

}

void loop()
{
  Blynk.run();

}

Edited with proper formatting / Fettkeewl