Xtronic Hub
Published

Hello World! Print to 16*2 LCD using Arduino nano

16*2 lcd interfacing with arduino nano device

BeginnerProtip1 hour4,781
Hello World! Print to 16*2 LCD using Arduino nano

Things used in this project

Hardware components

1. Arduino nano board
×1
Jumper Wires and BreadBoard
×1
Programming Cable
×1
16*2 lcd Display
×1
220 or 1k ohm resistor
×1
10k ohm potentiometer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram

Code

code

Arduino
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);   
// Creates an LCD object. Parameters: (rs, enable, d4, d5, d6, d7)

void setup() 
{
  // set up the columns and rows:
  lcd.begin(16, 2);
  // Clears the LCD screen
  lcd.clear();
}
void loop() 
{
  lcd.setCursor(3, 0);
      // set the cursor to column 3, line 0
  lcd.print("Hello world!");
     // Print a message to the LCD.
   lcd.setCursor(3, 1);
     // set the cursor to column 3, line 1
  lcd.print("Hello world!");
    // Print a message to the LCD
}

Credits

Xtronic Hub
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.