Wrover chip: Hardware Serial on pin 17 and 18 (sd2, sd3)

gabriele.agrillo95
Posts: 2
Joined: Mon Sep 02, 2019 8:21 am

Wrover chip: Hardware Serial on pin 17 and 18 (sd2, sd3)

Postby gabriele.agrillo95 » Thu Sep 05, 2019 8:35 am

Hi guys,
I wanted to ask if you know if it's possible to use pin 17 and 18 as hardware serial (which are named as sd2 and sd3 on the wrover datasheet).

I have the lolin d32 pro v2 and, according to the schematics, the tx and rx pins on the header are shared with the usb circuit.

Now my issue is that I need 1 UART to connect a gps module (at high baud rates) but i can't use the serial monitor while the gps is connected or vice versa.

If i directly solder the gps module to those pins, would I be able to have a good connection? Or I'm gonna break something? I saw that those pins are used by the internal SPI flash memory. However I'm not using it but maybe the chip it self do.

Is there an easier way to have a free UART that I'm missing?
Thanks

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Wrover chip: Hardware Serial on pin 17 and 18 (sd2, sd3)

Postby WiFive » Thu Sep 05, 2019 10:53 am

No you can't use those but serial can be configured on any pin

gabriele.agrillo95
Posts: 2
Joined: Mon Sep 02, 2019 8:21 am

Re: Wrover chip: Hardware Serial on pin 17 and 18 (sd2, sd3)

Postby gabriele.agrillo95 » Thu Sep 05, 2019 2:58 pm

Oh,I didn't know i could do that.
After some research i saw that i can use the HardwareSerial class and use it in almost any pin in order to configure UARTs.
Thanks.

Who is online

Users browsing this forum: No registered users and 83 guests