ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

128X64 Graphical LCD Interfacing with ATmega32

13251
Mark as Favourite

User friendly visual displays are used nowadays to keep track of working of any device. Such a visual display can be anything ranging from old Analog meters to new and smart Digital meters. In digital world, to keep track of devices, LCD is very commonly used. LCDs are easy to program and prove to be a better display unit as compared to other devices like seven segments and LED display units. The graphics LCDs are preferred over the character LCDs for those applications where both character and graphical representation are required. The use of a graphical LCD (GLCD) drastically changes the look of any device. The 128x 64 Graphical LCD has 128 horizontal pixels and 64 vertical pixels resolution and it is based on KS0108 controller. The 128×64 graphical LCD is divided vertically into two sections, each with a resolution of 64×64 and separate controllers are provided for each section for its functioning. Now, each section is again divided horizontally into 8 pages, each with a resolution of 64×8.

In this project, we will learn How to interface a 128X64 Graphical LCD with AVR ATmega32 microcontroller. Here, the microcontroller will write 8 bytes of binary data in the 1st page of both left and right section of 128X64 Graphical LCD. In the Left section, the microcontroller will write : 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 respectively and in the right section it will write : 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 respectively. Now, see the output in the graphical LCD.

Softwares Required

Hardwares Required

Name Quantity
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
128x64 Graphical LCD Interface Board 1pc
10 to 10 FRC Female to Female Connector 3pc
AVR Trainer Board-100 with ATmega32 1pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for 128X64 Graphical LCD Interfacing with ATmega32 is as follows

  • Steps - 1 ( 0f 7 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 7 )

    Connect PortB header of AVR Trainer Board with Data header of 128X64 Graphical LCD Interface Board with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 7 )

    Connect PortD header of AVR Trainer Board with Control header of 128X64 Graphical LCD Interface Board with a 10 to 10 FRC Female Connector.

  • Steps - 4 ( 0f 7 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 5 ( 0f 7 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

  • Steps - 6 ( 0f 7 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 7 ( 0f 7 )

    Download the 128X64 Graphical LCD Interfacing with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 7 )

  • Connect PortB header of AVR Trainer Board with Data header of 128X64 Graphical LCD Interface Board with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 7 )

  • Connect PortD header of AVR Trainer Board with Control header of 128X64 Graphical LCD Interface Board with a 10 to 10 FRC Female Connector.

    Steps - 3 ( 0f 7 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 4 ( 0f 7 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 5 ( 0f 7 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 6 ( 0f 7 )

  • Download the 128X64 Graphical LCD Interfacing with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 7 )

Post a Comment