# ✅ Raspberry Pi LEGO 9V Motor Controller ## Description PWM-capable low-side MOSFET driver for controlling a 9 V LEGO motor from a Raspberry Pi 3.3 V GPIO signal, sized for up to 1.4 A stall/current peaks. ## Project Details - **Owner:** dacre - **Created:** 5/10/2026 - **Last Updated:** 5/21/2026 - **Visibility:** Public - **Stars:** 1 - **Copies:** 1 ## Key Components ### D1 — B220 - Datasheet URL: http://www.jameco.com/Jameco/Products/ProdDS/1538777.pdf - Part Type: Diode SMD - Package or Case Code: D_SMB - Manufacturer Name: Texas Instruments Inc. - Manufacturer Part Number: B220 - Role Details: Cathode to 5V_MOTOR, anode to MOSFET drain/motor low side - Role: Flyback diode **Pins:** - A [pin 2] - K [pin 1] ### D2 — TPD1E05U06DPYR - Role Details: USB-C VBUS 5V TVS protection after input fuse - LCSC Part Number: C2937017 - Part Type: ESD and Surge Protection (TVS/ESD) - Package or Case Code: DFN1006-2L-RD - Role: ESD Protection - Manufacturer Name: TPD1E05U06DPYR - Manufacturer Part Number: TPD1E05U06DPYR - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.ti.com/lit/ds/symlink/tpd1e05u06.pdf - JLCPCB Part Class: Extended Part **Pins:** - A [pin 2] - C [pin 1] ### F1 — 1812L300MR - Package or Case Code: F1812 - LCSC Part Number: C127824 - Role: Protection - Part Type: Resettable Fuses - JLCPCB Part Class: Extended Part - Manufacturer Name: Littelfuse(美国力特) - Voltage Rating: 6V - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.littelfuse.com/assetdocs/resettable-ptcs-1812l-datasheet?assetguid=ca5c80cb-504e-4a8a-8e74-0107520a1717 - Current Rating: 3A - Manufacturer Part Number: 1812L300MR - Product Info Url: https://lcsc.com/product-detail/Surface-Mount-Fuses_Littelfuse_1812L300MR_Self-recovery-3A-6VDC_C127824.html - Role Details: USB-C VBUS resettable overcurrent protection before motor rail **Pins:** - 1 [pin 1] - 2 [pin 2] ### J1 — USB4135-GF-A_REVA - Current Rating: 3A - Manufacturer Name: GCT - Mount: Surface Mount - Voltage Rating: 48V - Datasheet URL: https://gct.co/files/specs/usb4135-spec.pdf - Role Details: Power-only USB-C sink connector for motor VBUS input; CC1/CC2 use 5.1kΩ Rd pull-downs - Part Type: Connectors - Role: USB-C 5V power input - Symbol Style: Parametric - Manufacturer Part Number: USB4135-GF-A **Pins:** - CC1 [pin A5] - CC2 [pin B5] - GND_A [pin A12] - GND_B [pin B12] - SHIELD [pin S4] - SHIELD [pin S2] - SHIELD [pin S1] - SHIELD [pin S3] - VBUS_A [pin A9] - VBUS_B [pin B9] ### J2 — XY301V-A-5.0-2P - Manufacturer Part Number: XY301V-A-5.0-2P - Role Details: Motor high side to 5V_MOTOR and motor low side to MOSFET drain - Manufacturer Name: Ningbo Xinlaiya Elec. - Role: Motor connector **Pins:** - PIN1 [pin 1] - PIN2 [pin 2] ### J3 — Pin Header 01x03 2.54mm Vertical - Role Details: Raspberry Pi GPIO PWM, 3V3 reference, and GND - MPN: TSW-103-07-G-S - Description: 3-position single-row 2.54 mm pitch vertical through-hole male pin header - Role: Control input connector - Manufacturer: Samtec - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: TSW-103-07-G-S **Pins:** - Pin_1 [pin 1] - Pin_2 [pin 2] - Pin_3 [pin 3] ### Q1 — FS8205A - Manufacturer Name: TECH PUBLIC(台舟) - Role Details: PWM-controlled motor current switch driven by Raspberry Pi GPIO through gate resistor - Part Type: MOSFETs - Package or Case Code: SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BR - Role: Low-side MOSFET switch - Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/7158/5272_FS8205A.pdf - Manufacturer Part Number: FS8205A - JLCPCB Part Class: Extended Part - LCSC Part Number: C2830320 **Pins:** - D1/D2 [pin 5] - D1/D2 [pin 2] - G1 [pin 6] - G2 [pin 4] - S1 [pin 1] - S2 [pin 3] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/dacre/raspberry-pi-lego-9v-motor-controller~yqv](https://www.flux.ai/dacre/raspberry-pi-lego-9v-motor-controller~yqv).* --- *Generated from [https://www.flux.ai/dacre/raspberry-pi-lego-9v-motor-controller~yqv](https://www.flux.ai/dacre/raspberry-pi-lego-9v-motor-controller~yqv)*