Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

My GLCD Touchscreen project (In progress)

Status
Not open for further replies.

birdman0_o

Active Member
To start off, here's the latest update of what I've been working on:


Now here's a short description, I can probably fill in the details by answering questions. I am using a pic16f887 in conjunction with the touchscreen GLCD from www.circuit-ed.com (Cost me about 30$). It is a 4 wire touchscreen, 128x64 pixel GLCD which has an RGB backlight. Also I am using an SPI EEPROM to store all the pictures and characters (Not shown in this video but you can view them by accessing my youtube homepage).

Firstly, I am aware of the arrant pixels, I plan on fixing those soon.

These are the steps I took to teach myself how to make this.

For GLCD:

1) Draw a pattern on the glcd (nothing from memory).
2) Get the memory to work.
3) Draw a picture from memory onto GLCD
4) Get pixel operation to work (not byte) so I can set pixel (x,y)

For Touchscreen:

1) Get basic 4 wire to work
2) Write code to know "when it is being pressed"
3) Write code to separate screen into virtual squares and know which square is being pressed
4) Get coordinates from 0 to 127 and 0 to 63

Putting these two together you can then draw onto a GLCD :)

I'll attach the code (it's in assembly) for anybody who might be interested.

Open to any questions and helping other with similar projects! :)
 

Attachments

  • GLCD_ColorDraw.asm
    31.5 KB · Views: 225
  • SAM_1895.JPG
    SAM_1895.JPG
    2.8 MB · Views: 347
  • SAM_1904.JPG
    SAM_1904.JPG
    2.8 MB · Views: 273
Last edited by a moderator:
Way to go! I have that same display from circuit-ed but I haven't done anything with it yet.

Happy Holidays everyone!

Cheerful regards, Mike McLaren, K8LH
 
Hi Jason,

K8LH is my Amateur Radio call sign... It's an "extra class" license (the highest license) because I got "extra class" (lol)...

Regards...
 
Last edited:
Hello birdman0_o

Did you wrote a test code working in C18 Microchip ?

If so i would be pleased to try it .

Many thanks,
 
This is really cool Boo! Would you say it's more for those Palm-type devices (with that little plastic pencil) or like a keyboard?
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top