Page 1 of 1

Model Train Speed Controller circuit

Posted: Thu Nov 25, 2021 4:30 am
by odieolson
Hi,

A member of my family has had a model train set for Christmas, however it was bought second hand and the mains speed controller is missing, the engine has a 12 volt dc motor so I wondered if anybody had a circuit that would work for this application please, I am thinking that a 12 volt transformer and a pic circuit using PWM and possibly an LCD for indication of speed, any info would be appreciated...

Edit
I was thinking of using a pic to create the pwm signal and do the LCD display and using a h bridge chip to drive the motor ?

Thanks In Advance

Re: Model Train Speed Controller circuit

Posted: Wed Dec 01, 2021 10:48 pm
by chipfryer27
Hi

This is something that can easily be done within Flowcode.

The wiki help files give examples of usage

https://www.matrixtsl.com/wiki/index.ph ... :_General)

The above shows a pulse varying in width which you could incorporate into your design.

Hope this helps,

Regards