This commit is contained in:
cpu
2025-09-27 14:36:02 +02:00
parent f7c19cfa8d
commit dbbbf5b08c
9 changed files with 28 additions and 539 deletions

View File

@@ -3,6 +3,6 @@ C1,CAP-SMD_BD8.0-L8.3-W8.3-LS9.9-FD,1,,PANASONIC,EEEFK1A471AP,C178529
CN1,CONN-SMD_B4B-PH-SM4-TB-LF-SN,1,,JST Sales America,B4B-PH-SM4-TB(LF)(SN),C160354
D1,SMA_L4.3-W2.6-LS5.0-RD,1,,hongjiacheng,M1,C18199093
"H1, H2",HDR-SMD_8P-P2.54-V-F-S4.7,2,,hanxia,HX PM2.54-1x8P TP H8.5-YQ,C46635844
U1,R0805,1,1kΩ ±1% 125mW,UNI-ROYAL(Uniroyal Elec),0805W8F1001T5E,C17513
U1,R0805,1,,UNI-ROYAL,0805W8F1001T5E,C17513
U2,CONN-SMD_B2B-PH-SM4-TBT-LF-SN,1,,JST Sales America,B2B-PH-SM4-TBT(LF)(SN),C265003
U3,AUDIO-SMD_PJ-320B,1,,SOFNG,PJ-320B,C22355831
1 Designator Footprint Quantity Value Manufacturer Partnumber LCSC Part #
3 CN1 CONN-SMD_B4B-PH-SM4-TB-LF-SN 1 JST Sales America B4B-PH-SM4-TB(LF)(SN) C160354
4 D1 SMA_L4.3-W2.6-LS5.0-RD 1 hongjiacheng M1 C18199093
5 H1, H2 HDR-SMD_8P-P2.54-V-F-S4.7 2 hanxia HX PM2.54-1x8P TP H8.5-YQ C46635844
6 U1 R0805 1 1kΩ ±1% 125mW UNI-ROYAL(Uniroyal Elec) UNI-ROYAL 0805W8F1001T5E C17513
7 U2 CONN-SMD_B2B-PH-SM4-TBT-LF-SN 1 JST Sales America B2B-PH-SM4-TBT(LF)(SN) C265003
8 U3 AUDIO-SMD_PJ-320B 1 SOFNG PJ-320B C22355831

View File

@@ -1,9 +1,4 @@
# Module Parameters
| Module | Parameter | Value |
| --- | --- | --- |
| `power_filter_cap\|Elec_Cap_6_3x5_4` | `capacitance` | `([376µF, 564µF])` |
| | `voltage` | `([10V])` |
| `rx_protection_resistor\|Resistor` | `max_power` | `([125mW])` |
| | `max_voltage` | `([150V])` |
| | `resistance` | `([990Ω, 1.01kΩ])` |

View File

@@ -118,7 +118,7 @@
)
(comp
(ref "U1")
(value "1kΩ ±1% 125mW")
(value "Resistor_SMD")
(footprint "UNI_ROYAL_0805W8F1001T5E:R0805")
(property
(name "LCSC")
@@ -126,7 +126,7 @@
)
(property
(name "Manufacturer")
(value "UNI-ROYAL(Uniroyal Elec)")
(value "UNI-ROYAL")
)
(property
(name "Partnumber")

View File

@@ -984,7 +984,7 @@
)
)
)
(property "Value" "1kΩ ±1% 125mW"
(property "Value" ""
(at 0.5 5 0)
(layer "F.Fab")
(hide no)
@@ -1056,7 +1056,7 @@
)
)
)
(property "Manufacturer" "UNI-ROYAL(Uniroyal Elec)"
(property "Manufacturer" "UNI-ROYAL"
(at 0 0 0)
(layer "User.9")
(hide yes)

View File

@@ -56,4 +56,11 @@
(options "")
(descr "atopile: part lib: hongjiacheng_M1")
)
(lib
(name "MountingHole")
(type "KiCad")
(uri "${KIPRJMOD}/../../.ato/modules/atopile/mounting-holes/footprints/MountingHole")
(options "")
(descr "atopile: part lib: MountingHole")
)
)

View File

