Power supply to the USB port on Terra board

This article illustrates how to control the power supply on Terra USB host ports.

Each USB port can shutdown independently via GPIO lines. This is very useful to recover freeze conditions of any USB devices.

The lines used to USB power control are:

Aria G25 pad Atmel line Kernel ID Description
N7 PC5 101 Power control of USB A (1=ON)
N8 PC6 102 Power control of USB B (1=ON)
N9 PC7 103 Power control of USB C (1=ON)

At startup all the power lines are set to ON.

A green led for any USB port indicates the current USB power line state:

Code examples

  • USB line power control. This example simple turn on and off each USB power line each second: usb_power.py

Related link

Buy

TERRA-M
EUR 249.00


Linux embedded board for fast prototyping

TERRA is a carrier board conceived both to evaluate the Aria G25 SoM and to make prototypes or small production batches of OEM equipments using the Daisy cabling system.

The TERRA-M variation is equiped with a GSM/GPRS Quectel M95 quad band modem, a SIM holder and a SMA connector for an external GSM antenna.

| Product description | Terra catalog |