Receive serially data 0 to 9 on LCD display with arduino.

Here i am using online IDE Tinkercad . If you don't know what is tinkercad then refer my blog HERE or else you can use offline IDE also.

Code :-

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

  lcd.begin(16, 2);

  Serial.begin(9600);

}

 

void loop() {

  if(Serial.available()){

    delay(600);

  lcd.clear();

    lcd.print(Serial.read());}

}

Output :-



Comments

Popular Posts

Connect switch to Arduino. If switch is on than print ”ON” else print “OFF” on serial monitor.

Interface DC motor and Buzzer with Arduino. Develop an Arduino sketch to rotate motor anti-clockwise for 10 seconds after that sound buzzer for 2 seconds and silent at last.