@@ -2,8 +2,8 @@
#pragma experiment("MODULE_TEMPLATING")
import ElectricPower
import Resistor
import Pad
from "parts/UNI_ROYAL_0805W8F1001T5E/UNI_ROYAL_0805W8F1001T5E.ato" import UNI_ROYAL_0805W8F1001T5E_package
from "atopile/mounting-holes/MountingHole.py" import MountingHole
from "parts/PANASONIC_EEEFK1A471AP/PANASONIC_EEEFK1A471AP.ato" import PANASONIC_EEEFK1A471AP_package
from "parts/hongjiacheng_M1/hongjiacheng_M1.ato" import hongjiacheng_M1_package
@@ -22,7 +22,7 @@ from "parts/SOFNG_PJ_320B/SOFNG_PJ_320B.ato" import SOFNG_PJ_320B_package
# Component for the SMD 3.5mm Audio Jack
component AudioJack3_5mm from SOFNG_PJ_320B_package:
footprint = "Jack_3.5mm:Jack_3.5mm_PJ320B_Horizontal"
# lcsc = "C22355831"
lcsc_id = "C22355831"
signal TIP ~ pin 1 # Left Channel
signal RING ~ pin 2 # Right Channel
signal SLEEVE ~ pin 3 # Ground
@@ -30,14 +30,14 @@ component AudioJack3_5mm from SOFNG_PJ_320B_package:
# Component for JST PH series vertical connectors
component JST_PH_Vertical_2Pin from JST_Sales_America_B2B_PH_SM4_TBT_LF__SN_package:
footprint = "JST_PH_S2B-PH-K_1x02_P2.00mm_Horizontal"
# lcsc = "C265003"
lcsc_id = "C265003"
signal SPK_1 ~ pin 1
signal SPK_2 ~ pin 2
# Component for JST PH series vertical connectors
component JST_PH_Vertical_4Pin from JST_Sales_America_B4B_PH_SM4_TB_LF__SN_package:
footprint = "JST_PH_S4B-PH-K_1x04_P2.00mm_Horizontal"
# lcsc = "C160354"
lcsc_id = "C160354"
signal VCC ~ pin 1
signal GND ~ pin 2
signal RX ~ pin 3
@@ -46,6 +46,7 @@ component JST_PH_Vertical_4Pin from JST_Sales_America_B4B_PH_SM4_TB_LF__SN_packa
# Components for the SMD 1x8 pin sockets for the DFPlayer
component DFPlayer_Socket_Left from hanxia_HX_PM2_54_1x8P_TP_H8_5_YQ_package:
footprint = "Connector_PinSocket_2.54mm/PinSocket_1x08_P2.54mm_Vertical_SMD_Pin1Left"
lcsc_id = "C46635844"
signal VCC ~ pin 1
signal RX ~ pin 2
signal TX ~ pin 3
@@ -57,6 +58,7 @@ component DFPlayer_Socket_Left from hanxia_HX_PM2_54_1x8P_TP_H8_5_YQ_package:
component DFPlayer_Socket_Right from hanxia_HX_PM2_54_1x8P_TP_H8_5_YQ_package:
footprint = "Connector_PinSocket_2.54mm/PinSocket_1x08_P2.54mm_Vertical_SMD_Pin1Left"
lcsc_id = "C46635844"
signal IO_1 ~ pin 1
signal GND ~ pin 2
signal IO_2 ~ pin 3
@@ -68,13 +70,18 @@ component DFPlayer_Socket_Right from hanxia_HX_PM2_54_1x8P_TP_H8_5_YQ_package:
component SOD123_Diode from hongjiacheng_M1_package:
footprint = "Diode_SMD:D_SOD-123"
# lcsc = "C18199093"
lcsc_id = "C18199093"
component Elec_Cap_6_3x5_4 from PANASONIC_EEEFK1A471AP_package:
footprint = "Capacitor_SMD:CP_Elec_6.3x5.4"
lcsc_id = "C178529"
signal plus ~ pin 1 # positive terminal
signal minus ~ pin 2 # negative terminal
component Resistor_SMD from UNI_ROYAL_0805W8F1001T5E_package:
footprint = "Resistor_SMD:R_0805_2012Metric"
lcsc_id = "C17513"
module DFPlayerCarrierBoard:
# --- Signals and Power rails ---
power_5v = new ElectricPower
@@ -91,23 +98,17 @@ module DFPlayerCarrierBoard:
df_header_left = new DFPlayer_Socket_Left
df_header_right = new DFPlayer_Socket_Right
# Power Supply Components
# Diode for dropout protection (cathode to VCC)
power_protection_diode = new hongjiacheng_M1_package
# power_protection_diode.lcsc = "C18199093"
# Capacitor for power filtering (electrolytic, 470uF, 10V)
power_filter_cap = new Elec_Cap_6_3x5_4
power_filter_cap.capacitance = 470uF +/- 20%
power_filter_cap.voltage = 10V
# power_filter_cap.lcsc = "C178529"
# Input Connector (Power and UART)
uart_connector = new JST_PH_Vertical_4Pin
# 1k Ohm series resistor for the DFPlayer's RX line for 5V tolerance.
rx_protection_resistor = new Resistor
rx_protection_resistor.resistance = 1kohm +/- 5%
rx_protection_resistor.package = "0805"
# rx_protection_resistor.lcsc = "C17513"
rx_protection_resistor = new Resistor_SMD
# Output Connectors
speaker_connector = new JST_PH_Vertical_2Pin
@@ -143,9 +144,8 @@ module DFPlayerCarrierBoard:
power_5v.gnd ~ df_header_left.GND
# 3. UART Serial Connection
uart_connector.RX ~> rx_protection_resistor ~> df_header_left.RX # Connect UART RX to resistor input
uart_connector.RX ~ rx_protection_resistor.1; rx_protection_resistor.2 ~ df_header_left.RX # Connect UART RX through resistor
uart_connector.TX ~ df_header_left.TX # TX (direct connection)
# 4. Speaker Output Connection
speaker_connector.SPK_1 ~ df_header_left.SPK_1
speaker_connector.SPK_2 ~ df_header_left.SPK_2

