Skip to the content
2 layers85.1 × 53.3 mmCoal Hopper, the printed circuit board in 3D

Arduino based stepper motor controller for model railway coal-hopper

Size
85.1 × 53.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
47
Pads
101
Tracks, vias
131, 0
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
10 Dec 2024
Updated
15 Jul 2026

Overview

Coal Hopper is an open-source printed circuit board by lucari, from the lucari/Coal-Hopper repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 85.1 × 53.3 mm with 24 parts on 47 nets, routed with 131 tracks and 0 vias.

It is built around the TMC2209. Its parts include 9 connectors, 4 resistors, 4 diodes and 3 ICs. It belongs with the robots and motor control boards of this library.

Main components

1

README

README.md

Coal-Hopper

This is an Arduino based stepper motor controller for a model railway coal-hopper.

*** The board and software has been updated as more requirements were uncovered. The original files can be found under the V1 folder ***

The design is based around an Arduino Nano and a TMC2209 Silent Stepper motor controller. There are 6 general I/O pins that are used for the home & optional away microswitches, trigger input, busy output, Train detection and Conveyor control. Trimmers are used to set the speed of the hopper, length or travel (if not using Away switch) and delay time at the Away position before moving home.

Note. The 5v supply on the I/O pins comes from the Nano voltage regulator. It will not be enough to drive relays and servos. In this instance, an external power source is required.

The end-stop switches can be Normally-Open or Normally Closed types and set by configuration variables in the software.

When a train is detected (reed switch), the conveyor motor, via a relay board, is turned on for a period of time.

When triggered by the level of coal in the hopper or the train leaving the unloading section, and after a delay, the stepper motor will move the hopper to the Away position. Once at the top and after a delay (when the hopper is emptied), the hopper will move back to the Home position. During this time, the busy output is used via a relay to disable track power in the unloading section.

At initialisation time, the hopper is moved back to Home. If the hopper is already Home, it is moved away for a few turns and then back Home.

The Arduino will normally be powered through the Stepper Motor supply. There is a jumper provided so this can be isolated if the Arduino is connected by its USB port to a PC. This will avoid conflicting power on the Nano.

Arduino Code

The code is held under the Arduino folder. Any changes to the connections can be made at the top of the file. The code is written 'long-hand' to make it readable and maintainable.

Kicad Files

A Custom PCB was made for this and can be found under the Kicad folder.

Image of the PCB Front Image of the PCB Rear

Completed Boards

The image below shows a completed board.

Image of PCB Built

Parts

24
QtyValueFootprintReferences
41KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4
21N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD3, D4
2PC817Package_DIP:DIP-4_W7.62mmU2, U3
112v PowerTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
1Arduino NanoModule:Arduino_NanoA1
1Arduino PowerConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1AwayConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ9
1AwayConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ6
1AwayLED_THT:LED_D5.0mmD2
1BusyConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1DelayPotentiometer_THT:Potentiometer_Piher_PT-6-V_VerticalRV1
1HomeConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ8
1HomeLED_THT:LED_D5.0mmD1
1HomeConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ7
1LengthPotentiometer_THT:Potentiometer_Piher_PT-6-V_VerticalRV3
1SpeedPotentiometer_THT:Potentiometer_Piher_PT-6-V_VerticalRV2
1Stepper MotorConnector_JST:JST_XH_B4B-XH-A_1x04_P2.50mm_VerticalJ3
1TMC2209Richard:TMC2209-ModuleU1
1TriggerConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4

More from lucari/Coal-Hopper

1
  • 2 layers85.1 × 53.3 mmCoal Hopper V2, the printed circuit board in 3D

    Coal Hopper V2

    lucari/Coal-Hopper

    Arduino based stepper motor controller for model railway coal-hopper

    18 partsGPL-3.0

Similar boards

  • 4 layers38 × 39 mmCLN17-V1.5, the printed circuit board in 3D

    CLN17-V1.5

    creapunk/CLN-ClosedLoopNemaDriver

    Compact closed-loop stepper motor driver designed for NEMA motors

    103 parts1.1k
  • 2 layers155 × 80 mmESP32Controller, the printed circuit board in 3D

    ESP32Controller

    simon-jouet/ESP32Controller

    ESP32-based 3D printer controller

    171 parts134
  • 4 layers80 × 70 mmJellyfish, the printed circuit board in 3D

    Jellyfish

    wntrblm/jellyfish-and-starfish

    Jellyfish and Starfish are control boards designed for use with the LumenPnP. Starfish controls the base of the machine including X & Y axes and pneumatics.

    172 parts112
  • 2 layers76.2 × 69.9 mmStartrckr pcb, the printed circuit board in 3D

    Startrckr pcb

    NikodemBartnik/StarTrckr

    Open source star tracker for deep sky astrophotography

    59 parts98
  • 2 layers115 × 75 mmSpinCoater, the printed circuit board in 3D

    SpinCoater

    RParkerE/OpenSilicon

    OpenSilicon enables DIY semiconductor fabrication with open-source guides for building IC equipment at home. The project includes BOMs, 3D files, firmware, and PDKs, supporting makers and researchers in chip fabrication.

    11 parts55GPL-3.0
  • 2 layers48 × 40.9 mmPicoMMUBoard, the printed circuit board in 3D

    PicoMMUBoard

    AdamTuraj/PicoMMU

    A Klipper expansion board intended to run a MMU unit to control a stepper motor and servo.

    35 parts13MIT
  • 2 layers184 × 80.5 mmPrometheus PCB, the printed circuit board in 3D

    Prometheus PCB

    TheContrappostoShop/Apollo

    Control Board for the Prometheus mSLA Printer.

    129 parts13CERN-OHL-S-2.0
  • 4 layers100 × 123 mmDuet3 5+ Ethernet, the printed circuit board in 3D

    Duet3 5+ Ethernet

    Duet3D/Duet3-Mini5plus

    This repository also contains information in the Mini 2+ : a two driver expansion board for the Duet 3 mini 5+

    461 parts12

Questions

How big is the Coal Hopper PCB?

It measures 85.1 × 53.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Coal Hopper use?

24 parts, built around the TMC2209. 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 Coal Hopper KiCad files?

From the lucari/Coal-Hopper repository on GitHub, at the commit this page was made from: the board is V1/Kicad/Coal-Hopper.kicad_pcb and its schematic Kicad/Coal-Hopper-V2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Coal Hopper design in my own project?

Its repository publishes it under the GPL-3.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).