Adafruit 16x2 LCD doesn't turn on with Pine64
#6
Looks from the pictures that the LCD is connected to the SBC via an MCP23017 to the main i2c bus (pins 3 and 5). Thus I would expect that the connections are ok. The MCP23017 although it runs on 5V uses open-drain on its i2c lines, so these can be used on a 3.3V system such as the Raspberry Pi or Pine A64 without deleterious effect.

This i2c bus will be the one visible as /dev/i2c-1, so the i2cdetect -y 1 command is the one looking in the right place.

But there is another important difference between the PineA64 and the Raspberry Pi when it comes to the main i2c bus, the one on the PI-2-BUS connector pins 3 and 5.  Raspberry Pi has a pair of 1.8 kilo-ohm pull-up resistors on these lines, and the Pine does not have these. So to make things work, I would suggest adding external resistors to make up for the ones missing. They don't have to be as low as 1.8 kOhms, something like 3.3 kOhms will work fine.  One goes between pin 3 and pin 1, the other between pin 5 and pin 1, to pull the two i2c lines up to 3.3 V.

The internal pull-up resistors inside the Pine are 100 kOhm nominal, and this large a resistance does not allow for enough current to operate an i2c bus reliably.

The backlight on the LCD is driven from three of the IO pins on the MCP23017, one each for red (A6), green (A7), and yellow (B0); and all of it gets its 5V power supply via the pin 2.
  Reply


Messages In This Thread
RE: Adafruit 16x2 LCD doesn't turn on with Pine64 - by KnReLe - 08-26-2016, 12:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine64 and Nexdoc mcf 11 19,191 12-05-2017, 03:10 AM
Last Post: Pander
  Mounting RPI3 "hats" on Pine64 gczuczy 5 9,894 07-30-2017, 10:29 AM
Last Post: KnReLe
  adafruit ultimate gps hat mrjake 3 6,739 02-16-2017, 08:15 PM
Last Post: mrjake
  Analog Amplifier for Pine64 mbt28 2 5,072 02-09-2017, 08:46 AM
Last Post: mbt28
  ZJ080NA-08A and pine64 mbt28 4 6,680 10-10-2016, 05:12 AM
Last Post: mbt28
  Euler bus/Pi2 bus on Pine64 xxvolwarexx 1 5,792 10-05-2016, 06:35 PM
Last Post: pfeerick
Exclamation Pine64+ not starting (never) Alex89cgn 1 3,407 08-15-2016, 12:05 PM
Last Post: MarkHaysHarris777
  Pine64 Eagle LBR openhardwarecoza 3 5,793 08-01-2016, 11:05 AM
Last Post: xalius
  Setting up UART2 for Adafruit GPS hat stephen fleming 1 3,478 05-13-2016, 03:20 PM
Last Post: peterz

Forum Jump:


Users browsing this thread: 2 Guest(s)