Wiring lcd160cr with side headers to pyboard?

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
User avatar
fos
Posts: 44
Joined: Sat Feb 18, 2017 3:05 pm
Location: Texas
Contact:

Wiring lcd160cr with side headers to pyboard?

Post by fos » Fri Feb 16, 2018 3:16 am

I recently received an lcd160cr mounted in one of the aluminum cases. The tutorial indicates jumpers connecting to the pyboard but it is not clear for my poor eyes. I don't want to fry my new display, what are the connections points for the side mounted headers.

Thank you,
v/r
Jeff

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

Re: Wiring lcd160cr with side headers to pyboard?

Post by pythoncoder » Fri Feb 16, 2018 7:16 am

The side mounted headers are designed to connect to a similar set of side mounted headers on the Pyboard as in this image with the Pyboard in this housing. So if you fit a set of right angled headers to your Pyboard you simply plug them together.
Peter Hinch
Index to my micropython libraries.

User avatar
fos
Posts: 44
Joined: Sat Feb 18, 2017 3:05 pm
Location: Texas
Contact:

Re: Wiring lcd160cr with side headers to pyboard?

Post by fos » Fri Feb 16, 2018 1:52 pm

I am trying to decipher which pins are actually necessary to drive the display. I would like to use the minimal number of jumpers.

Thank you,
v/r
Jeff

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

Re: Wiring lcd160cr with side headers to pyboard?

Post by dhylands » Fri Feb 16, 2018 7:49 pm

The schematics are available here: https://micropython.org/resources/LCD16 ... matics.pdf

It looks like pins Y1, Y2, Y4, Y6, Y8, Y9, Y10, Y11, V+, and GND are required (or replace the Y's with X's) or some other variations according to the documentation (i.e. it depends on how its plugged in).

User avatar
fos
Posts: 44
Joined: Sat Feb 18, 2017 3:05 pm
Location: Texas
Contact:

Re: Wiring lcd160cr with side headers to pyboard?

Post by fos » Fri Feb 16, 2018 8:15 pm

I am referencing this photo in the documentation: https://store.micropython.org/product/L ... 1.0#image7

In that photo, it appears five lines are connected. Is that sufficient to run the display? I will try to compare between the photo, the side pins and the ones on the bottom.

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

Re: Wiring lcd160cr with side headers to pyboard?

Post by dhylands » Fri Feb 16, 2018 8:56 pm

A quick look at the reference manual suggests that the LCD can use any of I2C SPI or UART, so I think it boils down to performance, and connecting just the I2C bus (as is done in the photo) is probably sufficient to use it.

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

Re: Wiring lcd160cr with side headers to pyboard?

Post by pythoncoder » Sat Feb 17, 2018 7:25 am

The driver (class constructor) looks like it requires an SPI and an I2C interface.
Peter Hinch
Index to my micropython libraries.

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

Re: Wiring lcd160cr with side headers to pyboard?

Post by chuckbook » Sat Feb 17, 2018 9:58 am

LCD160CR can be connected in various ways:

unidirectional UART, default 115200 baud (just output mode, no return of any information from LCD160CR):
signals & supply:
GND
V+ (3.3V..15V)
X1 or Y1,
X4 or Y4 or 3V3
In this mode any commands are interpreted. Plain ASCII (UTF-8 for font 2) is immediately displayed on screen.
No information is returned to the host.

bidirectional UART
signals & supply:
same as unidirectional UART + X2 or Y2

I2C only (up to 1000000 baud)
signals & supply:
GND
V+ (3.3V..15V)
X4 or Y4 or 3V3
SDA
SCL

FULL mode (SPI up to 13.5 MHz):
signals & supply:
GND
V+ (3.3V..15V)
X4 or Y4 or 3V3
SDA
SCL
SCK
MOSI

Notes:
1. If 3V3 is used make sure the controlling output can provide up to 20mA.
2. The default library assumes FULL mode.

User avatar
fos
Posts: 44
Joined: Sat Feb 18, 2017 3:05 pm
Location: Texas
Contact:

Re: Wiring lcd160cr with side headers to pyboard?

Post by fos » Sat Feb 17, 2018 10:24 am

Thank you to everyone for your support. My vision is poor enough that it is difficult to follow dense schematics. My field of view is very small. The pin specifications on the previous post is most helpful.

Thank you!

User avatar
fos
Posts: 44
Joined: Sat Feb 18, 2017 3:05 pm
Location: Texas
Contact:

Re: Wiring lcd160cr with side headers to pyboard?

Post by fos » Wed Feb 21, 2018 12:38 am

I must have bricked my display somehow. I have never gotten a pixel out of it. :(

I may experiment more this weekend.

fos1

Post Reply