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.

Open Gemini

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

ItemMinTypMaxUnitNotes
USB VBUS input voltage4.55.05.5VUsed as a USB-C UFP/Sink
Buck output voltage P3V3_BUCK3.273.303.33VTPS6282533 fixed 3.3 V, ±1% accuracy
Leafony Bus 3.3 V output-3.26-VAfter MAX40200; approximately 43 mV drop at 500 mA
Leafony Bus 3.3 V output current--500mATPS6282533 is rated at 2 A and MAX40200 at 1 A; this design limits the output to 500 mA
MAX40200 reverse leakage-0.071.5µAFrom Leafony Bus +3.3 V toward P3V3_BUCK
UART baud rate300-3,000,000baudFT234XD specification
UART I/O logic voltage-3.3-VFT234XD VCCIO connects to the Leafony Bus 3.3 V rail
Idle current with USB connected-12-mAEstimate including FT234XD, buck converter, MAX40200, and LED circuitry
Battery-side current with USB disconnected-0.152.3µACalculated 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-4025+85℃Common operating range of the components

Mechanical specifications

ItemSpecification
DimensionsLeafony 20 mm x 20 mm
PCB thickness0.8 mm recommended
Layers4
AssemblyDouble-sided
USB connectorHirose CX90M-16P
External connection29-pin Leafony Bus

USB specifications

ItemSpecification
USB standardUSB 2.0 Full Speed (12 Mbps)
ConnectorUSB Type-C
Type-C roleUFP / Sink Only
CC resistorsCC1 and CC2 each pulled down to GND through 5.1 kΩ
USB PDNot supported
DriversFTDI 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.

StatePowerUART signalsNotes
USB connected, no external 3.3 VTPS6282533 supplies 3.3 V to the Leafony BusTS3A4741 ONNormal USB-UART operation
USB disconnected, no external 3.3 VVBUS=0 V, P3V3_BUCK=0 V, Leafony Bus 3.3 V=0 VTS3A4741 OFFThe board is effectively powered off
USB disconnected, another leaf supplies 3.3 VExternal power is applied to Leafony Bus 3.3 V; MAX40200 blocks reverse current toward the buck converter/VBUSTS3A4741 OFFSwitch control is OFF because FT234XD.3V3OUT=0 V
USB connected, another leaf also supplies 3.3 VCheck for conflicts between power sourcesTS3A4741 ONIf 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

PathRiskMeasure
UART TX/RX signalsAnother leaf’s MCU TX/RX can partially power FT234XD through its I/O protection structuresInsert TS3A4741 in series with TX/RX and turn it OFF when USB is disconnected
3.3 V power lineAnother leaf’s 3.3 V can flow backward from TPS6282533 SW/L1 toward VIN/VBUSInsert 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).

SignalConnection
CC1, CC2Each pulled down to GND through 5.1 kΩ
VBUSA4, A9, B4, and B9 tied together to the 5 V input
GNDA1, 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, SBU2NC

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 nameFront / BackSignalPurpose
3.3VF1 / B1+3.3V rail3.3 V power after MAX40200; supplies up to 500 mA from USB to other leaves
VBUSF3 / B3VBUS 5VUSB VBUS, available to other leaves that need it
D0F18 / B18UART TXFrom FT234XD TXD to another leaf’s MCU RX, through TS3A4741 Ch1
D1F20 / B20UART RXFrom another leaf’s MCU TX to FT234XD RXD, through TS3A4741 Ch2
GNDF27 / B27GNDCommon ground

Main components

RefPart numberFunction
U1TS3A4741DCNR2-channel SPST analog switch for disconnecting UART TX/RX
U2USBLC6-2P6USB D+/D- ESD protection
U3FT234XDUSB-UART bridge
U4TPS6282533DMQRBuck converter generating 3.3 V from 5 V
U5MAX40200AUK+TIdeal diode preventing reverse current in the 3.3 V power line
J1CX90M-16PUSB Type-C receptacle
L10.47uHInductor for TPS6282533
FB1600Ω @ 100MHzVBUS 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.

  1. In Arduino IDE, select Arduino Pro or Pro Mini, processor ATmega328P (3.3V, 8 MHz), and the serial port that belongs to AZ01C.
  2. Run Verify to check compilation. Close other IDE instances, serial monitors, or applications using the same port.
  3. Hold the AP01 reset switch while starting Upload. Release it when the IDE switches from compiling to uploading.
  4. Check that the IDE reports upload completion. If it reports not in sync or 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.

OSDriverNotes
Windows 10/11Standard driver installed automaticallyUse the official FTDI driver if needed
macOSStandard Apple FTDI drivermacOS 10.9 or later
Linuxftdi_sioAutomatically recognized by many distributions

Initial configuration (FT_PROG)

Configure the following values in the FT234XD’s built-in MTP before mass production.

ParameterValueNotes
CBUS0 FunctionTX&RXLED#For the LED1 communication indicator
Manufacturer NameUser-definedExample: mitdir
Product DescriptionUser-definedExample: Leafony USB-UART Bridge
Serial NumberUnique valueIdentifies each device when multiple units are connected
USB Vendor ID0x0403FTDI default
USB Product ID0x6015FT-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
Leaf photo
Search documentation, sample apps, and Q&A