Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
379 stars 119 forks source link

GPIO pin mapping inconsistency between silk screen and picture #25

Closed markbirss closed 3 years ago

markbirss commented 3 years ago

https://imgaz.staticbg.com/images/oaupload/banggood/images/7C/F3/09005c65-7fbf-423d-bb64-2eca9abe5f16.jpg.webp

The picture shows

V 21 22 G for the last port

silk screen shows VCC 14 15 G

Cant get either of these too work ?

lewisxhe commented 3 years ago

Ok i will give them feedback, thank you

G6EJD commented 3 years ago

Today I’m going to try out the pins to see if they can be controlled, I don’t envisage any issues but it won’t take long to find the GPIO ports in use. I note that the silk screen says 12.13 and 14,15 with 21,22 being used for the touch interface.

markbirss commented 3 years ago

@G6EJD

Can you confirm the layout of the GPIO pins for the connectors and also the direction for clarity ?

G6EJD commented 3 years ago

I used the bme280 sensor, it needs address 0x77, Wire,begin(14,15); Plugged it into the port marked 14,15 works OK

I used the bme280 sensor, it needs address 0x77, Wire,begin(12,13); Plugged it into the port marked 12,13 IT DOES NOT WORK

The problem is associated with Pin-12, which if it has an external pull-up of any time (the sensor) prevents the ESP32 from booting, and this is what I see happening. Pin-12 was a bad choice and should be changed in later releases of the board.

markbirss commented 3 years ago

@G6EJD

Ok, i will have a look again since i want to enable Flow Control over serial and require 2 more GPIO

G6EJD commented 3 years ago

If you make GPIO-12 an output for the handshake line and that line is pulled low during boot by the external circuit then you'll be OK. A measurement of your disconnected external circuit on the RTS/CTS lines will confirm if you will have an issue.

GPIO-13 is free for use either mode of I/O.

markbirss commented 3 years ago

@G6EJD

Thank you for your guidance,

I will see how that works out, I will use boot_delay in Raspberry to delay the boot up to give the ESP a change (if i use GPIO 12 and have a issue pulling it high)

G6EJD commented 3 years ago

Yes if the RPi leaves GPIO pins high-Z until allocated that should work. If you have a DVM simply measure the voltage on your chosen pin for RTS/CTS then you'll know, any high >2v will be an issue for GPIO-12

We now know the silk-screen pin labelling is correct.

markbirss commented 3 years ago

@G6EJD

Thank you

markbirss commented 3 years ago

Ended up using 12 - RxD ,13 - TxD, 14 - CTS and 15 - RTS and a boot_delay of 2 seconds for now

I dont need to connect anything else to the ESP32 as my USB keyboard works from the Raspberry Pi

20210206_190201

G6EJD commented 3 years ago

Good to see it working.

Hendrikxs commented 2 years ago

New user here, Can you use the touch panel (GPIO 13, 14 and 15) at the same time? Regards,