kicad

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

KiCad Skill

KiCad 技能

Designs PCB schematics and layouts for VanDaemon hardware projects, primarily the ESP32-based 8-channel LED dimmer. KiCad 7+ uses S-expression format for all files. The project follows automotive-grade design practices for reliability in vehicle environments.
为VanDaemon硬件项目设计PCB原理图和布局,主要是基于ESP32的8通道LED调光器。KiCad 7及以上版本的所有文件均采用S-expression格式。该项目遵循汽车级设计规范,以确保在车载环境中的可靠性。

Quick Start

快速开始

Find Hardware Project Files

查找硬件项目文件

bash
undefined
bash
undefined

Locate KiCad project files

Locate KiCad project files

find hw/LEDDimmer -name ".kicad_" -type f
find hw/LEDDimmer -name ".kicad_" -type f

Current project structure

Current project structure

hw/LEDDimmer/ ├── led_dimmer_8ch.kicad_sch # Main schematic ├── led_dimmer_8ch.kicad_pcb # PCB layout (when created) └── led_dimmer_8ch.kicad_pro # Project settings
undefined
hw/LEDDimmer/ ├── led_dimmer_8ch.kicad_sch # Main schematic ├── led_dimmer_8ch.kicad_pcb # PCB layout (when created) └── led_dimmer_8ch.kicad_pro # Project settings
undefined

Read Schematic Structure

查看原理图结构

bash
undefined
bash
undefined

View schematic header and metadata

View schematic header and metadata

head -50 hw/LEDDimmer/led_dimmer_8ch.kicad_sch
head -50 hw/LEDDimmer/led_dimmer_8ch.kicad_sch

Find all component references

Find all component references

grep -E "^\s+(property "Reference"" hw/LEDDimmer/led_dimmer_8ch.kicad_sch
undefined
grep -E "^\s+(property "Reference"" hw/LEDDimmer/led_dimmer_8ch.kicad_sch
undefined

Key Concepts

核心概念

ConceptFormatExample
Comments
#
prefix only
# Power section
Component reference
(property "Reference" "R1")
Resistor R1
Pin connection
(wire (pts ...))
Net connection
Symbol instance
(symbol (lib_id "...")
Component placement
Net label
(label "VCC" ...)
Named net
概念格式示例
注释
#
前缀
# Power section
元件编号
(property "Reference" "R1")
电阻R1
引脚连接
(wire (pts ...))
网络连接
符号实例
(symbol (lib_id "...")
元件放置
网络标签
(label "VCC" ...)
命名网络

WARNING: Comment Syntax

注意:注释语法

KiCad does NOT support semicolon comments. Use
#
for comments in KiCad files.
kicad
undefined
KiCad 不支持分号注释。在KiCad文件中请使用
#
进行注释。
kicad
undefined

GOOD - Hash comments work

GOOD - Hash comments work

Power regulation section

Power regulation section

; BAD - Semicolons are NOT comments, they become part of the data
undefined
; BAD - Semicolons are NOT comments, they become part of the data
undefined

Common Patterns

常见模式

Adding a Component

添加元件

kicad
(symbol (lib_id "Device:R")
  (at 100 50 0)
  (unit 1)
  (property "Reference" "R1" (at 100 45 0))
  (property "Value" "10k" (at 100 55 0))
  (property "Footprint" "Resistor_SMD:R_0603_1608Metric" (at 100 50 0))
)
kicad
(symbol (lib_id "Device:R")
  (at 100 50 0)
  (unit 1)
  (property "Reference" "R1" (at 100 45 0))
  (property "Value" "10k" (at 100 55 0))
  (property "Footprint" "Resistor_SMD:R_0603_1608Metric" (at 100 50 0))
)

Creating a Net Connection

创建网络连接

kicad
(wire (pts (xy 100 50) (xy 120 50)))
(label "PWM_CH0" (at 110 50 0))
kicad
(wire (pts (xy 100 50) (xy 120 50)))
(label "PWM_CH0" (at 110 50 0))

Design Guidelines

设计规范

ParameterRequirementReason
Trace width (power)≥0.5mmHandle 2A per channel
Trace width (signal)≥0.25mmManufacturing tolerance
Via size0.8mm/0.4mmThermal dissipation
Clearance≥0.2mmAutomotive reliability
Copper weight2ozCurrent handling
参数要求原因
电源走线宽度≥0.5mm满足每通道2A电流需求
信号走线宽度≥0.25mm符合制造公差
过孔尺寸0.8mm/0.4mm散热需求
安全间距≥0.2mm汽车级可靠性要求
铜箔厚度2oz电流承载能力

See Also

另请参阅

  • patterns - Schematic and PCB patterns
  • workflows - Design and export workflows
  • patterns - 原理图和PCB设计模式
  • workflows - 设计与导出工作流程

Related Skills

相关技能

  • platformio skill - Firmware for ESP32 hardware
  • docker skill - Build automation for production
  • platformio 技能 - ESP32硬件固件开发
  • docker 技能 - 生产环境构建自动化