1

Electronics Newbie!!

I want to connect a USB cable to my Uno's GPIO pins (and then connect it to a USB port on my computer). I have chopped off a USB cable from a keyboard, I read this and I'm hoping that the wires will be in the correct order (the keyboard was made by Dell). I'm a little confused about which wires go where.

asked Jul 30, 2016 at 7:27
3
  • What are you trying to achieve? The link is about power on a USB cable. Commented Jul 30, 2016 at 8:02
  • 1
    What is the purpose of doing that? Using 5v signals on the USB data lines isn't allowed in the USB-specification. You at least need to use a multi-meter to measure which wire, is connected to which pin on the USB socket, as the color-coding isn't always the same. Commented Jul 30, 2016 at 8:02
  • Take some help from attiny designs with USB; electronics.stackexchange.com/questions/84663/… Commented Jul 30, 2016 at 9:50

1 Answer 1

1

The reason you are confused about which wires go where is simply because the Uno has no connection on it for a USB cable's wires.

You cannot directly interface an Uno to a USB port without extra hardware. What hardware you require depends on exactly what it is you think you are trying to achieve.

(There have been some attempts to create a USB device interface purely in software, but personally I wouldn't touch it with a barge pole - the GPIO of the Arduino is not electrically compatible with USB.)

answered Jul 30, 2016 at 9:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.