Arduino Beginner Series: Project 16: Using a 16×2 LCD Display and building a counter

Hello everyone!! Welcome to this post on Arduino LED Projects!!
Need a short introduction to what the Arduino is then click on LINK
Check out the breadboard intro right HERE

So the Serial Monitor was getting kinda boring so I started out with using a Serial monitor.

Demo:

This is what my project looks like:

Things Required:

  1. Arduino UNO
  2. Breadboard
  3. Jumper Wires
  4. 16×2 LCD Display
  5. 10 k potentiometer
  6. Arduino IDE on computer

Functions used:

  1. lcd.print()
  2. lcd.setCursor()
  3. lcd.begin()
  4. delay()
  5. pinMode()
  6. Also we need to include the LiquidCrystal library

Reference Material:

  1. I’m Linking some nice and in-depth articles about the 16×2 LCD : (LINK1) (LINK2)
  2. Here’s a video reference for the project: (LINK)

Code:

View on/ Download from Github: (LINK)

#include<LiquidCrystal.h>
int rs=7;
int en=8;
int d4=9;
int d5=10;
int d6=11;
int d7=12;
int count=0;
LiquidCrystal lcd (rs, en, d4, d5, d6, d7);

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16,2);

}

void loop() {
  // put your main code here, to run repeatedly:
  lcd.setCursor(0,0);
  lcd.print("Watch me count");
  delay(1000);
  lcd.setCursor(0,1);
  lcd.print(count);
  count++;
}

Stay Tuned for upcoming posts on Arduino Projects! We’re on the basic newbie projects right now and slowly, gradually move on to those cool, ultra techy projects!! Want to be the first to know when a new and amazing post comes up?? Then feel free to subscribe!

Happy Learning!!

This image has an empty alt attribute; its file name is stay-tuned.gif

Leave a Reply

PHP JS HTML CSS BASH PYTHON CODE

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: