Micropython library to connect WCMCU-752 2-UART Expansion board (SC16IS752) to ESP-32
My goal was to connect the third GM-60 Qr-code reader to ESP-32 which controls a club entrance. ESP-32 has only 2 UARTs so I bought the WCMCU-752 2-UART Expansion board from Aliexpress.
I didn't find a SC16IS752 library for Micropython, so I ported a suitable lib from C++. Only I2C communication has been ported, if you need SPI, you can easily add it yourself.
There is also a small script test_uart.py which allows to test the lib with GM-60 or any other device which transmits smth to UART.
SC16IS752 | ESP-32 |
---|---|
VCC | 5V |
GND | GND |
RESET | N/C |
A0/CS | 5V |
A1/SI | GND (this gives addr 76 |
NC/SO | N/C |
IRQ | 17* |
I2C/SPI | 5V |
SCL/SCLK | 18 |
SDA/VSS | 19 |
GM-60 | ESP-32 | WCMCU-752 |
---|---|---|
GND | GND | N/C |
RXD | N/C | TXA |
TXD | N/C | RXA |
VCC | 3.5V | N/C |