Princeton University Research
Modernizing the ~20-year-old DCC Railroad Track Switch Thrower for Princeton University’s microprocessor curriculum (MAE 412: Microprocessors and Their Applications)—designing, sourcing, and hand-soldering a single-sided PCB with an onboard ATmega328P microcontroller and dual 4700µF trickle-charged capacitors.
Modernizing the DCC Railroad Track Switch Thrower
Princeton University's MAE 412 curriculum (Microprocessors and Their Applications) uses automated model train layouts to teach embedded control systems. The department's existing DCC track switch thrower was ~20 years old. I analyzed the legacy circuit and designed, sourced, and hand-soldered a single-sided PCB integrating an onboard ATmega328P microcontroller and dual 4700µF capacitors for rapid successive throws.
Modernizing the DCC Railroad Track Switch Thrower
Abstract: Analyzed Princeton's legacy ~20-year-old MAE 412 DCC switch thrower schematic and redesigned it into a modern, single-sided PCB. Key upgrades include integrating an onboard ATmega328P microcontroller for direct autonomous track control and adding a secondary 4700µF trickle-charged capacitor to enable rapid back-to-back switch throws.
Read Full Paper Transcript ▸
Part of Princeton University’s engineering curriculum is a class centered on microprocessors and their applications (MAE 412). This class uses model train sets as the platform for students to create and test their own automated model train sets. One of the most useful tools is a DCC railroad track switch thrower with a trickle-charged capacitor. With the original board’s design being ~20 years old and the limits becoming clear, it was decided to modernize the board.
Analysis of the legacy schematic (Figure 1) showed it drew power from the track or an optional 5V input, charging a capacitor over ~12 seconds before discharging through a relay to throw the track switch.
The new board introduced two key additions: an onboard ATmega328P chip, eliminating external connections for direct automation, and a second 4700µF capacitor to store additional charge for two rapid throws. The board was engineered as a single-sided PCB (~2 weeks design, ~1 week assembly and hand-soldering), reviewed, approved, and deployed in the lab.
My newly fabricated single-sided DCC RR switch thrower PCB held up to the lab lights, showing the 28-pin ATmega328P chip, DPDT relay socket, 4N25 optocoupler socket, status LED, resistors, 6-pin header, and single-sided copper routing.
Underside of the new single-sided copper-clad board showing the complex single-layer trace routing and hand-soldered through-hole pads completed in the Princeton lab.
My redesigned schematic integrating the 28-pin ATmega328P, dual 4700µF trickle-charged capacitors (C1 & C3), KS2E DPDT relay, 4N25 optocoupler, BC327 PNP, and TIP120 transistor.
The original Princeton MAE 412 schematic (Rev C, Aug 2008) using track power, a bridge rectifier, a single capacitor (~12s charge time), 4N33 optocoupler, and external TTL control lines.
The ~20-year-old double-sided Princeton MAE 412 board with a single large electrolytic capacitor, Omron G5V-2-H1 relay, and TIP122 wired to a model railroad turnout.