Power Arduino Nano with OTG cable I have a project that I am putting an Arduino Nano in an enclosed box that will light LEDs in a pattern. I am planning to power it with a 5 V power brick but I would like to build a way a update the code to the Arduino without needing to disassemble the box. 

Could I use an OTG cable with power (OTG Y cable)  to accomplish this? or is there a better way to do this?
It is possible to use a OTG Y cable just plug it into your phone, power cable into the power source and use the third connector to connect  to your PC. (Assuming the PC only gets GND, D+ and D- and battery bank GND, 5V) 

It is also possible to reprogram an Arduino with an Android device that has OTG support.
Would save you a bit of hassle. 

My Android phone (LG D605) with ArduinoDroid can easily upload code to my Nano and Uno.