What is an Electronic Speed Controller?
An electronic speed controller (ESC) is a device that allows you to regulate and vary the speed and direction of a motor in your model train. It takes the power from your transformer or power pack and allows you to control how much of that power gets to the motor.
The ESC monitors the throttle signal from your transmitter or control unit and converts it into the appropriate amount of power delivered to the motor. This gives you precise control over the train's speed and allows you to slowly increase speed, maintain a constant speed, or slowly decrease speed.
Why Build Your Own ESC?
Building your own DIY ESC can save you quite a bit of money compared to buying a commercial ESC. Electronic speed controllers purchased from model shops or online retailers can cost $50, $100, or even more!
By sourcing common electronic components and assembling the circuit yourself, you can build a functional ESC for $20 or less. Plus, you'll gain valuable skills in basic electronics and get the satisfaction of creating something with your own hands.
Electronic Components Needed
Constructing a simple ESC doesn't require much in the way of exotic electronic components. Here are the main items you'll need:
-
LM317 voltage regulator - This adjusts the incoming voltage down to the 6-18V needed for the train motor.
-
TIP120 Darlington transistor - This amplifies the control signal to provide sufficient current for the motor.
-
Capacitors - These filter out electronic noise in the circuit. Both ceramic and electrolytic types are used.
-
Resistors - Resistor values control the voltage drop and current flow. Common 1/4 watt resistors are fine.
-
Potentiometer - This functions as the throttle control. A 10k or 25kOhm potentiometer works well.
-
PCB - A printed circuit board holds all the components. Perfboard is inexpensive and easy to work with.
All of these basic electronic components are available cheaply at electronics distributors or websites. Parts cost will be under $20 total.
Tools and Supplies You'll Need
Along with the electronic components, you'll need a few tools and supplies:
- Soldering iron and solder
- Wire cutters
- Needle nose pliers
- Multimeter
- Safety glasses
- Heat shrink tubing
- Wire - stranded 22 AWG
None of these should cost more than $15-20 if you don't already have them. Building electronics does require some specialty tools, but the investment is minor compared to the savings.
ESC Circuit Design and Layout
The full electronic schematic of the ESC is complex, but the overall circuit layout is straightforward. Here are the key stages:
-
12V Power Input - Power from the transformer/power pack enters here.
-
Voltage Regulation - The LM317 takes the input power and regulates it down to 5-18V as needed for the motor. Capacitors help filter electrical noise.
-
Signal Input - The throttle control potentiometer connects here to provide the control signal.
-
Signal Amplification - The TIP120 takes the control signal and amplifies the current for the motor.
-
Motor Output - The amplified control signal exits here and connects to the train motor.
By assembling the components on a printed circuit board in this order, you create the basic functionality of an ESC. Perfboard makes laying out the circuit much easier.
Step-by-Step Assembly Instructions
With all the parts and supplies ready, here are the step-by-step instructions to assemble the ESC:
1. Cut and shape the perfboard
Use a rotary tool with a cutting wheel or heavy duty snippers to cut the perfboard to size. Cut away areas to allow room for mounting and wires.
2. Insert and solder components
Following the circuit design, insert components on the board, placing them logically from left to right. Solder all leads.
3. Install connector terminals
Screw input, output, and potentiometer connectors into the perfboard at the appropriate spots.
4. Attach wiring
Cut wires to length and use crimp connectors to attach wiring to all components and connectors. Heat shrink all connections.
5. Test connections
Use a multimeter to test continuity of connections and verify no shorts between tracings.
Once assembled, apply power and test it works before installing in your model train. Building your own ESC provides great satisfaction and saves substantial money over commercial ESCs.
Troubleshooting Tips
If your DIY ESC doesn't work properly, here are some troubleshooting tips:
-
Check all solder connections - Reflow any joints that look cracked or cold.
-
Confirm component values - Make sure all resistors, capacitors and regulators are correct values.
-
Check input voltage - Verify track/transformer voltage is 12-18V when throttle is maxed.
-
Test with multimeter - Check voltage and continuity at all points in circuit.
-
Inspect components - Look for any burnt or damaged parts and replace if needed.
-
Review wiring - Confirm all wires go to proper terminals and have good crimped connections.
With careful assembly and testing, your homemade ESC should provide reliable, smooth control of your model train's speed and save you quite a bit of money in the process!