View File

@@ -1,270 +0,0 @@
(footprint "hanxia_HX_PM2_54_1x8P_TP_H8_5_ZQ:HDR-SMD_8P-P2.54-V-F-LS4.7"
(layer "F.Cu")
(descr "")
(version 20241229)
(generator "faebryk")
(generator_version "v5")
(tedit "5DC5F6A4")
(property "Reference" "REF**"
(at 0 -5.5 0)
(layer "F.SilkS")
(hide no)
(uuid "e1fdcb25-bbb7-480b-a3eb-ca2182d4a17c")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
)
(property "Value" "HDR-SMD_8P-P2.54-V-F-LS4.7"
(at 0 5.5 0)
(layer "F.Fab")
(hide no)
(uuid "e6735211-f1b3-4a8d-a8a6-ddd8d9cce98f")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
)
(property "checksum" "e1ae12f555519af8c11439d0a2175ddbbdd080e821244f82aff68eb0bebf1f55"
(at 0 0 0)
(layer "User.9")
(hide no)
(uuid "c57eb9dc-59b1-4c0a-a46a-ca4b82054a05")
(effects
(font
(size 0.125 0.125)
(thickness 0.01875)
)
(hide yes)
)
)
(attr through_hole)
(fp_line
(start 10.15 -1.27)
(end 9.75 -1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "9fe7b994-fabf-4967-ba95-ba1ef22ac473")
)
(fp_line
(start 7.22 1.27)
(end 10.15 1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "e2696bdc-e1af-410c-bf01-70efd20c9991")
)
(fp_line
(start -10.16 1.27)
(end -10.16 -1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "1bd1ae5a-0142-45fa-a407-9206686723ba")
)
(fp_line
(start -9.75 1.27)
(end -10.16 1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "0614385d-9bf9-4ef3-82b6-a83d514d87c4")
)
(fp_line
(start -4.67 1.27)
(end -8.02 1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "9664ed60-714e-4f63-960a-b936fc4647d3")
)
(fp_line
(start 0.4 1.27)
(end -2.95 1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "6a3c726a-a4fb-4db1-9faf-10daa681229f")
)
(fp_line
(start 5.49 1.27)
(end 2.13 1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "92270ee3-3b03-4d15-89cc-25d42e1a68f2")
)
(fp_line
(start 4.67 -1.27)
(end 8.02 -1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "88260e44-03bb-472a-b0b7-bfc980f8a560")
)
(fp_line
(start -0.4 -1.27)
(end 2.95 -1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "219acf0c-bff7-4e14-9c0d-4aa72300865e")
)
(fp_line
(start -5.49 -1.27)
(end -2.13 -1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "7a1d7a0e-7ce5-46b1-aeb4-0c8fdc0b5e5d")
)
(fp_line
(start -10.16 -1.27)
(end -7.22 -1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "a3d6dfd4-6734-4927-a957-05e3dc6140ce")
)
(fp_line
(start 10.15 -1.27)
(end 10.15 -0.51)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "bd068a07-dcf1-4279-82e5-2be285c6b171")
)
(fp_line
(start 10.15 -0.51)
(end 10.15 1.27)
(stroke
(width 0.25)
(type solid)
)
(layer "F.SilkS")
(uuid "3041c736-cad2-4538-a405-217b0583e46d")
)
(fp_circle
(center -10.16 2.4)
(end -10.13 2.4)
(stroke
(width 0.06)
(type solid)
)
(fill no)
(layer "F.Fab")
(uuid "9f95cfa0-d1bd-4315-9a64-26c9896bacbd")
)
(fp_circle
(center -10.16 2.54)
(end -10.01 2.54)
(stroke
(width 0.3)
(type solid)
)
(fill no)
(layer "F.SilkS")
(uuid "57cc6a1d-bd3d-43bb-bd86-97116c66cfd0")
)
(fp_text user "%R"
(at 0 0 0)
(layer "F.Fab")
(uuid "aa94f2c5-ea48-45ac-abb9-17c29da40240")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
(unlocked no)
)
(fp_text user "${REFERENCE}"
(at 0 -5.5 0)
(layer "F.SilkS")
(uuid "e1fdcb25-bbb7-480b-a3eb-ca2182d4a17c")
(effects
(font
(size 1 1)
(thickness 0.15)
)
)
(unlocked no)
)
(pad "8" smd rect
(at 8.89 -1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "30e38b82-4508-4f5d-bdee-a1985b0077eb")
)
(pad "7" smd rect
(at 6.35 1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "46c85612-6230-4434-b26f-8fbad3d5b776")
)
(pad "6" smd rect
(at 3.81 -1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "37c4b44f-eb20-43a8-ac8a-94d7ec55b7cd")
)
(pad "5" smd rect
(at 1.27 1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "5d145eb8-cce2-4595-a38a-b1acf7fe4c95")
)
(pad "4" smd rect
(at -1.27 -1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "ce158f8c-ef79-4474-bb57-93b0ae7cd8e2")
)
(pad "2" smd rect
(at -6.35 -1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "5094a899-3132-4fb1-92b2-b23f8a7f1ac2")
)
(pad "3" smd rect
(at -3.81 1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "418d2820-79dd-4774-89ec-5e1cc2077416")
)
(pad "1" smd rect
(at -8.89 1.5 180)
(size 1.02 3)
(layers "F.Cu" "F.Paste" "F.Mask")
(uuid "0b4a9f64-89fe-4b66-af32-c2df7be08c09")
)
)

