In the first part of this tutorial, we discussed about Winstar’s WDG0151-TMI GLCD module, which is a 128×64 pixel monochromatic display built with KS0108B and KS0107B compatible display controllers. The module was interfaced to a PIC16F887 microcontroller and a test program was written in C to demonstrate how to implement the KS0108 instruction set in the firmware of PIC to activate display pixels on the screen. We wrote our subroutine programs that would turn the GLCD on, move the display location to a specified row and column, and draw a pixel at a given coordinates. You might have realized it by now that how much of effort is required to write the firmware for just plotting a point on a GLCD screen. Today’s discussion will focus more on using the built-in GLCD library routines of mikroC Pro for PIC compiler, which will make your life a lot easier if you are using a graphical LCD in your project.
The use of a graphical LCD (GLCD) drastically changes the look of your project. It provides more freedom for presenting data than the HD44870 based character LCDs. Today we will see how to interface a KS0108 (name of the display controller chip) based GLCD to a PIC microcontroller. This experimental tutorial is divided into two parts. In the first part, we will see how to write a firmware for the PIC microcontroller to initialize the GLCD and send data to plot points and lines on the screen. The second part will focus more on exploring the built-in GLCD Library of mikroC Pro for PIC compiler to display more complex texts and objects. Since GLCDs are real resource hungry devices (in terms of required I/O pins and memory), a bigger size PIC microcontroller (PIC16F887, which has 36 I/O pins and 14KB flash memory) is selected for this experiment. I am using MikroElektronika’s UNI-DS6 development board to demonstrate this project, but the circuit setup can also be made on a breadboard.
Interfacing a KS0108 based Graphics LCD (Part 1) - [Link]
Embedded Lab has just posted a tutorial on how to use the mikroElektronika’s GLCD bitmap editor tool to convert a monochromatic bit map (BMP) image file into a data array so that it could be displayed on a graphics LCD using a microcontroller. The GLCD bitmap editor tool is embedded into mikroElektronika’s compilers and can generate a code equivalent of a BMP image, which can be easily inserted into the microcontroller’s source program.
Converting bitmap image files to GLCD data array - [Link]
I used a ST7565 GLCD (Graphic Liquid Cristal Display) screen to display the live analog readings from an Arduino.
GLCD Screen Displaying Live Arduino Analogs – [Link]
Saeki Yoshiyasu build a remote controlled GLCD using an Arduino and iPod touch. The project uses a Graphics LCD (KS0107) and for controlling GLCD, he used Arduino and KS0108 library. Firstly he wrote the Arduino code that Arduino receives a drawing data from serial port and draws a picture on GLCD. Secondly he wrote the WebSocket Server in Python/Tornado. This server receives a drawing data from iPod touch/Safari through WebSocket connection and sends the data to Arduino thought Serial port. He used pySerial for Serial communication. Finally he wrote a web page for drawing a picture and sending a drawing data. [via]
Controlling GLCD with Arduino and iPod touch - [Link]
This project is a digital TouchClock that uses your own handwriting to display the time and days in a graphical LCD. You enter the numbers and day names on the configuration mode and the clock is using them to display the info. It uses a 128×64 BLUE/WHITE TOUCHSCREEN GLCD from CircuitED and the ADCs on a PIC18 microcontroller to translate the X and Y coordinates of touchscreen. [via]
TouchClock : Design your own GLCD Clock – [Link]
I now have Touchscreen GLCD’s available on http://circuit-ed.com that are compatible with the mE boards. I connected the 4-wire touchscreen tab to the EasyPIC board by soldering 4 wires of the IDC10 Flat Cable to the touchscreen tab and connecting it directly to the EasyPIC’s PORTA pin connector. On the website is a complete datasheet of the touchscreen and GLCD.
TOUCHSCREEN GLCD Drawing Program - [Link]