Skip to the content
2 layers109.1 × 100.1 mmSterownik DC, the printed circuit board in 3D

This project is a row seeder controller featuring DC motor control and CAN communication for efficient and precise seeding operations

Size
109.1 × 100.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
134
Nets
118
Pads
421
Tracks, vias
1,320, 102
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
9 Jan 2025
Updated
2 Nov 2025

Overview

Sterownik DC is an open-source printed circuit board by lologog, from the lologog/RowSeederController repository on GitHub, published under the MIT licence. It is a 2-layer board of 109.1 × 100.1 mm with 134 parts on 118 nets, routed with 1,320 tracks and 102 vias.

It is built around the BTS5030-1EJA, BAS21 and BC807. Its parts include 65 resistors, 25 capacitors, 15 diodes, 11 connectors and 6 ICs. It belongs with the robots and motor control boards of this library.

Main components

3

README

README.md

DC Motor Controller for Row Seeder

Project Description

This project focuses on the design and development of a modular DC motor controller system for a row seeder. The system ensures precise control over seed dispensing and supports communication with external devices via CAN protocol.

The project consists of a main controller board an an extension board connected via 2.54mm pin sockets:

  • Main Controller Board: Handles motor control, sensor readings and CAN communication protocol.
  • Extension Board: Adds high-current switches and extra digital inputs for expanded functionality.

This modular approach allows future modifications for broader compatibility and functionality.


Features

Main Controller Board:

  • Microcontroller: STM32L476RGT6 (low power, high-performance Cortex-M4).
  • DC Motor Control: H-bridge driver with speed and direction regulation using PWM.
  • CAN Communication: Communication interface enabled by an SN65HVD230 transceiver, operating with a default baud rate of 500 kbits/s.
  • Sensor Inputs:
    • Analog inputs (12V) for angle sensors.
    • Encoder inputs (5V and 12V) for speed control.

Extension Board:

  • Digital Input Expansion: Additional pins for external sensors or signals.
  • High-current Switches: Reliable control of external loads through robust switches.
  • Modular Connectivity: Connects seamlessly to the main board via pin sockets.

PCB Renderings

  • Main Controller Board:

  • Extension Board:

    Extension PCB made by my friend :)


Real-World Implementation

Below are images of the actual hardware implementation:

  • Fully assembled main controller:

  • Main controller connected with extension board:

  • Whole controller packed in a cover with 4 connectors:


Results

  • PWM Motor Control: Verified precise speed and direction control for the DC motor.
  • Sensor Readings: Successfully processed analog inputs and encoders.
  • PID Algorithm: Achieved stable motor speed with minimal overshoot and fast response. Example motor angular velocity step response (fs = 10Hz)
  • CAN Communication: Reliable message transmission with external systems. Sending analog reading of distance sensor via CAN bus

CAN Identifiers Documentation

The following table includes example CAN IDs and their corresponding actions. These IDs are meant as examples and should be adjusted to fit the needs of the target hardware and system.

IDFunctionParametersMessage TypeNotes
0x01PingNoneResponseSends a "ping" response
0x02Turn LED ONNoneRequestTurns on the LED
0x03Turn LED OFFNoneRequestTurns off the LED
0x04Toggle LED stateNoneRequestToggles the LED state
0x05Read distance sensor 1ADC channelRequestReads analog measurement from channel 6
0x06Read distance sensor 2ADC channelRequestReads analog measurement from channel 7
0x07Turn on/off switch 11 (ON), other (OFF)RequestControls power switch 1
0x08Turn on/off switch 21 (ON), other (OFF)RequestControls power switch 2
0x09Turn on/off switch 31 (ON), other (OFF)RequestControls power switch 3
0x10Turn on/off switch 41 (ON), other (OFF)RequestControls power switch 4
0x11Turn on/off switch 51 (ON), other (OFF)RequestControls power switch 5
0x12Turn on/off switch 61 (ON), other (OFF)RequestControls power switch 6
0x13Motor PID controlRPM, directionRequestPID control for motor speed
0x14Stop motorNoneRequestStops the motor
0x15Motor percent controlPercent, directionRequestControls motor using percentage duty cycle

Potential Improvements

  • Support for a broader range of motors and sensors.
  • Add more communication protocols and better diagnostic.
  • Motor measurement for better motor control.
  • Enhanced firmware for fault detection and recovery.
  • Improved PID regulation using extrapolation between samples and implementation of angular speed control through current measurement.

Author

Parts

