Connect Android Smartphone to USB Keyboard

by ahmedebeed555 in Circuits > Mobile

8205 Views, 31 Favorites, 0 Comments

Connect Android Smartphone to USB Keyboard

IMG_20180203_214140.jpg

I wanted to try to connect Xiaomi 5A Smartphone to a Keyboard using the OTG (On The Go Cable).

And it just worked perfect.

I also connected the phone to a USB Flash Memory Stick and it could read its files without any extra software.

Here is how I made it.

Bluehost web hosting Service

Here is my Channel on Youtube:

AeroArduino

What Is USB OTG on the Go?

IMG_20180203_211755.jpg

USB communication 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 USB device.

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 device connected to the PC. And it can also act a host when connected to other USB slave devices( USB Flash Memory, Cameras, Keyboard, Mouse)

Bluehost web hosting service

Get the Material

IMG_20180203_211716.jpg
IMG_20180203_211755.jpg
IMG_20180203_211842.jpg
IMG_20180203_211848.jpg
IMG_20180203_212046.jpg
IMG_20180203_212826.jpg

Here is what I used

Xiaomi 5A Smartphone bangood , 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 Keyboard banggood , 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

Bluehost web hosting Service

Connect the USB Flash Memory and the USB Keyboard

IMG_20180203_213606.jpg
IMG_20180203_213442.jpg
IMG_20180203_213345.jpg
IMG_20180203_212147.jpg
IMG_20180203_213933.jpg
IMG_20180203_214126.jpg
Cover Wind.jpg
Cover Learn.jpg

Connect the USB OTG cable to the phone and then connect the USB Flash Memory.

You can see that The USB Flash Memory is powered from the phone.

Open the file explorer built-in application.

You can see the USB Tab on the application indicating the USB Flash memory with its contents.

Then switch to another tab on the files explorer. Remove the USB Flash Memory.

Connect the USB Keyboard to the OTG Cable.

Note that popup indicating a physical USB keyboard connected to the phone.

Open word editor. I used Microsoft Word installed on the phone.

Use the USB keyboard to write on your phone.

This instructable is sponsored by

Bluehost Hosting Serivce

Amazon

Banggood

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.