Introduction: Connect Android Smartphone to USB Keyboard
I wanted to try to connectXiaomi 5A Smartphone to a Keyboardusing theOTG (On The GoCable).
I also connected the phone to a USB FlashMemory Stick and it could read its files without any extrasoftware.
Here is my Channel on Youtube:
AeroArduino
Step 1: What Is USB OTG on the Go?
USBcommunication is established between a host(PC for example) and a slave(USB Keyboard or Flash memory).
OTG is a technology that enables you to use USB devices without a PC as a host. That's because OTG devices can work both as a master or a slave USBdevice.
You can find this feature on devices like Smartphones, Cameras, etc.
Xiaomi 5a Smartphone supports OTG technology and hence can be used a slave USB deviceconnected to the PC. And it can also act a host when connected to otherUSB slave devices( USBFlashMemory, Cameras, Keyboard, Mouse)
Step 2: Get the Material
Here is what I used
Xiaomi 5A Smartphonebangood , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR , eBay , souq
USB OTG (On The Go) Cable banggood , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR , eBay , souq
USB Keyboardbanggood , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR , eBay , souq
USB Flash Memory (Used independently as a side experiment) banggood , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR , eBay , souq
Step 3: Connect the USB Flash Memory and the USB Keyboard
Connect the USB OTG cable to the phone and then connect the USB Flash Memory.
You can see that The USB FlashMemory is powered from the phone.
Open the file explorer built-in application.
You can see the USB Tab on the application indicating the USBFlashmemory with its contents.
Then switch to another tab on the files explorer. Remove the USB FlashMemory.
Connect the USB Keyboard to theOTG Cable.
Note that popup indicating a physicalUSBkeyboard connected to the phone.
Open word editor. I used Microsoft Word installed on the phone.
Use the USBkeyboard to write on yourphone.
This instructable is sponsored by
eBay
Aliexpress
Souq
Here is my Channel on Youtube:
AeroArduino
Check my Books on Amazon. https://www.amazon.com/author/ahmedebeed
Thank you for reading.