Category Archives: Embedded Lessons


Lab 20: Interfacing a KS0108 based Graphics LCD (Part 2)

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

Read more

How to use mikroElektronika’s GLCD bitmap editor tool to convert a BMP image in to a data array

This tutorial describes 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. It can generate a code equivalent of a BMP image, which can be easily inserted into the microcontroller’s source program.

Read more

DIY plug-in modules to make microcontroller breadboarding easier

Breadboards are a great tool for prototyping and testing electronics circuits. Here I am sharing with you some plug-in modules that I once made to make my breadboarding life easier. I have used these modules many times in the PIC experiments described in this blog. These modules  serve very common functions that are required in most microcontroller circuits. Their use not only reduces the number of wire connections on breadboard, but also expedites prototyping and makes debugging of the circuit easier.

Read more

A DIY I/O board for experimenters

I remember when I first stepped into the world of embedded electronics, I started with doing some basic microcontroller circuits on a breadboard. Breadboard is a wonderful tool for prototyping and testing circuits. When the test of a circuit is successful, you can dissemble it and the board is ready for a new circuit. While working on breadboard was a great learning experience, it was little bit frustrating sometimes when you realized after dissembling a circuit that you have to put it together again or just a part of it for your new project. It happens very often because most

Read more

Lab 18: Matrix keypad interfacing

Matrix keypads are very common input devices in embedded systems. They have simple architecture and are easy to interface. One good thing about them is that they allow you to interface a large number of input keys to a microcontroller with minimum usage of  I/O resources. This tutorial describes two different approaches of reading input data from a 4×4 (16 keys) matrix keypad interfaced to a PIC microcontroller. The pressed key information is displayed on a character LCD. The microcontroller used in this experiment is PIC16F1827.

Read more
« Older Entries Recent Entries »