# Audio Electronics | Copilot Preset
## Description
Servo Control Module with Battery Protection and UI for 100×60×50 mm Enclosure
## Project Details
- **Owner:** nico
- **Created:** 8/24/2023
- **Last Updated:** 8/24/2023
- **Visibility:** Public
- **Servo Series Resistor:** R8
- **Domain Application:** Audio
- **Human Interface:** LED, Potentiometer
- **High-current 5V path:** U2:VOUT → J1:5V
- **Servo Output Connector:** J1
- **UI placement:** OLED at top center, buttons "+" and "−" positioned 15 mm below the OLED
- **Compliance:** RoHS, FCC, CE
- **Enclosure Dimensions:** 100 × 60 × 50 mm
- **Amplifier Type:** Class D
- **Enclosure Dimensions:** 10×6×5 cm
- **Placement Zones:** Left 40 mm reserved for power subsystem; right 40 mm reserved for signal and UI; ensure tube channel 100×20 mm on rightmost edge
- **Decoupling Capacitor Entries:** C3 (U3 VIN bulk)=10μF near U3 VIN (bulk), C4 (U3 OUT)=1μF at U3 OUT, C5 (U4 VDD)=100nF close to U4 VDD, C6 (U4 VDDA)=100nF close to U4 VDDA, all X7R 0402. Role: Decoupling, placement: as close as possible to respective IC pins
- **Time Increment:** 5 min up to 300 min
- **System Architecture:** ```mermaid
flowchart LR
BAT[Li-ion 1S Battery] --> CHG[USB-C Charger IC]
BAT --> DIV[Voltage Divider & Brown-out Detect]
CHG --> BOOST[Boost Converter 5V]
CHG --> LDO[LDO 3.3V Regulator]
BOOST --> SERVO[Microservo]
LDO --> MCU[Microcontroller]
LDO --> OLED[OLED I2C Display]
MCU -->|I2C| OLED
MCU -->|PWM| SERVO
MCU -->|ADC| DIV
MCU -->|GPIO| BTN_PLUS[Button +]
MCU -->|GPIO| BTN_MINUS[Button −]
MCU -->|GPIO| BTN_INFO[Button Info]
PROT[TVS & Fuses] -.-> CHG
PROT -.-> BOOST
PROT -.-> SERVO
```
- **Frequency Response:** 20Hz to 20kHz
- **Electrical Checklist:** Brown-Out Detector settings; VBAT voltage-divider design for ADC measurement; I2C pull-up resistor configurations; Decoupling capacitor placement and values
- **Servo Signal Path:** U4:PA9 → R8 → J1
- **Servo PWM Output Pin:** U4:PA9
- **BOD Settings:** Threshold 2.7V, Recovery 2.9V, 10 ms debounce; STM32 BOD + software filtered
- **Distortion:** THD of less than 0.1% at full power
- **ERC Results:** No ERC issues detected for decoupling_caps, pull_up_pull_down, resistor_power_rating, and capacitor_voltage_rating.
- **Board size:** 100 × 60 mm
- **Role Details: Servo Signal Path:** PWM output from MCU (U4:PA9) passes through series resistor (R8) before reaching the servo connector (J1) for signal integrity and protection.
- **Operating Temperature:** -40 ºC to 85ºC
- **Input Source:** Line-level from standard audio source
- **Open Duration Range:** 1–10 min (default 2 min)
- **USB-C Charge Current Range:** 0.5–1 A
- **Connectivity:** Bluetooth 5.0, 3.5mm Jack, Screw Terminals
- **Number of Channels:** 2 (stereo)
- **VBAT→ADC Divider:** R3=100kΩ, R4=33kΩ, Ratio 0.248, Voltage Range 0–4.2V Li-ion mapped to 0–1V ADC, Pin=U4:PA1
- **Operating Voltage:** 12V
- **I2C Pull-up Resistor Configurations:** R1 (SCL)=4.7kΩ, R2 (SDA)=4.7kΩ, 0402 package, Nets: SCL=U4:PA9 & OLED SCL; SDA=U4:PA7 & OLED SDA
- **Tube Channel Reservation:** 100×20 mm zone at the right lateral edge of the PCB
- **Stars:** 13
- **Forks:** 17
- **Copies:** 1568
## Key Components
### D1 — [PRTR5V0U2X,215](https://www.flux.ai/openpartlist/prtr5v0u2xc215~f8.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: PRTR5V0U2X,215
- Part Type: Protection
- Role Details: Signal-line transient protection for servo signal line
- Datasheet URL: https://assets.nexperia.com/documents/data-sheet/PRTR5V0U2X.pdf
- Role: Protection
- Manufacturer Name: Nexperia USA Inc.
**Pins:**
- GND [pin 1]
- I/O1 [pin 2]
- I/O2 [pin 3]
- VCC [pin 4]
### D1 — [PESD5V0X1BCSFYL](https://www.flux.ai/adrian95/pesd5v0x1bcsfyl~nbe.md)
- Manufacturer Part Number: PESD5V0X1BCSFYL
- Part Type: Diode
- Datasheet URL: https://assets.nexperia.com/documents/data-sheet/PESD5V0X1BCSF.pdf
- Manufacturer Name: Nexperia USA Inc.
- Role Details: Signal transient protection for servo control line
- License: https://creativecommons.org/licenses/by/4.0/
- Role: Clamping
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
### D2 — [SP0502BAHT](https://www.flux.ai/kicad-part-library/sp0502baht~nla.md)
- Manufacturer Name: Texas Instruments Inc.
- Role: Protection
- Manufacturer Part Number: SP0502BAHT
- Datasheet URL: http://www.littelfuse.com//media/files/littelfuse/technical%20resources/documents/data%20sheets/sp05xxba.pdf
- Role Details: Transient suppression for 5 V servo signal line
- Package or Case Code: SOT-23
**Pins:**
- A [pin 3]
- K [pin 1]
- K [pin 2]
### J1 — [Pin Header 01x03 2.54mm Vertical for Servo Motor](https://www.flux.ai/project-x/pin-header-01x03-2p54mm-vertical-for-servo-motor~jl.md)
- Role Details: Microservo connector (P1=VCC, P2=GND, P3=SIG)
- Part Type: Connector
- Role: Connector
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- 5v [pin 2]
- Data [pin 3]
- Gnd [pin 1]
### J1 — [Pin Header 01x03 2.54mm Vertical for Servo Motor](https://www.flux.ai/project-x/pin-header-01x03-2p54mm-vertical-for-servo-motor~jl.md)
- Role Details: 3-pin microservo connector (VCC, GND, SIG)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Connector
- Role: Connector},{
**Pins:**
- 5v [pin 2]
- Data [pin 3]
- Gnd [pin 1]
### Q1 — [IRF4905STRLPBF](https://www.flux.ai/bmorgan21/irf4905strlpbf~6w.md)
- Manufacturer Part Number: IRF4905STRLPBF
- Role Details: Latch FET for servo 5 V cutoff when VBAT < 3.4 V and on power-off
- Manufacturer Name: Infineon Technologies AG
- Role: Latch FET for servo 5 V cutoff when VBAT < 3.4 V and on power-off
**Pins:**
- ~ [pin 1]
- ~ [pin 3]
- ~ [pin 2]
### SW1 — [B3FS-1050P](https://www.flux.ai/jharwinbarrozo/b3fs-1050p~hog.md)
- Datasheet URL: https://datasheet.lcsc.com/lcsc/1809271215_Omron-Electronics-B3FS-1050P_C231326.pdf
- Manufacturer Part Number: B3FS-1050P
- Manufacturer Name: OMRON
- Part Type: Switch
- Role: Switch
- Role Details: Info button
**Pins:**
- P1
- P2
### SW2 — [B3FS-1050P](https://www.flux.ai/jharwinbarrozo/b3fs-1050p~hog.md)
- Datasheet URL: https://datasheet.lcsc.com/lcsc/1809271215_Omron-Electronics-B3FS-1050P_C231326.pdf
- Manufacturer Part Number: B3FS-1050P
- Role Details: Increment button
- Role: Switch
- Manufacturer Name: OMRON
- Part Type: Switch
**Pins:**
- P1
- P2
### SW3 — [B3FS-1050P](https://www.flux.ai/jharwinbarrozo/b3fs-1050p~hog.md)
- Role Details: Decrement button
- Manufacturer Part Number: B3FS-1050P
- Datasheet URL: https://datasheet.lcsc.com/lcsc/1809271215_Omron-Electronics-B3FS-1050P_C231326.pdf
- Part Type: Switch
- Manufacturer Name: OMRON
- Role: Switch
**Pins:**
- P1
- P2
### U1 — [TP4056](https://www.flux.ai/lcsc/tp4056~5yzc.md)
- Role: Power Management
- LCSC Part Number: C725790
- Role Details: Li-ion charger for 1S battery
- Manufacturer Name: UMW(友台半导体)
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2409241408_UMW-Youtai-Semiconductor-Co---Ltd--TP4056_C725790.pdf
- Package or Case Code: ESOP-8_L4.9-W3.9-P1.27-LS6.0-BL-EP
- Part Type: Battery Management ICs
- Manufacturer Part Number: TP4056
- JLCPCB Part Class: Extended Part
- Product Info Url: https://lcsc.com/product-detail/PMIC-Battery-Management_UMW-Youtai-Semiconductor-Co-Ltd-TP4056_C725790.html
**Pins:**
- ~{CHRG} [pin 7]
- ~{STDBY} [pin 6]
- BAT [pin 5]
- CE [pin 8]
- EP [pin 9]
- GND [pin 3]
- PROG [pin 2]
- TEMP [pin 1]
- VCC [pin 4]
### U2 — [TPS61088QRHLRQ1](https://www.flux.ai/lcsc/tps61088qrhlrq1~2rcg.md)
- JLCPCB Part Class: Extended Part
- LCSC Part Number: C1850341
- Package or Case Code: VQFN-20_L4.6-W3.6-P0.50-BL
- Role Details: Boost converter to 5 V for servo supply
- Manufacturer Name: TI(德州仪器)
- Role: Power Conversion
- Part Type: DC-DC Converters
- Manufacturer Part Number: TPS61088QRHLRQ1
**Pins:**
- AGND [pin 20]
- BOOT [pin 8]
- COMP [pin 18]
- EN [pin 2]
- FB [pin 17]
- FSW [pin 3]
- ILIM [pin 19]
- MODE [pin 13]
- NC [pin 11]
- NC [pin 12]
- PGND [pin 21]
- SS [pin 10]
- SW [pin 4]
- SW [pin 5]
- SW [pin 6]
- SW [pin 7]
- VCC [pin 1]
- VIN [pin 9]
- VOUT [pin 14]
- VOUT [pin 15]
- VOUT [pin 16]
### U3 — [TLV70033DDCT](https://www.flux.ai/lcsc/tlv70033ddct~4522.md)
- Role Details: 3.3 V LDO for MCU and OLED
- Manufacturer Part Number: TLV70033DDCT
- Part Type: Linear Voltage Regulators (LDO)
- Manufacturer Name: TI(德州仪器)
- JLCPCB Part Class: Extended Part
- LCSC Part Number: C2877582
- Role: Power Management
- Package or Case Code: SOT-23-5_L2.9-W1.6-P0.95-LS2.8-BR
**Pins:**
- EN [pin 3]
- GND [pin 2]
- IN [pin 1]
- N/C [pin 4]
- OUT [pin 5]
### U4 — [STM32F030F4P6](https://www.flux.ai/vasy_skral/stm32f030f4p6~dwn.md)
- Role Details: Main MCU (I2C, PWM, ADC for UI and control)
- Datasheet URL: https://www.st.com/content/ccc/resource/technical/document/datasheet/a4/5d/0b/0e/87/c4/4d/71/DM00088500.pdf/files/DM00088500.pdf/jcr:content/translations/en.DM00088500.pdf
- Manufacturer Name: STMicroelectronics
- Part Type: Microcontroller
- Symbol Style: Parametric
- Manufacturer Part Number: STM32F030F4P6
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- BOOT0 [pin 1]
- NRST [pin 4]
- PA0 [pin 6]
- PA1 [pin 7]
- PA10 [pin 18]
- PA13 [pin 19]
- PA14 [pin 20]
- PA2 [pin 8]
- PA3 [pin 9]
- PA4 [pin 10]
- PA5 [pin 11]
- PA6 [pin 12]
- PA7 [pin 13]
- PA9 [pin 17]
- PB1 [pin 14]
- PF0 [pin 2]
- PF1 [pin 3]
- VDD [pin 16]
- VDDA [pin 5]
- VSS [pin 15]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/nico/audio-electronics-or-copilot-preset~xu](https://www.flux.ai/nico/audio-electronics-or-copilot-preset~xu).*
---
*Generated from [https://www.flux.ai/nico/audio-electronics-or-copilot-preset~xu](https://www.flux.ai/nico/audio-electronics-or-copilot-preset~xu)*