AZ01C USB-C
Use this page with AI
Explore with your favorite AI
Gemini & other AI
Copy this page’s context into your AI to explore how it works and what you can build.
Copy the prompt, then paste it into Gemini’s message box.
View prompt
Overview
Connect a computer to Leafony over USB-C to program the MCU (microcontroller that runs programs), inspect its output through UART serial communication, and supply 3.3 V power to the Leafony Bus from USB. Programming AP01 requires the manual reset described below.
AZ01C USB-C is a USB-C to UART leaf and the successor to AZ01 USB. The published design uses the FTDI FT234XD for USB-UART conversion and generates 3.3 V power from USB VBUS.
This page describes the design published in the leafony/az01c-usb-c repository. Specifications and components may change in the future.
Main uses
- Programming the MCU on a Leafony leaf
- UART debugging of Leafony leaves
- Supplying 3.3 V power to the Leafony Bus from USB
Features
AZ01C USB-C is a USB-UART leaf with a USB Type-C connector. The TPS6282533 generates 3.3 V from USB VBUS 5 V, then supplies the Leafony Bus 3.3 V rail through a MAX40200AUK+T ideal diode.
The design aims to prevent unnecessary power consumption by the USB-C leaf when USB is disconnected and a battery on another leaf supplies 3.3 V. It limits backfeeding through both the UART signals and the 3.3 V power line. The TS3A4741 physically disconnects TX/RX, while the MAX40200AUK+T blocks reverse current from the 3.3 V power line toward the TPS6282533.
Published specifications
Electrical specifications
| Item | Min | Typ | Max | Unit | Notes |
|---|---|---|---|---|---|
| USB VBUS input voltage | 4.5 | 5.0 | 5.5 | V | Used as a USB-C UFP/Sink |
| Buck output voltage P3V3_BUCK | 3.27 | 3.30 | 3.33 | V | TPS6282533 fixed 3.3 V, ±1% accuracy |
| Leafony Bus 3.3 V output | - | 3.26 | - | V | After MAX40200; approximately 43 mV drop at 500 mA |
| Leafony Bus 3.3 V output current | - | - | 500 | mA | TPS6282533 is rated at 2 A and MAX40200 at 1 A; this design limits the output to 500 mA |
| MAX40200 reverse leakage | - | 0.07 | 1.5 | µA | From Leafony Bus +3.3 V toward P3V3_BUCK |
| UART baud rate | 300 | - | 3,000,000 | baud | FT234XD specification |
| UART I/O logic voltage | - | 3.3 | - | V | FT234XD VCCIO connects to the Leafony Bus 3.3 V rail |
| Idle current with USB connected | - | 12 | - | mA | Estimate including FT234XD, buck converter, MAX40200, and LED circuitry |
| Battery-side current with USB disconnected | - | 0.15 | 2.3 | µA | Calculated from the datasheet values for MAX40200 reverse leakage and TS3A4741 standby current; FT234XD operation with VCC=0 V and VCCIO=3.3 V requires hardware verification |
| Operating temperature | -40 | 25 | +85 | ℃ | Common operating range of the components |
Mechanical specifications
| Item | Specification |
|---|---|
| Dimensions | Leafony 20 mm x 20 mm |
| PCB thickness | 0.8 mm recommended |
| Layers | 4 |
| Assembly | Double-sided |
| USB connector | Hirose CX90M-16P |
| External connection | 29-pin Leafony Bus |
USB specifications
| Item | Specification |
|---|---|
| USB standard | USB 2.0 Full Speed (12 Mbps) |
| Connector | USB Type-C |
| Type-C role | UFP / Sink Only |
| CC resistors | CC1 and CC2 each pulled down to GND through 5.1 kΩ |
| USB PD | Not supported |
| Drivers | FTDI VCP / D2XX |
Circuit design
Power architecture
The TPS6282533 generates the local P3V3_BUCK rail from USB VBUS. The MAX40200AUK+T supplies this power to the +3.3V rail on the Leafony Bus side.
USB VBUS 5V
|
+-- FB1 ---------------------> FT234XD.VCC
| |
| +--> FT234XD.3V3OUT
| |
| +--> TS3A4741.IN1/IN2
|
+----------------------------> TPS6282533.VIN
|
+-- EN = VIN
|
+-- SW -- L1 --> P3V3_BUCK
|
+--> MAX40200AUK+T
VDD = P3V3_BUCK
EN = VDD
OUT = +3.3V rail
|
+--> FT234XD.VCCIO
+--> TS3A4741.V+
+--> LED1 pull-up
+--> Leafony Bus 3.3V (CN1 F1/B1)
P3V3_BUCK is the local power rail between the TPS6282533 and MAX40200. The +3.3V rail is the Leafony Bus power rail after the MAX40200. If another leaf supplies the Leafony Bus 3.3 V while USB is disconnected, the MAX40200 blocks reverse current along +3.3V rail -> P3V3_BUCK -> TPS6282533.SW/VIN -> VBUS. The voltage drop across the MAX40200 makes the effective Leafony Bus voltage lower than the TPS6282533 output.
| State | Power | UART signals | Notes |
|---|---|---|---|
| USB connected, no external 3.3 V | TPS6282533 supplies 3.3 V to the Leafony Bus | TS3A4741 ON | Normal USB-UART operation |
| USB disconnected, no external 3.3 V | VBUS=0 V, P3V3_BUCK=0 V, Leafony Bus 3.3 V=0 V | TS3A4741 OFF | The board is effectively powered off |
| USB disconnected, another leaf supplies 3.3 V | External power is applied to Leafony Bus 3.3 V; MAX40200 blocks reverse current toward the buck converter/VBUS | TS3A4741 OFF | Switch control is OFF because FT234XD.3V3OUT=0 V |
| USB connected, another leaf also supplies 3.3 V | Check for conflicts between power sources | TS3A4741 ON | If simultaneous supplies are allowed, verify the system’s power ORing design |
When USB is disconnected and another leaf supplies 3.3 V, voltage is applied to FT234XD.VCCIO, TS3A4741.V+, and the LED1 pull-up, which are all connected to the +3.3V rail after the MAX40200. FT234XD.VCC comes from VBUS and is therefore 0 V; FT234XD.3V3OUT is also 0 V. The TS3A4741 disconnects UART TX/RX.
In this state, the estimated battery current flowing into the USB-C leaf is approximately 0.15 µA typical and 2.3 µA maximum, based on datasheet specifications. This consists of MAX40200 reverse leakage (0.07 µA typical / 1.5 µA maximum) and TS3A4741 VCC standby current (0.075 µA typical / 0.75 µA maximum). FT234XD is excluded from this estimate because VCC=0 V with VCCIO=3.3 V is outside its normal operating conditions specified in the datasheet. Measure the Leafony Bus 3.3 V current on actual hardware with USB disconnected.
Backfeed prevention
| Path | Risk | Measure |
|---|---|---|
| UART TX/RX signals | Another leaf’s MCU TX/RX can partially power FT234XD through its I/O protection structures | Insert TS3A4741 in series with TX/RX and turn it OFF when USB is disconnected |
| 3.3 V power line | Another leaf’s 3.3 V can flow backward from TPS6282533 SW/L1 toward VIN/VBUS | Insert MAX40200AUK+T in series between P3V3_BUCK and Leafony Bus 3.3 V |
TS3A4741 IN1/IN2 connect to FT234XD.3V3OUT. With USB connected, FT234XD operates and 3V3OUT goes High, connecting TX/RX. With USB disconnected, 3V3OUT becomes 0 V and TX/RX are physically disconnected.
MAX40200 VDD connects to P3V3_BUCK, OUT to Leafony Bus 3.3 V, and EN to VDD. It supplies the Leafony Bus from the TPS6282533 when USB is connected and blocks reverse current from Leafony Bus 3.3 V toward the buck converter/VBUS when USB is disconnected.
USB Type-C configuration
The USB-C port is configured as a device (UFP/Sink).
| Signal | Connection |
|---|---|
| CC1, CC2 | Each pulled down to GND through 5.1 kΩ |
| VBUS | A4, A9, B4, and B9 tied together to the 5 V input |
| GND | A1, A12, B1, and B12 connected to the ground plane |
| D+, D- | Signals with the same name on sides A and B connected on the PCB and routed to FT234XD |
| SBU1, SBU2 | NC |
USB PD is not supported. The CC resistors alone identify the port as a USB Type-C Sink/UFP.
ESD protection
USBLC6-2P6 protects the D+/D- lines. It is placed near the USB-C connector to keep stubs on D+/D- short. VBUS enters the board through FB1. Consider provisions for an additional VBUS TVS diode if needed.
Communication indicator LED
FT234XD CBUS0 is configured for TX&RXLED# mode to drive a shared TX/RX communication indicator LED.
Leafony Bus pin assignment
| Pin name | Front / Back | Signal | Purpose |
|---|---|---|---|
| 3.3V | F1 / B1 | +3.3V rail | 3.3 V power after MAX40200; supplies up to 500 mA from USB to other leaves |
| VBUS | F3 / B3 | VBUS 5V | USB VBUS, available to other leaves that need it |
| D0 | F18 / B18 | UART TX | From FT234XD TXD to another leaf’s MCU RX, through TS3A4741 Ch1 |
| D1 | F20 / B20 | UART RX | From another leaf’s MCU TX to FT234XD RXD, through TS3A4741 Ch2 |
| GND | F27 / B27 | GND | Common ground |
Main components
| Ref | Part number | Function |
|---|---|---|
| U1 | TS3A4741DCNR | 2-channel SPST analog switch for disconnecting UART TX/RX |
| U2 | USBLC6-2P6 | USB D+/D- ESD protection |
| U3 | FT234XD | USB-UART bridge |
| U4 | TPS6282533DMQR | Buck converter generating 3.3 V from 5 V |
| U5 | MAX40200AUK+T | Ideal diode preventing reverse current in the 3.3 V power line |
| J1 | CX90M-16P | USB Type-C receptacle |
| L1 | 0.47uH | Inductor for TPS6282533 |
| FB1 | 600Ω @ 100MHz | VBUS input noise suppression |
Software
Uploading to AP01 AVR MCU
In the published schematic, FT234XD has no DTR pin and its RTS pin is unconnected. AZ01C therefore has no connection that drives the MCU RESET signal and cannot reset AP01 simply by opening the port. The D2 in the IC pin name RTS/D2 is an alternate IC function, not a connection to Leafony Bus D2.
- In Arduino IDE, select Arduino Pro or Pro Mini, processor ATmega328P (3.3V, 8 MHz), and the serial port that belongs to AZ01C.
- Run Verify to check compilation. Close other IDE instances, serial monitors, or applications using the same port.
- Hold the AP01 reset switch while starting Upload. Release it when the IDE switches from compiling to uploading.
- Check that the IDE reports upload completion. If it reports
not in syncor a similar error, check the board and port settings and try adjusting the release timing.
The time available after reset depends on the bootloader installed on AP01. Match the reset release to the start of uploading rather than relying on a fixed number of seconds.
If the LCD or another leaf covers the switch, disconnect all power sources, including USB and batteries, before removing that leaf. After uploading, disconnect all power again before rebuilding the stack. Unplugging USB does not power-reset the MCU while another supply remains active.
Drivers
Use the official FTDI VCP or D2XX driver.
| OS | Driver | Notes |
|---|---|---|
| Windows 10/11 | Standard driver installed automatically | Use the official FTDI driver if needed |
| macOS | Standard Apple FTDI driver | macOS 10.9 or later |
| Linux | ftdi_sio | Automatically recognized by many distributions |
Initial configuration (FT_PROG)
Configure the following values in the FT234XD’s built-in MTP before mass production.
| Parameter | Value | Notes |
|---|---|---|
| CBUS0 Function | TX&RXLED# | For the LED1 communication indicator |
| Manufacturer Name | User-defined | Example: mitdir |
| Product Description | User-defined | Example: Leafony USB-UART Bridge |
| Serial Number | Unique value | Identifies each device when multiple units are connected |
| USB Vendor ID | 0x0403 | FTDI default |
| USB Product ID | 0x6015 | FT-X default |
Design considerations
- Verify that FT234XD can tolerate VCC=0 V with VCCIO=3.3 V when USB is disconnected and another leaf supplies 3.3 V.
- Measure the current flowing from Leafony Bus 3.3 V into the USB-C leaf on actual hardware with USB disconnected and another leaf supplying 3.3 V.
- If another leaf’s 3.3 V supply is also active while USB is connected, check for conflicts between power sources and verify the power ORing design.
- Account for the MAX40200 voltage drop and verify that the minimum voltage on the Leafony Bus 3.3 V rail meets the requirements of the connected leaves.
Documents
Revision history
- April 2026: Added an overview based on publicly available information
- June 2026: Added the estimated battery-side current with USB disconnected and descriptions of operating states