View File

@@ -1,243 +0,0 @@
(kicad_symbol_lib
(version 1)
(generator "faebryk")
(symbol "HXPM2.54-1X8PTPH8.5-ZQ"
(property "Reference" "H"
(id 0)
(at 0 13.97 0)
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(property "Value" "HX PM2.54-1X8P TP H8.5-ZQ"
(id 1)
(at 0 -13.97 0)
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(property "Footprint" "C48641756:HDR-SMD_8P-P2.54-V-F-LS4.7"
(id 2)
(at 0 -16.51 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "LCSC Part" "C48641756"
(id 5)
(at 0 -19.05 0)
(effects
(font
(size 1.27 1.27)
)
(hide yes)
)
)
(property "checksum" "fc89ce66923b6839f1aefbdd601278f419be73275d13fa52e1193061a9cee00a"
(at 0 0 0)
(effects
(font
(size 0 0)
)
(hide yes)
)
)
(in_bom yes)
(on_board yes)
(symbol "HXPM2.54-1X8PTPH8.5-ZQ_0_1"
(circle
(center -1.27 10.16)
(end -0.89 10.16)
(stroke
(width 0)
(type default)
(color 0 0 0 0)
)
(fill
(type none)
)
)
(rectangle
(start -2.54 11.43)
(end 2.54 -11.43)
(stroke
(width 0)
(type default)
(color 0 0 0 0)
)
(fill
(type background)
)
)
(pin unspecified line
(at -5.08 8.89 0)
(length 2.54)
(name "1"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "1"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 6.35 0)
(length 2.54)
(name "2"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "2"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 3.81 0)
(length 2.54)
(name "3"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "3"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 1.27 0)
(length 2.54)
(name "4"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "4"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 -1.27 0)
(length 2.54)
(name "5"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "5"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 -3.81 0)
(length 2.54)
(name "6"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "6"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 -6.35 0)
(length 2.54)
(name "7"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "7"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
(pin unspecified line
(at -5.08 -8.89 0)
(length 2.54)
(name "8"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
(number "8"
(effects
(font
(size 1.27 1.27)
)
(hide no)
)
)
)
)
)
)