DIY AVR Graphical LCD test board

Once I’ve got several HQM1286404 graphical LCD displays around so I decided to build a prototyping board where I could easily plug LCD to it, read data via ADC and display graphs, plug keypad if needed for some menu functions. Earlier I was testing graphical LCD on prototype breadboard, but dealing with multiple wires (GLCD needs 20 of them) resulted in many failures. It is OK to do simple tasks, but more serious applications require more stable platform. So here it is:

GLCD_board.jpg

This type of GLCD is standard 128×64 pixel matrix controlled by KS0108 LCD controller. Ones I have comes with smaller non common pin-header where pins have 2mm step, so I had to draw it for Eagle library which you will find in project files. I decided to make very simple circuit so it could fit in 100x50mm single sided PCB. As base MCU I used Atmega16 which can be replaced with Atmega32 which is pin compatible with Atmega16 just have more data memory.

circuit_thumb.png

The main features list:

PCB overlay for quick pin finding:

pcbsilk.png

 

Working with graphical LCD is really simple. Just find suitable KS0108 library and you can output information with few commands. If you work with WinAVR tool-set, I recommend to download KS0108 Library which was written by Fabian Maximilian Thiele some time ago. As his site link is dead you can download it from here.

It is easy to add new characters in this library. Just download GLCDFontCreator2 and with this java program you can fetch fonts from you windows system and automatically convert them to character arrays and save them in .h format ready to include to project.

Download Eagle schematic, PCB and sample WinAVR project.

ScienceProg

https://scienceprog.com/about/

9 Comments:

  1. The board has no RS232 part soldered yet in a picture. It works without it for now. It will be soldered when needed.

  2. Updated picture with all soldered components. Added:
    AREF potentiometer, AVCC 10uH inductor, MAX232 and DB9F connector.

  3. hi please guide me about graphical lcd connection model j12864e-7 thanks a lot and best regard/hamid

  4. sritam paltasing

    nice tutorial

  5. this link i found some more projects on 128×64 Graphics LCD Module
    http://onlinetps.com/shop/index.php?main_page=product_info&cPath=69_107&products_id=511

    (check in product discription)

  6. hi i want to know tht i am using glcd and when i connect to proteus it works but not in real world can u please help me wht cud be the reason i dont even see a grabage values on glcd please help me
    i am using atmega 32

  7. LCD Module @ AORAN

    More many different alphanumeric types ,graphic types, give you plenty to chose from- 1×8 to 4×40 character displays ,122×32 to320x240 Graphic displays. Standard backlight options of low-power electroluminescent, high-brightness EcoBrightTM non-powered backlight by special order. LED or CFL backlights, low profile edge light options for thinner displays.
    Standard or wide-temperature (-20°C to +70°C) operation. All parts can include an HD44780 compatible controller which can be ordered in either: Standard, European, Cyrillic, Russian, or Greek font options.

    With more than hundreds different combinations in our regular range, we have the display for your application. If we haven’t, we can always fully or semi custom them for you!

  8. Your blog has such a great information. Thanks for sharing it!

  9. Taher Kawantwala

    Hello it is really great tutorial. I have interfaced ATmega32 as per your circuit diagram but it is not working on real hardware. It is urgent required me too do this project please help me.
    Thanks in advance

Leave a Reply

Your email address will not be published. Required fields are marked *