ARDUINO ,UART AND LCD SIMULATION IN PROTEUS (DISPLAYING UART DATA IN LCD USING ARDUINO AND PROTEUS)

Photo of author

By Jackson Taylor

SIMULATION VIDEO

SIMULATION SCREENSHOT


PROGRAM

#include <LiquidCrystal.h>
LiquidCrystal lcd(3, 4, 5, 6, 7, 8);//LCD RS-3,En-4,D4-5,D5- 6,D6-7,D7-8
char uart_data;
void setup()
{
Serial.begin(9600);
 lcdstart();
 lcd.clear();
}
void loop()
{
if(Serial.available()>0)
{
 lcd.clear();
uart_data=Serial.read();
lcd.setCursor(0,0);
lcd.write(uart_data);// Print a message to the LCD.  
}
}
void lcdstart(void)
{
lcd.begin(16, 2);// set up the LCD’s number of columns and rows:
lcd.setCursor(0, 0);
lcd.print(“EMERGING TECHS”);// Print a message to the LCD.
lcd.setCursor(0,1);
lcd.print(“LCD WORKING”);// Print a message to the LCD.
delay(500);
}