KS0108 Graphical LCD

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

KS0108 Graphical LCD

Post by JohnCrow »

I've just connected up a 128x64 Graphical LCD using the KS0108 controller.
The use of this has now been simplified with the addition of a component in FC6. (I have used the display before, but with a I2C controller)

I have attached a simple flowchart to use it as a bar graph temperature display.
I have kept it simple using only integer math.
Temperature is measured using a LM35 type temperature sensor.

The display can be configured as white on blue or blue or blue on white.
It can also be used in either landscape or portrait mode. by simple changes in the component properties.

Wires for the contrast pot and back-light resistor(560-R) are run under the display.
5V and ground are connected via the screw terminal at the top right, though ground can be taken to the 9-pin connectors as with all standard e-blocks.
Display_Small.jpg
Display_Small.jpg (96.72 KiB) Viewed 10362 times
System_Small.jpg
System_Small.jpg (59.89 KiB) Viewed 10362 times
Simple Temp Display.fcfx
(10.33 KiB) Downloaded 652 times
1 in 10 people understand binary, the other one doesn't !

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: KS0108 Graphical LCD

Post by Steve001 »

looks like a nice project john, what display is that ?

steve
Success always occurs in private and failure in full view.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: KS0108 Graphical LCD

Post by JohnCrow »

Hi Steve

Its a standard graphical LCD with the KS0108 controller (It actually has 2 controllers, but that is transparent to FC)
I got it from a firm in Sheffield who does a lot of Microcontroller stuff (ByVac)
I've mostly got bits from him at the National Hamfest at Newark showground over the last 3 years, but he supplies by post as well.
Nice products.

http://www.byvac.com/bv3/index.php?rout ... duct_id=60

I want to add a couple of 9-pin d connectors using the breakout boards I've used on other boards, but I need to order some more once I get a list of bits sorted.
This will be easier than wiring all those single jumpers every time I want to use it.
1 in 10 people understand binary, the other one doesn't !

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: KS0108 Graphical LCD

Post by Steve001 »

Thanks for that john

Havent been to a ham fair for a couple of years now will have to look out for some
JohnCrow wrote:I want to add a couple of 9-pin d connectors using the breakout boards
:D

they do make things easier .. the first five i used i soldered them upside down :oops: :oops: :lol: :lol: :lol:


steve
Success always occurs in private and failure in full view.

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: KS0108 Graphical LCD

Post by Kenrix2 »

I have the V6 free edition v6.0.4.0(27.11.2013), it is past the 30 day trial, and I get this error when I try to open your project:

Failed to open document.
Attribute <start> is not found

I am very curious how you did the bar graph. Any Ideas on how I can open this?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: KS0108 Graphical LCD

Post by Benj »

Hello,

John has access to the VC release of Flowcode which is slightly more up to date then the public release.

I am talking with Jonny now to see if there is an easy way of opening John's example using 6.0.4 so please bear with us.

stewartbaker
Posts: 116
Joined: Tue Jul 17, 2012 9:34 am
Been thanked: 18 times
Contact:

Re: KS0108 Graphical LCD

Post by stewartbaker »

Yes, I found this as well.

3rd time of happening :-)

Stewart

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: KS0108 Graphical LCD

Post by JohnCrow »

I've added a couple of D-Plugs so the board can be connected easily.

The Flowcode component defaults to Port C & Port B, but it will work if the Port B pin settings are changed to Port D.
That way it can be plugged onto the programmer directly rather than having to use ribbon cables

The header pins have been left connected so the display can be used with the Arduino
Finished.jpg
Finished.jpg (88.96 KiB) Viewed 10206 times
1 in 10 people understand binary, the other one doesn't !

anglenasalt
Posts: 1
Joined: Wed Jan 29, 2014 5:37 am
Contact:

Re: KS0108 Graphical LCD

Post by anglenasalt »

it looks like a nice project john, what display is that ?
*sofiazoe*

Post Reply