Skip to the content
2 layers96 × 97.3 mmDO AN DKTD, the printed circuit board in 3D

All file include and source in this: https://github.com/nguyentrungthao/STM32/tree/dev

Size
96 × 97.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
164
Nets
150
Pads
582
Tracks, vias
951, 383
Pours
570
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
5 Jul 2023
Updated
30 Jul 2023

Overview

DO AN DKTD is an open-source printed circuit board by PHAP0610, from the PHAP0610/ThaoRDBoard repository on GitHub. It is a 2-layer board of 96 × 97.3 mm with 164 parts on 150 nets, routed with 951 tracks and 383 vias.

It is built around the ESP-07, XL1509-3.3 and 74HC595, with the 24C32N, AMS1117 and MOC3020M among its other parts. Its parts include 56 resistors, 35 capacitors, 13 connectors, 11 ICs and 10 transistors. It belongs with the ESP8266 and STM32 boards of this library.

Main components

11

README

README.md

STM32F103

Hardware BOARD V0.1

All file include and source in this: https://github.com/nguyentrungthao/STM32/tree/dev

Module 7 segment with two ic 74595

  1. Pin configuration.
STM3274595
PA4SER
PA5OE
PA6RCLK
PA7SRCLK
  1. Code

high 8-bit to select a 7-segment digit low 8-bit is code-7-segment code7segment is used in this board sequence:

c
/* this code only use for this version board */
const char code7seg[] = {0xD7, 0x14, 0xCD, 0x5D, 0x1E, 0x5B, 0xDB, 0x15, 0xDF, 0x5F};

Module rotary encoder

  1. Pin configuration
STM32Rotary Encoderdescription
PA8channel Apull up
PA9channel Bpull up
PA10buttuonpull up
  1. Code

PA8 - PA9 is encoder mode of timer1

c
/* Enable TIM1 encoder mode */
/* USER CODE BEGIN 2 */
HAL_TIM_Encoder_Start_IT(&htim1, TIM_CHANNEL_ALL);
/* USER CODE END 2 */

/* Get encoder value */
encoderValue = __HAL_TIM_GetCounter(&htim1);

AC voltage control

  1. Pin configuration
STM32Moduledescription
PB0AC Detecpull up
PB1Triac
  1. code

PB0 should be an EXT pin

c
/* proccess when interrupt */
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin){
	if(GPIO_Pin == ACDET_Pin){
		SETFLAG(FLAG_ACDET_TRIGGER, flag);
        // control angle to set triac base on time which is calculated by PID
		__HAL_TIM_SET_COUNTER(&htim4, (uint16_t)(triac.giaTriDieuKhien * 1000));
//		__HAL_TIM_SET_COUNTER(&htim4, 9000);
	}
}

Parts

