# Wiring on USB when rediricting serial to USB

**URL:** <https://forum.makecode.com/t/wiring-on-usb-when-rediricting-serial-to-usb/15612>\
**Category:** micro:bit\
**Created:** [September 26, 2022, 5:04pm UTC](https://forum.makecode.com/t/wiring-on-usb-when-rediricting-serial-to-usb/15612 "2022-09-26T17:04:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Svein-Tore](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/svein-tore/32/6877_2.png) [@Svein-Tore](https://forum.makecode.com/u/Svein-Tore)\
**Post date:** [September 26, 2022, 5:04pm UTC](https://forum.makecode.com/t/wiring-on-usb-when-rediricting-serial-to-usb/15612/1 "2022-09-26T17:04:14Z")

</div>

Hi!  
I have a special setup and I want to send serial data over USB. On the USB side I want to know how the wiring are. The USB cable for the Micor:bit has 4 wires:

![pinout_USB](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e2a818a722ac970af981e4e120beae70c8ad5897.png)

Red: 5V  
Black: GND  
Green: D+  
White:D-

I have looked at some USB to serial cables, and here the wiring is as follow:

![usb_to_serial](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/39ec69b9efb254fa7fa0b59207e90454001940ff.png)

Black:GND  
red:5V  
Green: TX  
White:RX

So I just Wonder, when I’m using serial redirect to USB in Makecode, Will the green wire one the Microbit USB cable work as TX, or is it more complicated to read the TX?

Svein-Tore

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [September 26, 2022, 6:14pm UTC](https://forum.makecode.com/t/wiring-on-usb-when-rediricting-serial-to-usb/15612/2 "2022-09-26T18:14:37Z")

</div>

No, USB is a very complicated protocol! There is a reason USB to UART devices exist!
