Adding a USB extension over a USB OTG connector

OTG is an adapter connection that allows some devices' USB connections to work as hosts. On the Raspberry Pi Zero, we can use a USB OTG adapter to connect any USB device, whether it's a webcam, keyboard, or printer.

Getting ready

You will need a micro-USB OTG adapter. One end is the male micro-USB to connect to the Raspberry Pi Zero, and the other end is the female standard USB to connect devices (such as mice or keyboards). You'll also want a powered USB hub.

A typical USB OTG adapter will look like this:

Getting ready

Micro-USB OTG adapter

How to do it...

A USB OTG cable is really a must-have when starting out with ...

Get Raspberry Pi Zero Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.