user62692: Can an Arduino power a USB device like a tablet from one of it's pins or do I need a relay? I want to essentially have the Arduino turn on and off a USB charger. Thanks 

user26478: If you already have a 5V source then you can use a MOSFET as a switch to turn on/off the power to the tablet like this:

But if you want to turn on/off a USB charger that goes to an AC outlet, then you will need to control a relay to turn on/off the AC supply to the USB charger. You can use a relay module like this: https://www.amazon.com/Tolako-Arduino-Indicator-Channel-Official/dp/B00VRUAHLE


62692: <p>Can an Arduino power a USB device like a tablet from one of it's pins or do I need a relay? I want to essentially have the Arduino turn on and off a USB charger. Thanks </p>
 26478: <p>If you already have a 5V source then you can use a MOSFET as a switch to turn on/off the power to the tablet like this:
<a href="https://i.stack.imgur.com/hPrtH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hPrtH.png" alt="enter image description here"></a></p>

<p>But if you want to turn on/off a USB charger that goes to an AC outlet, then you will need to control a relay to turn on/off the AC supply to the USB charger. You can use a relay module like this: <a href="https://rads.stackoverflow.com/amzn/click/com/B00VRUAHLE" rel="nofollow noreferrer" rel="nofollow noreferrer">https://www.amazon.com/Tolako-Arduino-Indicator-Channel-Official/dp/B00VRUAHLE</a></p>

<p><a href="https://i.stack.imgur.com/FEgKt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FEgKt.png" alt="enter image description here"></a></p>
