PLC STM32 Modbus

danhmanu·PLC-STM32F407VET6·kicad/PLC_STM32_Modbus.kicad_pcb

PLC STM32 Modbus PCB layout, top view — open source STM32 board by danhmanu

About the PLC STM32 Modbus PCB

PLC STM32 Modbus is an open source STM32 PCB design by danhmanu, published on GitHub. It is a 2-layer board measuring 100 × 80 mm, with 310 components from 94 distinct parts.

Its main chip is the STM32F407VET6, from the STM32 family. Other key parts include the LMR16006YQ5, AMS1117-3.3, REF3030, USBLC6-2SC6 and CH340C. By type, the board carries 131 resistors, 61 capacitors, 54 diodes, 19 transistors, 13 fuses and 12 ICs.

From the project

Mạch nguyên lý KiCad 10 cho bộ PLC: điều khiển qua LAN bằng Modbus TCP (W5500), có thêm RS485 (Modbus RTU), nạp code qua USB‑C (CH340C), 16 ngõ ra transistor cách ly quang, 10 ngõ vào analog 0–10V / 4–20mA.

Mạch nguyên lý KiCad 10 cho bộ PLC: điều khiển qua LAN bằng Modbus TCP (W5500), có thêm RS485 (Modbus RTU), nạp code qua USB‑C (CH340C), 16 ngõ ra transistor cách ly quang, 10 ngõ vào analog 0–10V / 4–20mA.

- Điện áp tại chân ADC: Vadc = Vin × 18/65 (VREF = 3.000V) - 0–10V (không cắm jumper): 10V → 2.77V. Đo được tối đa khoảng 10.8V. - 4–20mA (cắm jumper kênh n trên J702, chân 2n‑1 ↔ 2n): shunt 499Ω mắc song song cầu chia 65k, tổng ≈ 495.2Ω. 20mA → 9.9V → 2.74V; 4mA → 0.55V. - Sụt áp trên tải ≈ 10V. Cảm biến 2 dây cấp 24V vẫn còn khoảng 14V để hoạt động. - Firmware: Vin = raw/4095 × 3.0 ×…

PLC STM32 Modbus, from the project README
From the project README

Main components on the PLC STM32 Modbus

PLC STM32 Modbus bill of materials (BOM)

310 components, 94 distinct parts — part numbers from the project's BOM.

QtyPartRefs
1
LMR16006YQ5
U101
1
AMS1117-3.3
U102
1
STM32F407VET6
U200
1
REF3030
U201
1
USBLC6-2SC6
U301
1
CH340C
U302
1
W5500
U400
1
SP3485EN
U401
4
TLP291-4
U501, U502, U503, U504
2
MMBT3904
Q301, Q302
1
MMBT3906
Q303
16
DMN6075S
Q501, Q502, Q503, Q504, Q505, Q506, Q507, Q508 +8
1
8MHz 20pF
Y201
1
25MHz 18pF
Y401
1
24VDC IN
J101
1
SWD
J201
1
USB-C
J301
1
HR911105A
J401
1
RS485
J402
1
OUT 1-8
J501
Show 74 more
QtyPartRefs
1
OUT 9-16
J502
1
AI 1-10
J701
1
mA SELECT
J702
1
AI PWR/COM
J703
1
PTC MF-MSMF050-2 0.5A/60V
F101
1
500MA
500mA
F301
10
50MA
50mA
F701, F702, F703, F704, F705, F706, F707, F708 +2
1
200MA
200mA
F711
1
AUTO-BOOT
JP301
1
TERM 120R
JP401
1
RESET
SW201
1
BOOT
SW202
1
SS110 (100V/1A)
D101
1
SMBJ33CA
D102
1
PWR (green)
D103
1
SS16
D104
2
SS14
D105, D106
1
3V3 (green)
D107
1
RUN (green)
D201
1
ERR (red)
D202
12
SMF12CA
D401, D402, D701, D702, D703, D704, D705, D706 +4
16
SS16FL
D501, D503, D505, D507, D509, D511, D513, D515 +8
1
Q1
D502
1
Q2
D504
1
Q3
D506
1
Q4
D508
1
Q5
D510
1
Q6
D512
1
Q7
D514
1
Q8
D516
1
Q9
D518
1
Q10
D520
1
Q11
D522
1
Q12
D524
1
Q13
D526
1
Q14
D528
1
Q15
D530
1
Q16
D532
1
SMBJ33A
D533
1
BLM31PG601SN1 3A
FB101
1
600R@100MHz
FB102
1
CMC TDK ACM7060-701-2PL
L101
1
10uH 1A
L102
1
47UF/50V
47uF/50V
C101
1
1UF/50V
1uF/50V
C102
1
10UF/50V
10uF/50V
C103
3
100NF/50V
100nF/50V
C104, C106, C502
1
2.2UF/50V
2.2uF/50V
C105
30
100NF
100nF
C107, C112, C114, C203, C204, C205, C206, C207 +22
3
22UF
22uF
C108, C109, C111
4
10UF
10uF
C110, C113, C304, C410
2
20PF
20pF
C201, C202
2
4.7UF
4.7uF
C209, C401
3
1UF
1uF
C210, C214, C302
2
2.2UF
2.2uF
C212, C213
1
4.7NF/250V
4.7nF/250V
C301
3
10NF
10nF
C402, C412, C413
2
18PF
18pF
C403, C404
1
6.8NF
6.8nF
C411
1
10UF/50V
10uF/50V
C501
1
4.7K
4.7k
R101
14
1k
R102, R203, R204, R308, R704, R708, R712, R716 +6
57
10K
10k
R201, R202, R304, R305, R306, R307, R402, R403 +49
2
5.1K
5.1k
R301, R302
1
1M
R303
1
12.4k 1%
R401
4
49.9 1%
R404, R405, R406, R407
2
330
R408, R409
2
680
R411, R412
1
120
R413
16
470
R501, R505, R509, R513, R517, R521, R525, R529 +8
10
499 0.1% 0.25W
R701, R705, R709, R713, R717, R721, R725, R729 +2
10
47k 0.1%
R702, R706, R710, R714, R718, R722, R726, R730 +2
10
18k 0.1%
R703, R707, R711, R715, R719, R723, R727, R731 +2

PLC STM32 Modbus design files

The KiCad project lives in the danhmanu/PLC-STM32F407VET6 repository on GitHub; these links point at the commit this page was built from.

PLC STM32 Modbus: common questions

What microcontroller does the PLC STM32 Modbus use?

The PLC STM32 Modbus is built around the STM32F407VET6, from the STM32 family.

How big is the PLC STM32 Modbus PCB?

The PLC STM32 Modbus measures 100 × 80 mm, has 2 copper layers and is 1.6 mm thick.

How many components are on the PLC STM32 Modbus?

310 components, from 94 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.

Where can I download the PLC STM32 Modbus design files?

From the danhmanu/PLC-STM32F407VET6 repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.

Can I use the PLC STM32 Modbus design in my own project?

The repository has no license, so all rights stay with danhmanu. Use it as a reference, and ask the author before reusing the design.

Can I test firmware for the PLC STM32 Modbus without the hardware?

Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.

More boards in PLC-STM32F407VET6

Similar boards