134
QtyValueFootprintReferences
184.7kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR30, R32, R48, R55, R57, R62, R65, R69, R71, R82, R83, R84, R86, R87, R88, R89 +2
71.5kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR50, R51, R64, R64, R76, R78, R79
74.7 nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC42, C43, C43, C44, C48, C49, C50
747kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR61, R63, R63, R66, R77, R80, R81
7Conn_01x06_SocketConnector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_VerticalJ4, J6, J7, J8, J9, J10, J11
61.2kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR36, R58, R72, R85, R90, R93
6100 nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC19, C40, C41, C45, C46, C47
6100pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC14, C21, C22, C24, C25, C27
610kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR22, R23, R24, R25, R31, R33
61kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR35, R59, R60, R73, R74, R75
6270Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR12, R13, R16, R17, R26, R27
636VDiode_SMD:D_SOD-123D7, D18, D19, D20, D25, D26
64.7KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR28, R29, R34, R67, R68, R70
64.7VDiode_SMD:D_SOD-123C25, D6, D8, D9, D10, D12
6BAS21Package_TO_SOT_SMD:SOT-23D21, D22, D23, D27, D28, D29
6BC807Package_TO_SOT_SMD:SOT-23-3Q2, Q3, Q4, Q5, Q6, Q7
6BTS5030-1EJAPackage_SO:Infineon_PG-DSO-8-43U15, U16, U17, U18, U19, U20
3LEDDiode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolderD15, D16, D17
2100Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR45, R47
2Conn_02x03_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_VerticalJ1, J2
2~Package_DIP:DIP-16_W7.62mmLTV2, LTV3
1330Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR46
1Conn_01x04_SocketConnector_PinSocket_2.54mm:PinSocket_2x02_P2.54mm_VerticalJ5
1Conn_01x12_SocketConnector_PinSocket_2.54mm:PinSocket_2x06_P2.54mm_VerticalJ3
1~Connector_PinSocket_2.54mm:PinSocket_2x05_P2.54mm_VerticalST_LINK_V1

The 131 most common of 134 parts.

More from lologog/RowSeederController

1
  • 2 layers126.2 × 163.9 mmSterownik DC, the printed circuit board in 3D

    Sterownik DC

    lologog/RowSeederController

    This project is a row seeder controller featuring DC motor control and CAN communication for efficient and precise seeding operations

    104 partsMIT

Similar boards

  • 2 layers41 × 79.3 mmLiControl, the printed circuit board in 3D

    LiControl

    doppelhub/MuddersMIMA

    Mudders Take on Manual IMA Control in the G1 Honda Insight

    84 parts5GPL-3.0
  • 2 layers40.6 × 30.5 mmCpuPrint, the printed circuit board in 3D

    CpuPrint

    tpotechnix/TraktorAllrad

    62 parts1
  • 4 layers252 × 152 mmCTA control board, the printed circuit board in 3D

    CTA control board

    PySpice-org/eda-rw

    Python library to read/write KiCad and LibrePCB Sexpr file format

    619 parts9
  • 2 layers50 × 50 mmFilmolino, the printed circuit board in 3D

    Filmolino

    filmolino/SlideScanner

    The Filmolino SlideScanner is a device that makes it easy to scan slides in magazines fully automated using a modified slide projector and a digital camera.

    37 parts28GPL-3.0
  • 2 layers80 × 38.1 mmMotor v3, the printed circuit board in 3D

    Motor v3

    UoM-Robotics-Society/ROV-project

    Software, mechanical design and hardware for ROV

    92 parts14
  • 2 layers83.5 × 97.5 mmTeleprinterHat, the printed circuit board in 3D

    TeleprinterHat

    MattisLind/teleprinterHat

    A RaspberryPi HAT that interfaces a old school teleprinter

    145 parts6
  • 4 layers240 × 90.5 mmBILLEE Rover Control Module V1, the printed circuit board in 3D

    BILLEE Rover Control Module V1

    BILLEE-BroncoSTAR/billee-hardware-2027

    Hardware and firmware Repository for BILLEE URC 2027

    276 parts1MIT
  • 2 layers95 × 80 mmElectrolumino rev0, the printed circuit board in 3D

    Electrolumino rev0

    cl0rm/ElectroLumino

    Portable Mulit-Channel programmable EL wire driver featuring PWM

    90 parts1GPL-3.0

Questions

How big is the Sterownik DC PCB?

It measures 109.1 × 100.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Sterownik DC use?

134 parts, built around the BTS5030-1EJA, BAS21 and BC807. 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 Sterownik DC KiCad files?

From the lologog/RowSeederController repository on GitHub, at the commit this page was made from: the board is PCBs/ExtensionBoard/Sterownik-DC.kicad_pcb and its schematic PCBs/ExtensionBoard/Sterownik-DC.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Sterownik DC design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).