164
QtyValueFootprintReferences
181kIVS_FOOTPRINTS:R_0603R10, R11, R12, R13, R14, R15, R16, R17, R22, R24, R30, R31, R41, R44, R47, R48 +2
14100nFIVS_FOOTPRINTS:C_0603C2, C4, C9, C10, C11, C19, C21, C23, C26, C32, C33, C34, C35, C36
111uFIVS_FOOTPRINTS:C_0603C1, C3, C15, C16, C17, C18, C22, C25, C29, C30, C31
104k7IVS_FOOTPRINTS:R_0603R1, R2, R3, R4, R5, R7, R8, R26, R27, R55
8NPNIVS_FOOTPRINTS:SOT23-3Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8
72kIVS_FOOTPRINTS:R_0603R18, R28, R29, R36, R37, R38, R39
7LedIVS_FOOTPRINTS:LED_0603LE3, LE4, LE5, LE6, LE7, LE8, LE9
610kIVS_FOOTPRINTS:R_0603R33, R34, R35, R43, R45, R46
310uFIVS_FOOTPRINTS:C_0603C7, C14, C20
3SW_PushIVS_FOOTPRINTS:SW_SPST_PTS810SW2, SW3, SW4
2100RIVS_FOOTPRINTS:R_0603R58, R59
210KIVS_FOOTPRINTS:R_0603R61, R62
210nFIVS_FOOTPRINTS:C_0603C5, C6
210uFIVS_FOOTPRINTS:C_0805C24, C27
2180kIVS_FOOTPRINTS:R_0603R6, R9
21MIVS_FOOTPRINTS:R_0603R40, R60
222pFIVS_FOOTPRINTS:C_0603C12, C13
274HC595IVS_FOOTPRINTS:SOIC-16W_3.92x10.2mmU2, U6
2Conn_01x02IVS_FOOTPRINTS:KF128-5.0-2PJ2, J5
2Conn_01x03_PinConnector_PinHeader_2.00mm:PinHeader_1x03_P2.00mm_VerticalJ11, J12
2FuseIVS_FOOTPRINTS:Fuse_1812_4532MetricF2, F3
2LOGOIVS_FOOTPRINTS:LoGo_IDF_2.5x2.5mmG***, G***
2LOGOIVS_FOOTPRINTS:LoGo_ST_2.5x1.5mmG***, G***
2LOGOIVS_FOOTPRINTS:LoGo_1412_10x8mmG***, G***
2SS54IVS_FOOTPRINTS:D_SMAD6, D8
1 Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ6
1100IVS_FOOTPRINTS:R_0603R42
112kIVS_FOOTPRINTS:R_0603R32
11N4148IVS_FOOTPRINTS:D_SOD323D3
122kIVS_FOOTPRINTS:R_0603R21
124C32NIVS_FOOTPRINTS:SOIC-8_3.9x4.9mm_P1.27mmU8
1360IVS_FOOTPRINTS:R_0805R23
1360IVS_FOOTPRINTS:R_0603R25
139IVS_FOOTPRINTS:R_0603R19
1470IVS_FOOTPRINTS:R_0603R20
150nFIVS_FOOTPRINTS:C_0603C8
15631ASIVS_FOOTPRINTS:7Segment_4led_CC_38x19LE1
15631ASIVS_FOOTPRINTS:7Segment_4led_Cathode_30x14mmLE2
168uH 2AIVS_FOOTPRINTS:L_10.4x10.4_H4.8L1
1AMS1117IVS_FOOTPRINTS:SOT233U1
1Ai-Thinker-Ra-02IVS_FOOTPRINTS:MODULE_RA-02_LORAU9
1BAT54CIVS_FOOTPRINTS:SOT23-3D4
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1CR1220IVS_FOOTPRINTS:BatteryHolder_CR1220BT1
1Conn_01x02_PinConnector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_VerticalJ13
1Conn_01x03IVS_FOOTPRINTS:Conn_XH-P2.54mm-3PJ4
1Conn_01x04IVS_FOOTPRINTS:Conn_XH-P2.54mm-4PJ3
1Conn_01x05_MaleConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7
1Conn_01x07IVS_FOOTPRINTS:Conn_XH-P2.54mm-7PJ1
1Crystal_GND24_SmallIVS_FOOTPRINTS:Crystal_3225_4P_3.2x2.6mmY1
1D_SchottkyIVS_FOOTPRINTS:D_SOD323D7
1ESP-07IVS_FOOTPRINTS:ESP8266-07__ESP32-C3-12FU10
1FuseIVS_FOOTPRINTS:Fuseholder_Littelfuse_Nano2_154xF1
1Jack-DCIVS_FOOTPRINTS:BarrelJack_Wuerth_6941xx301002J10
1MB10FIVS_FOOTPRINTS:Bridge_MB10F-13D1
1MOC3020MIVS_FOOTPRINTS:DIL06-EU4
1Micro_SD_Card_Det1IVS_FOOTPRINTS:MicroSD_Socket_9PJ8
1N_MosfetIVS_FOOTPRINTS:SOT23-3Q9
1PC817IVS_FOOTPRINTS:OPTO_SOT254P975X400-4NU3
1P_MosfetIVS_FOOTPRINTS:SOT23-3Q10
1RTC_DS3231MIVS_FOOTPRINTS:SOIC-16W_7.5x10.3mm_P1.27mmIC1
1RotaryEncoder_SwitchIVS_FOOTPRINTS:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW1
1SMF05CIVS_FOOTPRINTS:TSSOP-6D5
1STM32F103C8TxIVS_FOOTPRINTS:LQFP-48_7x7mm_P0.5mmU7
1TRIACIVS_FOOTPRINTS:TO-220-3_VerticalD2
1USB_C_ReceptacleIVS_FOOTPRINTS:USB_C_Receptacle_XKB_U262-16XN-4BVC11J9
1XL1509IVS_FOOTPRINTS:SOIC-8_3.9x4.9mm_P1.27mmU5

The 159 most common of 164 parts.

Similar boards

  • 2 layers217 × 116 mmBoard nhiet, the printed circuit board in 3D

    Board nhiet

    NguyenThanhHuy-debug/PCB-Liquid-Dispensing-Cabinet

    PCB-Liquid-Dispensing-Cabinet — a software project built with modern tooling.

    191 parts4
  • 2 layers100 × 100 mmSmart air, the printed circuit board in 3D

    Smart air

    meeTeam05/smart-air

    Devices provision over BLE, publish telemetry/shadow over MQTT, and serve the app through a Cloudflare-fronted Fastify API. See Features below for the full breakdown.

    70 parts1MIT
  • 2 layers99.4 × 99.3 mmIoT2526 HK2, the printed circuit board in 3D

    IoT2526 HK2

    Chethien1912/IoT-Environmental-Monitoring-System

    ESP32-based IoT environmental monitoring project semester 2 2025-2026 HCMUTE

    78 partsMIT
  • 2 layers193.3 × 111.3 mmGATEWAY HARDWARE V1, the printed circuit board in 3D

    GATEWAY HARDWARE V1

    kori-thespirit/LoraGatewayDevelopment

    224 partsMIT
  • 2 layers50.1 × 16.8 mmPS-5V1.4A-7W EE13-Demo board, the printed circuit board in 3D

    PS-5V1.4A-7W EE13-Demo board

    TDLOGY/HW_AC-DC-Flyback-5W-5V1A-Reference-Design

    AC DC Flyback 5W 5V1A Reference Design

    24 parts4
  • 2 layers101.6 × 50.8 mmLight switch, the printed circuit board in 3D

    Light switch

    NguyenThanhHuy-debug/PCB_Real-Time-Power-Monitoring-System-Development-Light-Switch

    PCBReal-Time-Power-Monitoring-System-Development-Light-Switch — a software project built with modern tooling.

    142 parts2

Questions

How big is the DO AN DKTD PCB?

It measures 96 × 97.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the DO AN DKTD use?

164 parts, built around the ESP-07, XL1509-3.3, 74HC595 and 24C32N. 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 DO AN DKTD KiCad files?

From the PHAP0610/ThaoRDBoard repository on GitHub, at the commit this page was made from: the board is PCB/DO_AN_DKTD.kicad_pcb and its schematic PCB/DO_AN_DKTD.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the DO AN DKTD design in my own project?

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