Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Displaying ASCII Characters on 16×2 lcd with arduino

By EG Projects June 10, 2019

Displaying ASCII characters on MXN lcd is very easy. Where M represents number of coulombs and N number of rows. You just need to know about the internal structure of character lcds, registers of character lcds and the characters supported by lcd controller. Below tutorial will help you in knowing about the internal structure of lcd.

  • Internal Structure of Character lcd. 

​​
Normally lcd contains HD44780 controller in them. Hd44780 is responsible for all the communications with external controller and displaying text on lcd screen. HD44780 is designed by Hitachi and it supports 255 characters. Which means you can display 255 different characters on lcd directly through its controller. The supported characters are ASCII, Digits(0,9) and Japanese characters. Refer to data sheet of controller if you want to know about all characters and their address in ROM of hd44780 lcd controller. 

How to display ASCII characters on Character lcd’s

Now to display ASCII character on 16×2 lcd simply pass the address of the ASCII characters present in 16×2 lcd controller ROM(read only memory). I did same in my code. Started from the first character and prints all of them one by one on lcd. Some characters are missing in ROM of hd44780 and special Japanese language characters are present on their locations. So some Japanese language characters will also be displaced on lcd. Few characters in ROM are greater than 5×10 font. These characters will not appear on lcd. Their decimal value will be displayed on lcd but they will not appear on the lcd. 

Don’t know about 5×10, 5×8 character meaning. No problem just take the following tutorial(How to display 5×8 or 5×10 font character on 16×2 lcd?).

Hardware Requirements

  • 16×2 Lcd
  • Arduino board(Microcontroller)
  • Potentiometer (To set lcd contrast)
  • Power supply

NOTE: You will see some spaces and weird shape characters displayed on lcd. Those characters are present in controller of 16×2 lcd that’s why they are displayed on lcd. Some Japanese characters will also be displayed on lcd. All the characters present in lcd controller will be displayed on lcd. Characters present in HD44780 lcd controller are given below. Pic is taken from data sheet of hd44780 lcd controller.                  

Ascii,digit(0,9) Japanese characters supported by character lcd controller

Ascii,digit(0,9) Japanese characters supported by character lcd controller

Project circuit diagram

Circuit diagram of the project and 16×2 lcd connections with arduino uno is given below. 16×2 lcd is interfaced in 4-bit mode with arduino.
ACSII characters display on 16x2 lcd using arduino uno

ACSII characters display on 16×2 lcd using arduino uno

Displaying Ascii characters on 16x2 lcd with Arduino

Displaying Ascii characters on 16×2 lcd with Arduino

ASCII characters on 16×2 lcd display using arduino – Project code

Coming to the project code. On first row of 16×2 lcd decimal values of ASCII characters will be displayed and on second row ASCII characters will be displayed. ASCII characters start from 34 location of the hd44780 ROM location. So in code i started the ASCII characters from 34th location.  

Each character will appear on 16×2 lcd for 1 second after 1 second it disappears and the next ASCII character will appear on 16×2 lcd with its corresponding decimal value.

Some more projects on displaying ASCII characters on 16×2 lcd using various microcontrollers. Each project code is open source. You an use and modify it according to your needs.

ASCII characters display on 16×2 lcd with 8051 microcontroller

Displaying ASCII characters on 16×2 lcd with Pic microcontroller

Watch the Project video here

ASCII using Arduino code/files


Filed Under: Arduino Projects, Microcontroller Projects

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Mean offset increase in post-layout simulation of clocked comparator
  • Getting different output for op amp circuit
  • Discrete IrDA receiver circuit
  • No Output Voltage from Voltage Doubler Circuit in Ansys Nexxim (Harmonic Balance Simulation)
  • How do loop recording and G-sensors work on front and rear dash cams?

RSS Electro-Tech-Online.com Discussions

  • Saga 1400sv vinyl cutter motherboard issue
  • PIC KIT 3 not able to program dsPIC
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz
  • using a RTC in SF basic
  • Relay buzzing after transformer change?

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • GigaDevice launches GD32C231 MCU series with 48MHz Cortex-M23 core and 64KB Flash
  • Advanced Energy releases 425 W CF-rated medical power supply in 3.5 x 6 x 1.5-inch format”
  • LEM combines shunt and Hall effect sensing in 2000 A current measurement unit
  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe