Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By YigalB
#88929 I would like to stack a TB6612FNG motor driver (fpr example this one: https://www.sparkfun.com/products/14450 ... 1600694119 ) on top of the the Wemos D1 Mini Pinout.
All outputs of the Wemos (that are inputs to the motor driver) neeed to be on the right side, so they can have direct connect when stacking. The rest of the pins will be disconnected.

But in order for this to work, I need to allocate GPIO1, GPIO3 to be general purpose IOs, and cancel the RT/TX task. This can be done by:

pinMode(led_red, FUNCTION_3); //GPIO 1 swap the pin to a GPIO.
pinMode(led_green, FUNCTION_3); //GPIO 3 swap the pin to a GPIO

My question: can I assign the TX/RX part to other pins? I still want to use the serial.print commend with the USB, for the debug process. Can the serial.print work with out the GPIO1/3 active as TX/RX?
User avatar
By schufti
#88937 > I still want to use the serial.print commend with the USB, for the debug process.

then no, as the usb/serial converter is wired to these pins ...
User avatar
By AcmeUK
#88940 If vertical stacking is not of paramount importance you could use a Dual Socket Base Shield for WeMos D1 and modify it to your requirements.
Image
User avatar
By YigalB
#88942
AcmeUK wrote:If vertical stacking is not of paramount importance you could use a Dual Socket Base Shield for WeMos D1 and modify it to your requirements.
Image

Thanks - although I prefer vertical, this is a good idea. I assume the pins are not connected (i.e left side D1 is not hard wired to right side D1 ?).
If I go with vertical, I benefit with few IOs connect directly, but still have to manipulate others (e.g. connect TX to RX and Rx to Tx), so perhaps the dual board is better.