Forty years ago i designed an opamp based model train. Maximum functionality is combined here with simple operation, maximum convenience with most efficient way of working. Hi everyone, im looking at making a model train controller based off this circuit. Jan 25, 2012 its a little pulse width modulation electronic speed controller for an ordinary 12 volt model railway, using a netduino for the control although you could just as easily use an arduino. Motor controller as versatile as the arduino is, it cant drive a dc motor on its own. Model railroad computer control with traincontroller. The proposed circuit can be considered almost a perfect dc motor speed controller. Pwm is the easy way to control speed on a dc motor. Hello fellow arduinoites, i am building a lengthy n scale model rail layout. Redesign of a cheap set of a kids railway into an intelligent train with control from the android device. One thing i am doing is adjusting the timers of my arduino to produce higherfrequency pwm its a fairly simple software change, if you have the right model arduino. This arduino project recreates the pic version but also adds the capability to use. Or to reply to an individual post, or to include images, attachments and formatted text, click the quote or reply buttons on each post above. Our first goal will be to create a controllerthrottle with very basic accelerationbraking and a 12v dc pulse width modulated.
With traincontroller, we offer worldclass software for model railroad computer control. Im a software geek and dabble in electronics, so i came up with this little project ostensibly as a gift, but possibly just for the fun of it. As electronics and computer hobbyists, id be willing to wager that the majority of readers will at some stage in their lives, have thought about using a computer to control a complex real world task of one form or another. A digital command control dcc decoder uses pwm to control the speed of the motor in a model railroad locomotive or other motorized vehicle. Firstly, i am not a qualified electronic technician. Model railroader is the worlds largest magazine on model trains and model railroad layouts. Traincontroller gold is the ultimate control program for model railroads. Controlling your trains with an arduino a quick introduction to the arduino. The power switch is currentlimited to protect the controller against excessive current draw. Thats very low, and a very poor choice for driving a model train engine. A digital command control dcc decoder uses pwm to control the speed of the motor in a model railroad locomotive or. This tutorial shows how to get started with a basic overview of model train technology, simple hardware interfaces, and some code examples.
Its this characteristic of motors that makes pwm or pulse width modulation a useful and effective method of controlling trains. The ucd8220 device is a doubleended pwm controller configured with pushpull drive logic. Since 1990, the predecessor model 820 and the new 821a have been, and remain as, one of todays best dollar for dollar model railroad throttle values. It does indeed have a 10 amp fuse because it is designed as a high. Rgb led strip control with arduino and dcc rudysmodelrailway. Pwm control is a very commonly used method for controlling the power across loads.
Simple and effective operation with the latest windows interfaces. Pwm is used in feedback controllers and dcc decoders to control the. For example, automatic block control avoids collisions and you control which train is driving manually or fully automatically according to a selected route. Arduino is an opensource electronics prototyping platform based on flexible, easytouse hardware and software. Introduction layout control for windows, macos and linux. Digital model railway control systems are an alternative to control a layout and simplify the. Hes a model train geek, whos away from home and his trains for the next 6 months. We feature beginner and advanced help on all model railroading scales, including layout track plans, model. An external variable dc voltage source is effectively translated into a varying pwm signal. Many sophisticated and attractive model trains are available in the market now a days yet the basic principle in build a controller for it remains the same. Having whats called a pwm speed controller does not mean that you will be able to control our pump. Digital command and control, or dcc, suits large layouts, the huge masterpieces that typically get photographed in model railroader magazine by kalmbach. Equivalent parts could easily be chosen, but bear in mind that the rds of the mosfet must be low, and the vgs should be logiclevel the lower the better, the irf540a is 4v maximum, as i recall. On the train control side, as i said, i use the pwm output from the arduino, connected to the track as in a dc configuration through a motor controller shield.
However, small layouts, like those in carl arendts site and made by your humble author, work better with plain old analog controllers. How to make a model railway railroad controller without. A pulsewidth modulation controller for a model railway. May 28, 2016 how to build a diy model train controller with pwm speed control and multiple channels to control multiple model train. Applying digital technology to pwm controlloop designs mark hagen and vahid yousefzadeh abstr a ct this topic discusses the application of digitalcontrol to dcdcswitching converters and how to. This is a simple ir sensor block detector for model railroads. So even if the control of model trains is not your primary spare time passion, there is. Then we checked the voltage, and what a surprise there. It is so common that pwm controllers are built into some microprocessor chips used. This provides a slow acceleration or a momentum effect for a model railroad train. Private model railroaders will of course also benefit from the superiority of traincontroller gold in these disciplines.
Pi03 pwm controller the pi03 uses the adafruit pca9685 pwm controller as piggyback because the footprint of the chip is for our techniques too small. As electronics and computer hobbyists, id be willing to wager that the majority of readers. Back in olden times, the motors onboard model trains got their power either ac or dc from the tracks that the train ran on. Pulsewidth modulation pwm is a common technique for controlling the speed of a dc motor with a digital controller. An arduinobased dcc accessory decoder for model railroad.
Model train controller using a pic for pwm motor control. This is definitely the best choice for heavy duty model railroading. Forty years ago i designed an opamp based model train throttle for a couple of friends, and then about four years ago i recreated it using a pic microcontroller. Pulsewidth modulation design is easy to build, handles an ac or dc input and even has a walkaround throttle controller. These speed controllers take a fixed dc voltage and, using pwm, provide a variable output that ranges from 0 volts to just a bit less than the input voltage. Pwm is used in feedback controllers and dcc decoders to control the motor in a train.
It is operated by means of a simple tv infrared remote control unit. To start the train moving, hold the green button the train starts and increases. Pwm frequency for model train motors freetronics forum. Jan 15, 2011 back in olden times, the motors onboard model trains got their power either ac or dc from the tracks that the train ran on.
Model railway electronics train controllers ac,dc,dcc,pwd. A computer driven train controller article 1 theres more to model trains than meets the eye. The width of the layout calls for a wireless controller. Enough fan ports, both voltage and pwm control, plenty of power per port, and its made by a big enough company that i expect the software to both have enough features and be supported for a while. It is so common that pwm controllers are built into some microprocessor chips used as integrated controllers.
Given that the arduino has a pwm capability built in, it is really pretty simple to generate this type. This method is very easy to implement and has high efficiency. Pwm frequency for model train motors post by ilium007. Pwm control using arduinohow to control dc motor and led. Its a little pulse width modulation electronic speed controller for an ordinary 12 volt model railway, using a netduino for the control. Simple controllers for dc motors inc pwm inertia and braking sim. The software on the pic reads the adc value and converts this to either a positive. A variety of options for both beginners and professional model railroaders in equal measure. Having kids now i thought its time to dust off the old model train set nothing fancy just plain old 12v dc model. Completes the capabilities of the other editions traincontroller bronze and traincontroller silver. See more ideas about arduino, arduino projects and projects. Sts portfolio of pulsewidth modulator pwm controllers can support isolated and nonisolated acdc and dcdc switch mode power supplies based on the most popular topologies in both singleended. The basic layout could be to put in writing a pwm software that uses gpio pins to force a electricity converter to manipulate the motor, and use a tachometer at the motor as comments to the. It is basically a pwm pulse width modulated motor driver that incorporates two separate stages for the generation of the pulses.
For as long as i have been writing about model railroad electronics i have been asked about the best power controller sometimes called a. Fully assembled and tested see bottom of page for more details. S1, r9, and c3 provide the acceldecel function for the train controller. May 16, 2020 the arduino is an inexpensive micro controller that is ideal for controlling your model railway. Rumour has it that these pwm controllers can be sudden death for decoder equipped locos. The software, having been told which locomotive is where at the start of a. Systems using the ucd8220 device close the pwm feedback loop with traditional analog methods, but the. Pwm motor controller for dc motors and fans im thinking that by changing c1 to 1800pf1. Pwm to linear output some model railroad electronics dont play well with pwm also called pwc speed controllers. Wii nunchuk controlled model train using arduino use arduino. The object of the exercise is to produce a train controller for a 3 year old, that only has one knob, but that limits in software both top speed and. Model train controller arduino takes inputs from controls like those found on a railway locomotive and simulates train inertia. This article will be the first in a series to show you how to use an arduino to control different areas of a layout.
Wii nunchuk controlled model train using arduino use. Oct 01, 2015 s1, r9, and c3 provide the acceldecel function for the train controller. We have explained pwm in this tutorial using 2 examples which will help you learn how to control led brightness using pwm and how to control dc motor speed using pwm. The output from a pwm controller or a dcc decoder looks something like this. In the early days of electric model railways the controllers most often found were of the split rheostat type. How to build a high torque dc motor speed controller circuit. Diy model train controller project model trains, model. A computer driven train controller the kellertuberg web site. It is a general purpose pwm controller not specifically designed for model railway locos. If this is the case with the engine being used, limit the pwm duty cycle in software or adjust. Sts portfolio of pulsewidth modulator pwm controllers can support isolated and nonisolated acdc and dcdc switch mode power supplies based on the most popular topologies in both singleended such as flyback, forward or quasiresonant and doubleended configurations such as asymmetrical halfbridge for mid to highpower smps. Fortunately, both the old and new controllers outputted around 0.
This is a project to create a model train speed controller using the pulse width modulation pwm output of a pic16f690 microcontroller, to drive a mosfet that ultimately controls the voltage on the tracks. The model 821 is the big brother to the model 851 pwm throttle. Introduced in late 2010, the railmaster is a model railway control software package by hornby. Simple controllers for dc motors inc pwm inertia and. Netduino controlled pwm model railway controller andrew. This is a test to experiment with l293d drivers on a zscale train, nothing fancy c ed lafargue 20 licence. Model railway electronics train controllers ac,dc,dcc. How to make a model railway railroad controller without soldering tutorial tuesday episode 22.
You can breadboard something together using a hbridge chip like the sn754410, as shown here, or. Apr 20, 2020 itrain offers an easy to use solution to control your model railroad with your computer s, especially if you want to automate only parts of your layout and keep control of the rest yourself. It is so common that pwm controllers are built into some microprocessor chips. Unless you want your trains to run at full speed all of the time some sort of variable power motor controller needs to go between the fixed voltage power supply and the track. It does indeed have a 10 amp fuse because it is designed as a high power controller for big powerful dc motors. Applying digital technology to pwm controlloop designs. Then you hold the deadmans handle button, release the red button, train stops. The rgb led strip that is mounted above my layout see this post can be controlled via the remote. These controllers were designed to drive model locomoti.
Gplv3 this is a simple model train controller that includes speed regulation using a pid. I wrote an article about this as it relates to the revolution system but it holds true for most if not all, pwm controllers the article is here. The person at the control place for the destination next stopping place of a train would have control of that train. A computer driven train controller article 2 detecting trains and controlling their dc motors using a computer. I am entirely self taught and simply research and design circuits for my individual needs. Speed control was achieved by pulsewidth modulation, varying the width of the portion of the halfcycle, which was switched in 14. Netduino controlled pwm model railway controller andrew maddison. Im a software geek and dabble in electronics, so i came up.
This was cool if you had only the one train, you could control its speed by varying the voltage on the tracks, and if you had a dc setup, its direction by flipping the polarity. Conversely a pwm controller for pwm fans such as the one featured in this article doesnt modulate the 12v supply line but instead sends a pwm signal along a different supply line the magic fourth wire to a more advanced 12 vdc motor, leaving the 12 v supply line uninterrupted. Only by using a computer more diverse and secure operation of a model railroad is possible. My arduino literate friend said that making an interface to control speed voltage and direction polarity would be very easy for him so i could use my iphone to control the little dc engines on my layout. May 16, 2020 the arduino is an inexpensive microcontroller that is ideal for controlling your model railway. Picaxe model railroad speed controller trainelectronics. These little trains run really smoothly with pwm up this high. There is an excellent reference article written by dave at that explains how pwm. I built a model train controller which is equipped with acceleration and deceleration control using the pwm technique.
Model train controller using opamp stay safe and healthy. When i was about 16 i etched and build an analogue controller to replace the. An entry level model train set contains an engine with dc motor and the power is provided by the two track rails. Oct 21, 2014 wii nunchuk controlled model train using arduino posted date. Outputs a pwm signal for a dc motor driver to control a model railway. Traincontroller is the worldclass software for controlling model railroads with a computer.
Traincontroller is characterized by particularly simple and effective use as well as secure operation. Arduino in model railroading model railroader magazine. I thought it would also be nice when it can be controlled via the traincontroller pc user. An entry level model train set contains an engine with dc motor and the.
1352 1437 350 213 166 973 366 1552 889 304 950 668 1565 1050 613 1324 166 1197 1460 299 56 1533 1268 165 1444 1657 1319 1403 15 1449 1030 858 1288 952 5 145 1143 1666 251 769 1405 1435 297 340 1254 407 1256