Train Modeling Digital Control (DCC)
History
This is a common project with my father, building a train modeling. One more time it could be simple, but I had decided to challenge myself once again. The train modeling had changed with years, now you can have more than one engines on the same track and each one could have a different speed, direction "watch out". It's done by sending data on the track by reversing the voltage on the track with an exact timing protocol.
Like you can imagine it's not the output of your MCU who drive directly the track, you need a driver that will at lease give you 3 amps. Those controllers already existed but it's costly and they don't do what I was looking for. You can find more info on the protocol and how it's work just by typing "+DCC+train" in Google, that's what I have done.
Features
- Control 4 engines simultaneously
- Control 30 switches
- Short track detection and power cutoff
- Side track programming engine registers
- Train head beam control
- Firmware upgradeable
Pictures
Download
Schematic DCC MCU Control in PDF format
Schematic DCC Driver in PDF format
Source Code
DCC protocol standard 1/2 in PDF format
DCC protocol standard 2/2 in PDF format
4 Comments to “Train Modeling Digital Control (DCC)”
Post comment
Please note
Categories
- All projects
- Audio
- Clock
- Electric Train
- Gadjet
- General Posting
- Laser
- Lastes News
- LED
- Library
- Sensor
- Software
- Work Bench Tools

admin
.jpg)
All my source codes were taken from my personal projects.
Hi,
Could you upload the latest source code, becouse I can't compile it.
Thx.
Zs.
With time the compiler had change, and I never modify this old code to work with the new compiler,
Sylvain
Hi,
The "void Sound(unsigned char i);" implementation is missing from the Lcd.c source file. Without this I had to comment the sound from TrainControl, but I could to compile.
Thanks,
Zsolt
I m not shure but I think this function is with the keypad function?