pinout for the Colour LCD skin LCD160CRv1.0H

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
gratefulfrog
Posts: 144
Joined: Sun Mar 01, 2015 12:10 pm

pinout for the Colour LCD skin LCD160CRv1.0H

Post by gratefulfrog » Tue Nov 20, 2018 7:40 pm

Hi,

I'm considering using this LCD skin in a project but can't see what connections it needs? I won't be plugging it directly into the pyboard, but into a custom PCB.

I need to know how many I/O pins this LCD will require because my application is already very I/O hungry.

My other option is to use an OLED and some pushbuttons but that also requires quite a few pins.

Any thoughts or info would be great!

Thanks,
Bob

User avatar
dhylands
Posts: 3204
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by dhylands » Tue Nov 20, 2018 10:23 pm

This page: https://store.micropython.org/product/LCD160CRv1.0 has a link to the schematics for the board.

Which connections you use will depend on whether you're just using the LCD or also using the touch capabilities.

And this picture may help:
https://store.micropython.org/product/L ... 1.0#image7

And this post: viewtopic.php?f=14&t=4403

gratefulfrog
Posts: 144
Joined: Sun Mar 01, 2015 12:10 pm

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by gratefulfrog » Wed Nov 21, 2018 6:27 pm

Hi Dave,

Thanks for those pointers.

If I understood well, I could just use 2 I2C pins to send to and read from the LCD, given that I provide power & GND to it from another source?

Yet, when I look at the driver code, it seems to require an SPI object at instantiation as well? If that is true, how do you set enable the LCD to receive SPI ? I mean set an input to LOW or HIGH ? And will this not interfere with other usage I may have of the SPI bus?

Thanks, again!
Bob

User avatar
dhylands
Posts: 3204
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by dhylands » Wed Nov 21, 2018 6:47 pm

I think that while its possible to write to the LCD using just I2C, using SPI is much faster. I personally haven't played with the display, so I'm not sure exactly what you can and can't do.

Maybe others have? The reference manual should be useful: https://micropython.org/resources/LCD16 ... manual.pdf

It looks like the driver requires SPI, but the display doesn't, so you'll need to modify the driver to make it i2c only.

User avatar
rcolistete
Posts: 150
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by rcolistete » Thu Nov 22, 2018 2:53 am

I use it only with I2C, no issue at all.

gratefulfrog
Posts: 144
Joined: Sun Mar 01, 2015 12:10 pm

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by gratefulfrog » Thu Nov 22, 2018 9:42 am

rcolistete wrote:
Thu Nov 22, 2018 2:53 am
I use it only with I2C, no issue at all.
Thanks for that info. Just to be sure, you use it with only SDA and SCL connected to the pyboard? not counting Power and GND which can come from anywhere, of course.

Thanks!
B

User avatar
rcolistete
Posts: 150
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by rcolistete » Fri Nov 23, 2018 12:15 pm

4 I2C wires connected to Pyboard : GND, 3V3, SCL (e. g., X9), SDA (e.g., X10).

A 2nd I2C sensor with the same I2C address can be connected to Pyboard by using the LCD160CR bottom connector.

gratefulfrog
Posts: 144
Joined: Sun Mar 01, 2015 12:10 pm

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by gratefulfrog » Sat Nov 24, 2018 12:30 pm

Thanks for all that info!

I now realize that the LCD is out of stock but as soon as it's available I'll order one and try it out and report back!

Ciao,
B

User avatar
pythoncoder
Posts: 3506
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by pythoncoder » Mon Nov 26, 2018 9:32 am

There is a new version of the LCD160CR in the works. The SPI interface is used for the "advanced commands" listed here. If you're driving it directly you can opt not to use those commands. If you plan to use a library written by someone else, you'll need to check for usage.
Peter Hinch

chuckbook
Posts: 91
Joined: Fri Oct 30, 2015 11:55 pm

Re: pinout for the Colour LCD skin LCD160CRv1.0H

Post by chuckbook » Tue Nov 27, 2018 4:36 pm

Note that LCD160CR needs to be turned on by pulling X4 high.
It's also worth mentioning that LCD160CR supports UART communication, but there is no HW flow control.
Minimal interface in I2C mode is:
VIN, GND, SCL, SDA and X4 to turn on the display.
Instead of X4 the 3.3V input on the 10-pin connector can be used.

Post Reply