Skip to the content
4 layers100 × 100 mmPCB Motor, the printed circuit board in 3D

Code & Firmware to generate continuous coil PCB motor designs

Size
100 × 100 mm
Copper layers
4
Thickness
1.2 mm
Parts
33
Nets
25
Pads
102
Tracks, vias
5,256, 758
Pours
56
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
17 Jan 2024
Updated
29 Jan 2024

Overview

PCB Motor is an open-source printed circuit board by SaralTayal123, from the SaralTayal123/PCB_Motors repository on GitHub. It is a 4-layer board of 100 × 100 mm with 33 parts on 25 nets, routed with 5,256 tracks and 758 vias.

It is built around the LM321, TMC6300-LA and SS460S. Its parts include 9 resistors, 6 ICs, 5 capacitors and 1 connector. It belongs with the robots and motor control boards and the ESP32 and RISC-V boards of this library.

Main components

3

README

README.md

PCB_Motors

Code & Firmware to generate continuous coil PCB motor designs

Bare PCB Pictures: PCB_MOTOR_TOP PCB_MOTOR_BOTTOM PCB_CLOSEUP

Completed Dual PCB Stator, center rotor motor

PCB_Dual_T PCB_Dual_S

Media

Videos of the motor spinning and build pictures are in the Media folder

Cloning the repo

Note that if you clone the repo, you will also need to intialize the submodules. You can do so as follows

text
git clone git@github.com:SaralTayal123/PCB_Motors.git
cd PCB_Motors

git submodule init
git submodule update

You will also need to delete/comment out line 6 of kicad-coil-plugins/pcb_json.py as follows

text
import json
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

# from helpers import rotate ### Modify by commenting out ###

How to build your own motors

Option 1 (Suggested): Simply use the existing kicad design and order the current designed version through a manufacturer like PCBway.

Option 2: Design your own PCB motors using the python script. Steps for that are outlined below

Step 1:

Calculate the appropriate winding pattern. Using the following link, find a slot-magnet combo that will produce a repeating pattern of "A", "B", "C". The ABC phases can be in any order and any case (upper or lower) as long as the pattern that they appear in are consistant. The other restriction is that your Slot number needs to be a multiple of 6 given this winding pattern. For example, I used a 36 slot, 12 magnet pole design and achieved a pattern of "AbC" as pictured below. The upper/lower case refers to the polarity of the coil phase and can be easily switched during wiring, which is why it's not case sensitive as long as the pattern is repeated.

Calculator link: https://www.bavaria-direct.co.za/scheme/calculator/

winding_pattern

This step can be a little tedious since you will need to find magnets that will fit your motor inner/outer diameter while matching the pole pole pair count. If you need more flexibility on not requiring slots be a multiple of 6, or follow a different winding pattern, then this wave motor design isn't the best option for you, and a traditional repeated coil design like this is ideal for you: https://github.com/atomic14/kicad-coil-plugins/tree/216a77b6a4d9532b090e98a6620eb1c3f18db77d

Step 2: Use the python script

Using the slot/pole combo from step 1 (or using the reccomended 36/12 design), open the continous_coil_gen.ipynb python notebook. Here, input the inner and outer diameter of your coils. You should tailor these to be the width of your magnets to make your motor as effective aas possible. You can also tune a few PCB trace parameters here depending on the capabilities of the PCB manufacturing available to you

Step 3: Import the Kicad coil design into Kicad

Using the tool here, import your coil design into kicad. If you decide to work with my example board design in KiCad, you should right click the imported coil and move it to the origin to center it perfectly for your design.

Finally, integrate your coils with the rest of the motor controller circuitry to create your own PCB Motor!

BOM for the example motor

Simple BOM, Cost is ~$25 + shipping PCBWAY cost ~$26 for 5 boards + Shipping Magnets 24 pieces @ $0.37 each = $30 (I recommend some spares as they tend to snap/break if they fly out of your hand into a metal object) : https://www.magnet4less.com/neodymium-bar-magnets-1-2-in-x-1-4-in-x-1-8-in-n42

Rough Specs

Configuration: 2 sided PCB Stator, Rotor in the middle, 8V, Star wiring pattern

Stall torque: 0.008 Nm Top Speed: 170 Rad/s Max Power draw: 5 Watts Peak output power (measured torque x angular velocity): 0.3 Watts

torq_v_vel torq_v_power

Testing

Motor charecterization was performed by using 3d printed disc with bolts to serve as a known inertial load to our motor. Measuring the angular acceleration at a full torque command at each angular velocity allowed us to charecterize the torque curve of the motor and the output power curve for the motor (pictured above). This sort of testing is commonnly used for testing cars and is called an inertial dyno. The extra inertial load attached to the PCB motor is pictured below.

