Code: Select all
echo 250 > configs/c.1/MaxPower
botpeddler wrote: ↑Mon Apr 02, 2018 10:06 pmHi,
I followed this tutorial and got my Pi Zero W working as an HID keyboard with python: https://randomnerdtutorials.com/raspber ... board-hid/
I'd like it to work with my iphone using a camera adapter (lightning to USB) cable. However any time I plug the phone via the camera adapter into the data USB port, even when I have another 5V adapter plugged in to the power USB port, the phone says "Cannot Use Device: The connected device requires too much power." Does anyone have any ideas on how to stop this?
I'm thinking either a resistor on the 5V line between the phone and pi, or I might try a powered hub in between the two.
So if powered externally the easiest is probably to cut 5V line from the phone to the pi completely (instead of using any resistor). Thin/tiny USB OTG adapter with 5V pin covered with tape and normal microusb data cable attached to it might do the trick.
Good explanation how it works is here