PWM frequency for model train motors

Drive a 4-wire bipolar stepper motor or a pair of DC motors from your Arduino. [Product page]
Post Reply
ilium007
Posts: 5
Joined: Sat Jun 16, 2012 8:32 am

PWM frequency for model train motors

Post by ilium007 » Fri Dec 23, 2016 4:08 am

Hi - I am at the start of a project to help my Dad build an Arduino controlled (Ether Ten) model train controller.

I have found this code that I am going to ready through in detail https://github.com/KensCode/TrainMotor but I am a little concerned about the PWM frequency requirements:
Although PWM acts like DC, it is essentially a form of AC and can heat objects via arcing if a short circuit occurs (e.g., if a train derails or shorts a turnout by running into it the wrong way, or even while placing a train on the tracks). This can be intense enough to melt plastic models or even weld wheels to track. With a smaller power supply, the risk is lesser but not absent. With a 2 Amp or larger supply the risk of fire or damage to the model or to a person attempting to remove it is higher. Always turn the power off before touching a train. Don't leave a motor shield powered up unattended. Small children should not use motor shields unsupervised.
I have not read about this high frequency requirement anywhere else that references using a H Bridge to control model train motors.

Has anyone here successfully built a train controller who may be able to point me in the right direction ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest