
Motor controller
mohamed-belal-10/can-motor-controller-node
CAN-connected closed-loop DC motor controller node — KiCad hardware (STM32F103, DRV8874, SN65HVD230) with an AS5600 encoder sub-PCB

Automotive Body Control Module (BCM) development board designed around an STM32 microcontroller, featuring relay-based automotive outputs, power management, protection circuitry, and a custom KiCad PCB.
STM32-Automotive BCM Development Board is an open-source printed circuit board by Akinlatauto19, from the Akinlatauto19/STM32-Automotive-BCM-Development-Board repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 2-layer board of 150 × 130 mm with 89 parts on 74 nets, routed with 351 tracks and 172 vias.
It is built around the SN65HVD230D, LM2596S-5.0 and AMS1117-3.3, with the AO3400A, MBR360 and NUP2105L among its other parts. Its parts include 20 capacitors, 16 resistors, 12 diodes, 9 connectors and 7 switches. It belongs with the microcontroller boards boards and the STM32 boards of this library.

The STM32 Automotive BCM Development Board is a custom automotive electronics development platform designed to explore the hardware architecture, protection strategies, monitoring functions, communication interfaces, and PCB design practices used in automotive embedded systems.
The board is centered around an STM32 microcontroller and is designed around a vehicle-style 12 V electrical environment, with dedicated power protection, regulated supply rails, monitored battery voltage, protected output channels, and a CAN communication interface.
The project was developed as a complete hardware engineering exercise, covering the process from electrical requirements and schematic design through component selection, footprint assignment, PCB layout, design-rule checking, 3D visualization, and manufacturing preparation.
The goal is not simply to create a PCB that works, but to understand the engineering decisions behind an automotive-oriented electronic control board.
The main objectives of this project were to:
The main controller is an STM32F103C8T6 microcontroller.
The STM32 provides the processing and control capabilities required for the board and creates a practical platform for developing automotive-oriented embedded firmware.
The microcontroller section provides access to the board's:
The architecture also provides room for future firmware development involving vehicle-body-control functions and communication between electronic control units.
The board is designed around a nominal 12 V input, representing the type of electrical environment commonly encountered in automotive systems.
The power-input section was treated as a separate engineering block rather than connecting the external supply directly to the digital electronics.
The intention is to provide a controlled power path:
12 V input → protection → filtering → regulation → low-voltage electronics
This approach helps isolate the sensitive microcontroller and communication circuitry from disturbances that may be present on an external automotive supply.
The power-input section incorporates protection and filtering components selected according to their intended electrical role and verified against their respective datasheets.
Automotive electrical systems can experience conditions that are very different from a clean laboratory power supply.
For this reason, the design includes dedicated protection elements around the input power path.
The protection strategy considers issues such as:
The protection components were selected according to their electrical characteristics and package requirements rather than simply choosing components based on nominal voltage ratings.
The detailed reasoning behind the protection architecture is documented separately in:
STM32 Automotive BCM Design Decisions
The incoming 12 V supply is not used directly by the STM32 digital circuitry.
A regulated low-voltage supply stage is used to provide an appropriate operating voltage for the microcontroller and associated electronics.
The regulator section was designed with consideration for:
The regulator and its associated capacitors were selected with reference to the relevant component datasheets and recommended application circuits.
One of the board's important automotive-oriented functions is monitoring the external supply voltage.
The input voltage is scaled to a level that can safely be measured by an STM32 ADC input.
This allows firmware to estimate the external battery/supply condition and potentially implement functions such as:
The voltage-monitoring circuit therefore provides a bridge between the higher-voltage automotive electrical environment and the lower-voltage microcontroller domain.
The board includes a dedicated CAN interface to provide an automotive-oriented communication channel.
CAN is particularly important in automotive electronics because multiple electronic control units can communicate over a shared differential bus.
The CAN section allows the development board to be used for experiments involving:
The CAN interface is treated as a distinct subsystem so that the microcontroller's communication logic can interface with the physical CAN bus through the appropriate transceiver stage.
The board provides multiple output channels intended for controlling external loads.
These outputs are not treated as simple microcontroller GPIO connections.
The output stages incorporate driver/protection circuitry so that the STM32 remains separated from the higher-power load side.
This architecture allows the board to serve as a development platform for functions such as:
The output-channel design also provides an opportunity to study the difference between a microcontroller's logic-level signal and the electrical requirements of an external automotive load.
The board provides several external interfaces and control points to make it useful as a development platform rather than a closed system.
These interfaces allow external signals, loads, communication connections, and test equipment to be connected during development.
Connectors were selected with consideration for:
Connector placement was also considered during PCB layout so that external connections remain accessible when the board is installed or tested.
Component selection was based on the electrical and mechanical requirements of each subsystem.
Important factors considered during selection included:
For important components, the manufacturer's datasheet was reviewed before finalizing the component and its implementation.
This was particularly important for:
The objective was to avoid selecting components based only on their part number or nominal rating and instead verify their actual electrical and mechanical characteristics.
Footprints were assigned according to the actual package requirements of the selected components.
Footprint selection considered:
Where appropriate, the selected KiCad library footprints were reviewed against the component datasheets before being used in the PCB.
Examples of packages used in the design include:
The final footprint assignments can be inspected directly in the KiCad project.
The schematic was organized into functional sections rather than treating the entire board as one undifferentiated circuit.
Major functional areas include:
This organization makes the schematic easier to understand, troubleshoot, and modify.
The project uses a hierarchical schematic structure so that major functional sections can be separated into dedicated schematic pages.
The PCB layout was developed from the completed schematic and component assignments.
Component placement was considered according to electrical function and physical accessibility.
Particular attention was given to:
The goal was to produce a PCB that is not only electrically connected but also organized in a way that makes the board easier to inspect, understand, manufacture, and develop further.
KiCad's Electrical Rules Check (ERC) and Design Rules Check (DRC) were used during development.
ERC was used to identify schematic-level issues such as:
DRC was used to identify PCB-level issues such as:
The design was reviewed and corrected iteratively rather than treating ERC/DRC as a final step only.
The KiCad 3D Viewer was used to inspect the completed PCB design from different angles.
The 3D model provides a useful physical representation of:
The repository includes 3D-view images showing the assembled PCB from an isometric perspective.
These views provide a quick way to understand the physical structure of the board before manufacturing.
The detailed engineering reasoning behind the board is documented separately.
The Design Decisions document explains the reasoning behind:
For the full engineering discussion, see:
STM32 Automotive BCM Design Decisions
The repository contains supporting project documentation and visual material.
The images directory contains project images such as:
The media directory contains supporting project media where applicable.
These files are included to make the development process easier to understand without requiring the reader to immediately open the KiCad project.
STM32-Automotive-BCM-Development-Board/
│
├── images/
│ ├── bcm_3d_isometric.png
│ └── ...
│
├── media/
│ └── ...
│
├── STM32_Automotive_BCM_Development_Board.kicad_pro
├── STM32_Automotive_BCM_Development_Board.kicad_sch
├── STM32_Automotive_BCM_Development_Board.kicad_pcb
│
├── STM32_Automotive_BCM_Design_Decisions.md
├── .gitignore
├── LICENSE
└── README.mdThe exact contents of the repository may change as the project continues to develop.
The project followed a structured hardware-development workflow:
Requirements
↓
System Architecture
↓
Component Selection
↓
Datasheet Review
↓
Schematic Design
↓
ERC Checking
↓
Footprint Assignment
↓
PCB Layout
↓
DRC Checking
↓
3D Verification
↓
Documentation
↓
Manufacturing PreparationThis workflow was chosen to reflect a more professional engineering process rather than designing the schematic and PCB independently.
The current version of the project contains:
The project is currently intended primarily as a development and learning platform.
It should not be treated as a production automotive control module without further engineering validation, testing, environmental qualification, EMC testing, safety analysis, and compliance work.
Future development may include:
The longer-term objective is to use the board as a platform for developing practical embedded-systems and automotive-electronics skills.
This project provided practical experience across several areas of embedded hardware development:
This hardware design is released under the:
CERN Open Hardware Licence Version 2 – Strongly Reciprocal (CERN-OHL-S-2.0)
See the LICENSE file for the complete licence terms.
The licence allows use, modification, and distribution of the hardware design subject to the conditions of the CERN Open Hardware Licence.
Akinkunmi Akindolapo
STM32 • Embedded Systems • Automotive Electronics • PCB Design • Robotics
This project is part of a broader effort to develop practical engineering skills by taking projects through the complete development cycle.
The objective is not only to learn how to write code or draw schematics, but to understand how those individual skills connect to form a complete embedded system.
Every project is another step toward becoming the embedded systems engineer I want to be.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 100 nF | Capacitor_SMD:C_1206_3216Metric | C4, C5, C6, C7, C8, C10, C13, C14, C17, C22, C23, C24 |
| 6 | 10kΩ | Resistor_SMD:R_0805_2012Metric | R_CAN1, R18, R25, R27, R29, R31 |
| 5 | 100Ω | Resistor_SMD:R_0805_2012Metric | R17, R24, R26, R28, R30 |
| 5 | 1N5819 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D9, D12, D13, D14, D15 |
| 5 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q2, Q3, Q4, Q5, Q6 |
| 5 | Relay_SPDT | Relay_THT:Relay_SPDT_Omron-G5LE-1 | K2, K3, K4, K5, K6 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 2 | 10 kΩ | Resistor_SMD:R_0805_2012Metric | R2, R3 |
| 2 | 100 kΩ | Resistor_SMD:R_0805_2012Metric | R19, R22 |
| 2 | 20 pF | Capacitor_SMD:C_0603_1608Metric | C11, C12 |
| 2 | 22 µF | Capacitor_SMD:CP_Elec_10x10.5 | C16, C18 |
| 2 | 220Ω | Resistor_SMD:R_0805_2012Metric | R1, R5 |
| 2 | SW_Push | Button_Switch_SMD:SW_SPST_TL3342 | SW1, SW2 |
| 1 | 1 MΩ | Resistor_SMD:R_0805_2012Metric | R4 |
| 1 | 1 kΩ | Resistor_SMD:R_0805_2012Metric | R23 |
| 1 | 100 µF | Capacitor_SMD:CP_Elec_10x10.5 | C1 |
| 1 | 100nF | Capacitor_SMD:C_1206_3216Metric | C2 |
| 1 | 10KΩ | Resistor_SMD:R_0805_2012Metric | R6 |
| 1 | 120Ω | Resistor_SMD:R_0805_2012Metric | R_CAN2 |
| 1 | 1µF | Capacitor_SMD:C_1206_3216Metric | C9 |
| 1 | 22 kΩ | Resistor_SMD:R_0805_2012Metric | R21 |
| 1 | 220 µF | Capacitor_SMD:CP_Elec_10x10.5 | C3 |
| 1 | 3.3 D_TVS | Diode_SMD:D_SOD-123 | D11 |
| 1 | 33kΩ | Resistor_SMD:R_0805_2012Metric | R20 |
| 1 | 68uH | Inductor_SMD:L_12x12mm_H8mm | L1 |
| 1 | 8MHz | Crystal:Crystal_HC49-U_Horizontal | Y1 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U3 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J2 |
| 1 | Conn_01x04 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | DOORLOCK | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J7 |
| 1 | D_TVS | Diode_SMD:D_SMB | D1 |
| 1 | D_Zener | Diode_SMD:D_SOD-123 | D10 |
| 1 | FerriteBead | Inductor_SMD:L_0603_1608Metric | FB1 |
| 1 | GREEN | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | HAZARD | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J8 |
| 1 | HEADLAMP | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J4 |
| 1 | HORN | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J5 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D4 |
| 1 | LM2596S-5 | Package_TO_SOT_SMD:TO-263-5_TabPin3 | U5 |
| 1 | MBR360 | Diode_THT:D_DO-201AD_P15.24mm_Horizontal | D2 |
| 1 | NUP2105L | Package_TO_SOT_SMD:SOT-23 | D5 |
| 1 | Q_PMOS_GDS | Package_TO_SOT_THT:TO-220-3_Vertical | Q1 |
| 1 | RXEF110 | Fuse:Fuse_Bourns_MF-RG300 | F1 |
| 1 | SN65HVD230 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U4 |
| 1 | STM32F103C8Tx | Package_QFP:LQFP-48_7x7mm_P0.5mm | U2 |
| 1 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J1 |
| 1 | Screw_Terminal_01x03 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-3-3-5.08_1x03_P5.08mm_Horizontal | J9 |
| 1 | WIPER | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J6 |

mohamed-belal-10/can-motor-controller-node
CAN-connected closed-loop DC motor controller node — KiCad hardware (STM32F103, DRV8874, SN65HVD230) with an AS5600 encoder sub-PCB

ahsan105/SIM800_GSM_PCB_design
Custom-designed GSM communication PCB using SIM800 with UART, RS232 level shifting, and power circuitry (KiCad)

TheEinfachFelix/CampPhone
Warum habe ich mich dagegen entschieden, das Sim Modul selber zu implementieren? Ich habe kein Chip gefunden, der günstiger als das fertige Modul war, und ein Datenblatt in Englischer Sprache hat.

ios-cv/maxbox
An in car telemetry and access management box consisting of PCB design, firmware and case.


klaus-liebler/sensact
Es gibt vier Namespaces für Nachrichten "REQUEST" und "RESPONSE", "EVENT" und "ACKNOWLEDGE". Dies wird mit den beiden LSB des Versions-Namespace-Bytes erklärt (Somit bleiben 64 Versionierungsmöglichkeiten) Alle vier…


brgyplrm/MaChip
This directory contains the official KiCad 8/10 hardware design files, production Gerbers, bill of materials (BOM), and assembly guides for the MACHIP 3.0 Access Control Terminal.
It measures 150 × 130 mm and has 2 copper layers, 1.6 mm thick.
89 parts, built around the SN65HVD230D, LM2596S-5.0, AMS1117-3.3 and AO3400A. 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.
From the Akinlatauto19/STM32-Automotive-BCM-Development-Board repository on GitHub, at the commit this page was made from: the board is STM32_Automotive_BCM_Development_Board.kicad_pcb and its schematic STM32_Automotive_BCM_Development_Board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CERN-OHL-S-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).