inertial_load

The neat thing about using this test is that all one needed to do was add some extra data-logging firmware, and the PCB motors can self-charecterize themselves without any external equipment!

We were also able to monitor a DC Amp-meter on the input power line of the motor to measure system efficiency, howerver there was a lot of switching noise on that power rail to measure a clean signal. Noisy graph is available in Media/torq_eff.png image. The efficiency test needs to be repeated with a low pass filter and a secondary means to test the motor with the motor controller out of the loop.

TODO:

  • Why this design
  • Star vs Delta wiring
  • How to pick winding factor and why conventional winding table won't work

Motor winding image credits: https://www.bavaria-direct.co.za/info/#prettyPhoto

Parts

33
QtyValueFootprintReferences
7MountingHoleMountingHole:MountingHole_3.5mmH1, H2, H3, H4, H5, H6, H7
610kResistor_SMD:R_0603_1608MetricR7, R8, R9, R10, R11, R12
40.1uFCapacitor_SMD:C_0603_1608MetricC14, C15, C17, C21
3SS460SPackage_TO_SOT_SMD:SOT-23WU3, U4, U6
2SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1, JP2
122uFCapacitor_SMD:C_0805_2012MetricC13
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1LM321Package_TO_SOT_SMD:SOT-23-5U2
1MOUDLE-SEEEDUINO-XIAO-ESP32C3Module:MOUDLE14P-SMD-2.54-21X17.8MMU1
1R120mResistor_SMD:R_1206_3216MetricR1
1R18KResistor_SMD:R_0603_1608MetricR3
1R2KResistor_SMD:R_0603_1608MetricR2
1TMC6300Modified:QFN-20-1EP_3x3mm_P0.4mm_EP1.65x1.65mm_ThermalVias_LargerViaHolesU5
1UModified:TestPoint_Pad_D2.0mm_ValueSilkTP6
1VModified:TestPoint_Pad_D2.0mm_ValueSilkTP7
1WModified:TestPoint_Pad_D2.0mm_ValueSilkTP8

Similar boards

  • 2 layers35.1 × 36.6 mmBinNanoFOC, the printed circuit board in 3D

    BinNanoFOC

    katbinaris/nanofoc_devkit

    Compact All-In-One BLDC Controler featuiring ESP32-S3, TMC6300 and Magalpha sensors. Small 35x35mm footprint.

    76 parts146
  • 4 layers81.2 × 81.2 mmView base, the printed circuit board in 3D

    View base

    SeedLabs-it/smartknob-hardware

    PCB and CAD files for smartknob devkit

    259 parts47
  • 2 layers54 × 54 mmEncoderDaughterboard, the printed circuit board in 3D

    EncoderDaughterboard

    DylanFranz/Teensy-Synth

    A portable digital audio workstation and synthesizer

    50 parts2
  • 4 layers92.5 × 85 mmELEC3300 DEMO, the printed circuit board in 3D

    ELEC3300 DEMO

    coopjz/FOC_Control_Boards

    166 parts1MIT
  • 4 layers71 × 71 mmSmartKnob Bachelorarbeit, the printed circuit board in 3D

    SmartKnob Bachelorarbeit

    LucasCanete/GermanSmartknob

    On the front side there is a ring of RGB Leds for user feedback and at its center a magnetic encoder. The magnetic encoder is key to detect the rotation's direction of the BLDC Motor, that in this project is used as an…

    111 parts
  • 2 layers50 × 50 mmBlackmacro dial, the printed circuit board in 3D

    Blackmacro dial

    KipJM/blackmacro-hardware

    An open source, smaller, more configurable, and more capabable video editing keyboard based on the raspberry Pi Pico 2W.

    40 parts29CERN-OHL-W-2.0
  • 4 layersBLDCM Power, the printed circuit board in 3D

    BLDCM Power

    brenocq/bldc-motor

    High-precision BLDC motor and controller development from scratch (in progress...)

    60 parts13MIT
  • 4 layers72 × 47 mmMini motor go V1 rev3, the printed circuit board in 3D

    Mini motor go V1 rev3

    Every-Flavor-Robotics/motorgo-mini-hardware

    hardware files for motorgo mini

    97 parts12

Questions

How big is the PCB Motor PCB?

It measures 100 × 100 mm and has 4 copper layers, 1.2 mm thick.

What parts does the PCB Motor use?

33 parts, built around the LM321, TMC6300-LA and SS460S. 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 PCB Motor KiCad files?

From the SaralTayal123/PCB_Motors repository on GitHub, at the commit this page was made from: the board is KiCad_PCB/PCB_Motor.kicad_pcb and its schematic KiCad_PCB/PCB_Motor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PCB Motor design in my own project?

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