Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
  • 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.

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Power Efficiency
Discover proven strategies for power conversion, wide bandgap devices, and motor control — balancing performance, cost, and sustainability across industrial, automotive, and IoT systems.

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.

  • Question about resistors values impact on lead reading
  • TPS63070 Power Supply
  • Maximum duty cycle of PSFB controller?
  • MOSFET thermal noise in Weak vs Strong inversion
  • PCB pain points survey (link navigates to google.forms)

RSS Electro-Tech-Online.com Discussions

  • Measuring controller current output with a meter
  • need help in photodetection TIA circuit
  • Anyone In The US Ordered From AliExpress Recently?
  • Can a small solar panel safely trickle-charge old NiMH AA batteries?
  • Have a ultrasonic washer but not knowing what detergent for cleaning soot

Featured Tutorials

Real Time Hardware Filter Design

  • Practical implementation of bandpass and band reject filters
    Practical implementation of bandpass and band reject filters
  • Practical application of hardware filters with real-life examples
    Practical application of hardware filters with real-life examples
  • A filter design example
    A filter design example
  • Types of filter responses
    Types of filter responses
  • What are the two types of hardware filters?
    What are the two types of hardware filters?
  • What are hardware filters and their types?
    What are hardware filters and their types?
More Tutorials >

Recent Articles

  • SemiQ releases expanded SiC MOSFET lineup with detailed thermal and switching data
  • TDK adds 1000 W models to dc-dc converter series
  • LEMO introduces resin-free IP68 connectors for compact equipment
  • Nuvoton MCU delivers high performance with Cortex-M55 core
  • LEMO introduces resin-free IP68 connectors for compact equipment

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • 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
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
  • Guest Post Guidelines
  • Advertise
  • Subscribe