Shop OBEX P1 Docs P2 Docs Learn Events
P2 Demo and Driver for ILI9152 1.44" Color 128x128 LCD — Parallax Forums

P2 Demo and Driver for ILI9152 1.44" Color 128x128 LCD

Cluso99Cluso99 Posts: 18,069
edited 2020-09-08 02:30 in Propeller 2
Here is a demo and driver for the cheap ILI9152 1.44" Color 128x128 LCD available on fleaBay for around $4.

There are routines to draw lines, circles, fill, and a clock face.
There are both 6x8 and 8x8 character fonts included.
Note setting the time is left as an exercise for the user :sunglasses:

Note: The LCD plugs into 8 I/O lines which also provides power and ground to the LCD from P2 I/O pins. The LCD draws minimal current - I've also done this with P1.

P2_ILI9162LCD.jpg

Comments

  • Very cool. Thank you.
  • +1
  • Very nice! Did you make an adapter board for this display or are you just plugging it directly into the P2?
  • Cluso99Cluso99 Posts: 18,069
    I soldered it onto the small Parallax P2-Eval prototype pcb. No additional wires required as the 8 I/Os are brought out to 8 SIL 0.1” pitch pads :)
  • Cluso99 wrote: »
    I soldered it onto the small Parallax P2-Eval prototype pcb. No additional wires required as the 8 I/Os are brought out to 8 SIL 0.1” pitch pads :)
    Cool! I went to the Parallax store and it seems it is only possible to buy that P2-Eval prototype PCB along with all of the other add-ons. Too bad you can't buy them individually.

  • Duane DegnDuane Degn Posts: 10,588
    edited 2020-09-08 18:52
    David Betz wrote: »
    Too bad you can't buy them individually.

    You can't buy the small one by itself but they do sell a larger board individually.
    64005-ESa.jpg
  • Cluso99Cluso99 Posts: 18,069
    I was going to wire it myself on a small piece of 0.1” pitch protoboard using kynar wire - only needs 8 pieces, and a female header.
  • Cluso99 wrote: »
    I was going to wire it myself on a small piece of 0.1” pitch protoboard using kynar wire - only needs 8 pieces, and a female header.

    There has been a bit of confusion on the net about kynar wire, but this is normally the standard wirewrap wire that you strip and solder as nobody actually wirewraps these days (I hope). Some apparently don't bother to strip this but melt through it instead?

    There is the other kind of prototyping wire called verowire or magnet wire with a polyurethane coating that melts at around 350'C so there is no need to strip it, just use a hot iron. I see that prototyping with this has been taken to the extreme and used for BGA packages (check this page).

    I used to use this verowire with a wiring pen and neat wiring combs so that I could run the wire through all the connections and even wrap around a component or socket lead once or twice, then proceed to the next connection etc, all without lifting the pen. Then I would solder up all the joints and then use a craft blade to cut the wire where it should have been cut as it jumped to a new connection. It really created a very neat, tidy, compact and reliable prototype on matrix board.

    btw, please never use "veroboard strip", it is the ugliest most useless prototyping board for anything beyond the 70's (that's half a century ago). Always use plated-through tinned and solder-masked uncommitted matrix board that doesn't try to (in)conveniently join pads together in buses or DIP patterns.

    @Cluso99 - I started looking at some I2C displays that would fit on the back of a P2D2. That are cheap and it sure would be neat!

  • Cluso99Cluso99 Posts: 18,069
    The Kynar wire I use cannot be heated to melt it as it has a teflon type coating. Bought it years ago so not sure if what's available now is the same.

    Some of the wire-wrap wire of the late 70's (the wire-wrapping heydays) had a brittle style coating that would open when the wire was wrapped around a square post, which avoided the requirement to strip the wire first. Many mini-computer motherboards in those days were wire-wrapped.
  • I even remember doing some wire wrapping in the mid 90s at Telstra.

    I found it was useful to make compact boards, though a bit tedious to strip all those wires to the right length. Downside were the prices of all the sockets which typically cost a lot more than the logic ICs. I ended up doing a hybrid thing where I soldered boards with thin wire wrap wire for a few prototypes. Usually turned into a major rats nest by the end but it mostly worked out. Only <20MHz stuff, wouldn't think of it with the P2 now.
  • I stumbled on one of my OLD (25+?) wire wrap prototypes just the other day.
    For laughs I thought I would power it up and see what happens.
    It still works! :)

    BTW Here's a picture of one of the first Apple Mac wire wrap prototypes.
    It was not unusual to prototype this way back then.


    1056 x 784 - 264K
    784 x 1056 - 217K
    800 x 963 - 439K
  • kwinnkwinn Posts: 8,697
    ozpropdev wrote: »
    I stumbled on one of my OLD (25+?) wire wrap prototypes just the other day.
    For laughs I thought I would power it up and see what happens.
    It still works! :)

    BTW Here's a picture of one of the first Apple Mac wire wrap prototypes.
    It was not unusual to prototype this way back then.


    That last picture (bh2pH.jpg) reminds me of a nightmare keypunch interface project I inherited. The University library used punch cards to track the books and wanted the computer to punch the cards using one of the serial ports. The interface consisted of two boards pop riveted together and wired using a "slit & wrap" tool, and the resulting mess was mounted on top of the keypunch electronics chassis. I spent days chasing down intermittent connections before biting the bullet and soldering all the wires to the pins.
  • roglohrogloh Posts: 5,787
    edited 2020-09-12 11:03
    Here's a sample of one of my rats nests. I used wire-wrap wire but soldered it down and it was one of those projects that grew organically so had a lot of rework hence the soldering got pretty ugly but surprisingly it all worked and the wires were okay once protected in its case.

    It was a little embedded system that ran my own virtual machine and had custom byte-banged colour VGA graphics&text video output hardware and PS/2 keyboard, serial port, plus an SD filesystem and amplified synthesized audio. I think it was done in the mid 2000's with an AVR prototyping board before I eventually got into Propellers which would have simplified things big time and made most of it fit in a single chip apart from memory perhaps.

    I did the double decker RAM thing to get up to 128kB of memory which could be bank switched into the 64kB address space and half could be used for video buffers etc. It was a fun project and entirely home grown. Can't say I'm too proud of the etched layout though, what was I even thinking back then? That layout was probably whipped up in 15mins in some dodgy windows paint software by the looks of it, at least it worked.
    800 x 600 - 483K
    800 x 600 - 487K
    1024 x 768 - 1M
    1024 x 768 - 1M
  • kwinnkwinn Posts: 8,697
    I did a few wire wrap projects as well and had no problem with the wire wrap connections. I think that was mainly due to using a tool that had to have the insulation stripped before wrapping the wire around the pin. The slit & wrap tool had a tiny insulation cutter built in to the tip that was supposed to slit the insulation along the length of the wire as it was wrapped around the pin and allow the wire to make a good contact with the pin. Made it possible to connect multiple pins without cutting and stripping multiple lengths of wire, but unfortunately it also made for poor connections.
  • rogloh wrote: »
    Here's a sample of one of my rats nests. I used wire-wrap wire but soldered it down and it was one of those projects that grew organically so had a lot of rework hence the soldering got pretty ugly but surprisingly it all worked and the wires were okay once protected in its case.

    It was a little embedded system that ran my own virtual machine and had custom byte-banged colour VGA graphics&text video output hardware and PS/2 keyboard, serial port, plus an SD filesystem and amplified synthesized audio. I think it was done in the mid 2000's with an AVR prototyping board before I eventually got into Propellers which would have simplified things big time and made most of it fit in a single chip apart from memory perhaps.

    I did the double decker RAM thing to get up to 128kB of memory which could be bank switched into the 64kB address space and half could be used for video buffers etc. It was a fun project and entirely home grown. Can't say I'm too proud of the etched layout though, what was I even thinking back then? That layout was probably whipped up in 15mins in some dodgy windows paint software by the looks of it, at least it worked.

    Oh man what a nest. Happy days, before race conditions...
  • Tubular wrote: »
    Oh man what a nest. Happy days, before race conditions...

    At the time, logic circuits were not that cheap, and bucket-brigade delay lines were on shelves, whenever timing goes haywire.

    Cheapo solutions demanded those "mystery", low-valued, ceramic caps and resistors. I used to hate them, deeply.

    Someday, somewhere, PVT would left you "mostly" naked, on the street: phone calls, angry customers....

  • Yanomani wrote: »
    PVT
    Sorry, too many TLAs (Three-Letter Acronyms) to know what that could mean.
  • YanomaniYanomani Posts: 1,524
    edited 2020-09-15 00:21
    Sorry for a not that usual short form...

    PVT is the short form for Proccess Voltage Temperature:

    signoffsemi.com/pvt-rc-variation-ocv/

    I've no idea about the first time I'd saw it being used here, or from whom, but I'm sure it was at P2 forum threads. :smile:
Sign In or Register to comment.