Model Train Speed Controller circuit

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
odieolson
Posts: 1
Joined: Thu Nov 25, 2021 4:29 am
Contact:

Model Train Speed Controller circuit

Post 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

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Model Train Speed Controller circuit

Post 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

Post Reply