Android phones typically come with a micro-B USB connection. This USB connection follows the USB on-the-go (OTG) specification so peripherals can be plugged in to the port and be used by the phone.
This project is going to use the capabilities of Circuit Playground Express to act as a human interface device (HID), namely a keyboard. When the user wants the Express to send a key, they'll use a button, the board will translate this to some keyboard character, and the phone will believe a keyboard was used to enter the character.
This type of behavior is useful for a great many projects. Control of devices using alternative interfaces is the most popular. This can be in manufacturing, at home, or in assistive technology (AT) situations where traditional keyboards cannot be conveniently used.
For this project you will need a micro-B male to micro-B male connection that conforms to the OTG specification. Both the phone and the Circuit Playground Express have a micro-B female connector.
The cable at left is the most direct connection. Some electronics stores carry these - Adafruit sells them as product #3610.
There are also a number of other OTG to regular USB connector devices including Adafruit Tiny OTG Adapter and the short USB OTG Host Cable - MicroB OTG male to A female.

Page last edited March 08, 2024
Text editor powered by tinymce.