2
\$\begingroup\$

I'm making a 5 volt portable regulated power supply (using LM7805 regulator IC) for Arduino UNO. I'm planning to use a USB connector as its output socket, this way I can just plug and power the Arduino via USB. My problem is where do I connect the USB sockets's shield ? As far as I know it should be connected to the ground if it is a host device - can we consider the power supply as a host device?

Note: I've asked this question in arduino.stackexchange and advised to get in here.

\$\endgroup\$
1

1 Answer 1

1
\$\begingroup\$

I think most arduinos have the shield connected to USB ground anyways. The rules of the USB spec regarding power, grounding, isolation are often broken - either out of ignorance, cost or laziness. It only becomes a real issue when circuit ground and chassis ground are not the same, which can happen with mains-powered devices.

Quick note: if you are only going to use this for an arduino-application, you can just connect whatever voltage you are regulating directly to the arduino Vin pin. It has it's own local 5V regulator. Of course, using a USB cable might be easier.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks for being Helpful! But I need a usb power supply \$\endgroup\$
    – john smith
    Apr 27, 2017 at 4:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.