Youssef Sabaa
Published

Lcd Display in Real Time.

This project will show you how to make with Arduino and 16X2 LCD real time display from your computer.

BeginnerFull instructions provided80,537
Lcd Display in Real Time.

Things used in this project

Story

Read more

Schematics

untitled.png

Code

lcd_text_same_time.ino

C/C++
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup(){
    // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);
  // initialize the serial communications:
  Serial.begin(9600);
}

void loop()
{
  // when characters arrive over the serial port...
  if (Serial.available()) {
    // wait a bit for the entire message to arrive
    delay(100);
    // clear the screen
    lcd.clear();
    // read all the available characters
    while (Serial.available() > 0) {
      // display each character to the LCD
      lcd.write(Serial.read());
    }
  }

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

}}

Credits

Youssef Sabaa

Youssef Sabaa

5 projects • 53 followers

Comments