Skip to the content
2 layers69 × 79 mmNTC, the printed circuit board in 3D

综合设计与实践A项目-基于NTC的数字温度计

Size
69 × 79 mm
Copper layers
2
Thickness
1.6 mm
Parts
44
Nets
72
Pads
179
Tracks, vias
223, 92
Pours
3
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
18 Jun 2025
Updated
18 Jun 2025

Overview

NTC is an open-source printed circuit board by xuejun7777, from the xuejun7777/Comprehensive-Design-and-Practice-Project-A---Digital-Thermometer-Based-on-NTC repository on GitHub. It is a 2-layer board of 69 × 79 mm with 44 parts on 72 nets, routed with 223 tracks and 92 vias.

It is built around the CH340N, AMS1117-3.3 and CC56-12EWA, with the MMBT3904 among its other parts. Its parts include 20 resistors, 11 capacitors, 5 ICs, 4 transistors and 3 connectors. It belongs with the STM32 boards of this library.

Main components

4

README

README.md

NTC数字温度计综合设计项目

项目简介

基于STM32G030微控制器和NTC热敏电阻的数字温度计系统,包含完整的硬件设计、软件开发和PCB制作。

系统架构

硬件组成

  • MCU: STM32G030 (ARM Cortex-M0+)
  • 传感器: NTC热敏电阻 (10kΩ@25°C, B=3950K)
  • 显示: 4位7段数码管
  • 接口: USB Type-C + UART

软件功能

  • 12位ADC温度采集
  • Steinhart-Hart方程温度转换
  • 动态数码管显示
  • 串口数据输出
  • 开机学号显示

核心特性

  • 通信: 115200bps UART

项目结构

text
├── g030_adc_uart/          # 主程序代码
├── g030_display/           # 显示驱动
├── NTC/                    # 硬件设计V1
├── NTC2/                   # 硬件设计V2
├── final_submit/           # 最终提交文件
└── *.pdf                   # 实验报告文档

关键算法

温度转换公式

c
// Steinhart-Hart方程
T = 1/((ln(Rt/R0)/B) + (1/T0)) - 273.15

自然对数实现

c
// 泰勒级数展开避免math.h依赖
double tsp_ln(double a) {
    // 15阶泰勒级数计算
}

编译环境

  • IDE: Keil MDK-ARM V5.39.0.0
  • 编译器: ArmClang V6.21
  • 代码大小: ~8KB Flash, ~2KB RAM

功能验证

✅ 温度测量精度
✅ 数码管显示
✅ 串口通信
✅ 学号显示
✅ 异常检测
✅ PCB硬件

应用场景

  • 温度监测系统
  • 实验室测温设备
  • 工业过程控制
  • 教学实验平台

本项目展示了完整的嵌入式系统开发流程,从硬件设计到软件实现的工程实践。

Parts

44
QtyValueFootprintReferences
9330Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4, R9, R10, R11, R12, R13, R14, R15, R16
60.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C5, C6, C8, C9, C10
410kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R3, R6
41kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR17, R18, R19, R20
4MMBT3904Package_TO_SOT_SMD:SOT-23Q1, Q2, Q3, Q4
310uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4, C7, C11
222pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2
25.1kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR7, R8
13.3kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1CC56-12EWADisplay_7Segment:CA56-12EWAU2
1CH340NPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1Conn_01x02_PinConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ2
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1CrystalCrystal:Crystal_SMD_5032-2Pin_5.0x3.2mmY1
1STM32G030C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU1
1TL431DBZPackage_TO_SOT_SMD:SOT-23U5
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01AJ3

Similar boards

  • 2 layers57 × 55.8 mmDesignLab semV, the printed circuit board in 3D

    DesignLab semV

    adbik4/DL-FinalProject

    The design and implementation of a measurement and data logging system based on ATmega328pb microcontroller. The system is intended for measuring temperature and pressure using dedicated digital sensors: DS18B20 and…

    33 parts
  • 2 layers80 × 80 mmSMT stopper.kicad pcb DCDC, the printed circuit board in 3D

    SMT stopper.kicad pcb DCDC

    mrkubag/SMT_stopper

    Projekt sterownika automatycznie regulowanego stopera wbudowanego w transporter PCB.

    73 parts
  • 2 layers114 × 95 mmVCU V3 1 PREFAB, the printed circuit board in 3D

    VCU V3 1 PREFAB

    HKUST-Red-Bird-Racing-EVRT/GEN5_ELEC

    Repository for RBR EVRT 2025 EE

    153 parts3
  • 2 layers160 × 89.5 mmKiCad工程, the printed circuit board in 3D

    KiCad工程

    Larryhul/periodic-signal-analyzer

    STM32G474 periodic signal analyzer: FFT harmonic measurement (Upp/Urms/fundamental/spectrum), OPA2365 front end, KiCad PCB, firmware & dashboard. 2026 Shanghai electronic design contest, Problem G. 周期信号测量分析装置

    10 partsMIT
  • 2 layers48.5 × 65.5 mmClock, the printed circuit board in 3D

    Clock

    asda1-max/7segment-kicad

    7 segment kicad clock project (gerber file included)

    15 parts
  • 2 layers75 × 160 mmOven2, the printed circuit board in 3D

    Oven2

    bybzmt/practise

    51 parts
  • 4 layers40.6 × 40.6 mmRtk gps module, the printed circuit board in 3D

    Rtk gps module

    Lucas-Poulos/rtk-gps-module

    Cheap dual-band L1+L5 RTK GNSS module. LC29H rover, discrete 50 ohm front end, USB-C + castellated. Schematic generated from Python and verified by a 146-check gate.

    67 partsCERN-OHL-P-2.0
  • 2 layers50.5 × 94.7 mmSwordOfSecretsUSBProd, the printed circuit board in 3D

    SwordOfSecretsUSBProd

    gili-yankovitch/SwordOfSecrets

    To solve the challenge you will need to discover a series of flags, hidden inside the sword. Each one will help you unlock the next step in the challenge, to finally reveal the ultimate secret the sword holds.

    16 parts47MIT

Questions

How big is the NTC PCB?

It measures 69 × 79 mm and has 2 copper layers, 1.6 mm thick.

What parts does the NTC use?

44 parts, built around the CH340N, AMS1117-3.3, CC56-12EWA and MMBT3904. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the NTC KiCad files?

From the xuejun7777/Comprehensive-Design-and-Practice-Project-A---Digital-Thermometer-Based-on-NTC repository on GitHub, at the commit this page was made from: the board is NTC2/NTC.kicad_pcb and its schematic NTC/NTC.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the NTC design in my own project?

Its repository states no licence, so its author keeps all rights: ask xuejun7777 before reusing the design.