Here’s not a real schematic but it makes it clear what goes where.
This can be power from USB or by supplying 5V from a adapter.