Connect Arduino to Android through USB
This tutorial will show you how to connect your Android to an Arduino through USB and send data in both directions. Prerequisites Android device Arduino (theoritically from any type, but I'll be using Arduino Leonardo) USB OTG (On-The-Go) Standard USB charger of your phone Wiring must be done this way : Phone ↔ OTG ↔ USB ↔ Arduino Android Side I created a short library to establish the communication, you can take a look at the github page. First you need to create an android studio project and open your module build.gradle file. Add this line to it :…