element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
The World in Motion
  • Challenges & Projects
  • Project14
  • The World in Motion
  • More
  • Cancel
The World in Motion
Blog Pulse Width Modulation a Speed Equalizer
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join The World in Motion to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: colporteur
  • Date Created: 27 Jul 2022 9:20 PM Date Created
  • Views 2337 views
  • Likes 10 likes
  • Comments 2 comments
  • motor projects
  • worldinmotionch
  • pwm
Related
Recommended

Pulse Width Modulation a Speed Equalizer

colporteur
colporteur
27 Jul 2022

Take advantage of pulse width modulation (PWM) to control the motor of a model train.

This entry for the Project 14 project theme World in Motion documents a project I am currently working on. My hobby is creating animation in model railroad layouts. My passion is writing. I plan to use PWM to control the speed of a train. Let’s couple the delivery of the project with a Project 14 challenge, creating a resource that someone might find of interest.

image

The speed and direction of a Direct Control (DC) HO scale model train locomotive is determined by the voltage level and polarity applied to the tracks. The tracks act as the conductor to the locomotive motor. Increasing the voltage, the locomotive goes faster, decreasing the voltage, and the locomotive goes slower. The polarity of the voltage applied to the track sends the locomotive forward or backward.

Pulse width modulation (PWM) is a modulation technique that generates variable-width pulses that can be used to control the amplitude of an analog signal. The average value of the analog signal fed to the load can be controlled by adjusting the pulse width of the signal being delivered to a controller. The controller output is on more of the time for a longer pulse width and off more of the time for a short pulse width.

Follow this design challenge to learn a little about PWM, examine the bill of materials for a practical design application and see the technique in action on an HO scale model train locomotive.

  • Sign in to reply
Parents
  • robogary
    robogary over 3 years ago

    Very nice project idea. Not to get ahead of your ideas, but will the PWM be manually adjusted or are there plans to automate the speed based on position of the train on the track? For example, have the train slow down if a prox switch ( or limit switch or IR detector) identifies the train is in the switchyard or approaching a road crossing ? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • colporteur
    colporteur over 3 years ago in reply to robogary

    I'm just in the process of writing the introduction that would contain some of those details. 

    I am in the process of testing an automation sequence using two trains on individual sidings sharing a loop of track. I am using an Arduino code to move the trains through four stages stop, departure, in-transit, arrival and stop. The stages are determined by sensors that monitor the trains location. Each stage has a motor control dependency. 

    I'm currently with my spouse on holidays. Computer time is when she goes shopping. I only have my laptop so I don't have the drawing to share. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • colporteur
    colporteur over 3 years ago in reply to robogary

    I'm just in the process of writing the introduction that would contain some of those details. 

    I am in the process of testing an automation sequence using two trains on individual sidings sharing a loop of track. I am using an Arduino code to move the trains through four stages stop, departure, in-transit, arrival and stop. The stages are determined by sensors that monitor the trains location. Each stage has a motor control dependency. 

    I'm currently with my spouse on holidays. Computer time is when she goes shopping. I only have my laptop so I don't have the drawing to share. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube