Author Topic: Observation of a model railway PWM signal  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

Offline DeboscopeTopic starter

  • Contributor
  • Posts: 20
  • Country: ae
  • Given enough time, tasks manage themselves
Observation of a model railway PWM signal
« on: November 17, 2019, 09:53:26 am »
To observe the PWM signal from a model railway, what would be the proper way to connect the probe to the live rails? In particular I am concerned about the earth part of my probe.
Voltage is about 22 V AC. It is powered though a control station and a step down transformer connected tot he mains.
 

Offline German_EE

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: Observation of a model railway PWM signal
« Reply #1 on: November 17, 2019, 10:52:52 am »
Most model railways that I have seen operate on DC, not AC.

Check the output terminals of your train controller using a multimeter set to the ohms range. If you see a low resistance between the AC power ground and one output terminal then connect this terminal to ground on your oscilloscope. The other terminal should be connected to the probe tip.

By setting the input stage gain on your oscilloscope you should be able to see the PWM waveform.

How Not to Blow up Your Oscilloscope
(where Dave looks about 20)
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 
The following users thanked this post: Deboscope

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: Observation of a model railway PWM signal
« Reply #2 on: November 17, 2019, 08:41:22 pm »
Some model railways use an AC signal to both power and transmit data to the locomotive. It's rectified in the locomotive to power the motor and the changes in duty cycle or frequency are used to tell it the speed and direction of travel.

I've never worked with such a system, so wouldn't know how to 'scope it. I would start by checking which conductor is connected to mains ground and connect the 'scope ground pin to that. If neither conductor is earthed, then I suppose it doesn't matter which side the 'scope ground pin is connected to.
 
The following users thanked this post: Deboscope

Offline DeboscopeTopic starter

  • Contributor
  • Posts: 20
  • Country: ae
  • Given enough time, tasks manage themselves
Re: Observation of a model railway PWM signal
« Reply #3 on: November 18, 2019, 08:12:54 am »
i had a look and no, the power supply to the transformer has no earth connection. The system is definitely afloat.
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2764
  • Country: us
Re: Observation of a model railway PWM signal
« Reply #4 on: November 18, 2019, 02:37:19 pm »
The old Lionel trains ('O' gauge three rail) were AC.  The two rail was DC.

The smaller gauges were DC or PWM or sometime rectified AC. 
There were several schemes to enhance slow speeds and improve start-up.

Most of the new model railroad sets are DCC controlled or DCC ready.
The DCC waveform is pulse width encoded messages for control and it is rectified in the locomotive for power.
See
   https://dccwiki.com/DCC_Power
   https://sites.google.com/site/markgurries/home/technical-discussions/boosters/nmra-track-voltages



 
The following users thanked this post: Deboscope

Offline German_EE

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: Observation of a model railway PWM signal
« Reply #5 on: November 18, 2019, 04:03:50 pm »
It seems that model trains have advanced in technology since my 12 V DC powered set from fifty years ago. Rectified AC drive and a variable resistor to control the speed,
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 
The following users thanked this post: Deboscope

Offline rfeecs

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: us
Re: Observation of a model railway PWM signal
« Reply #6 on: November 18, 2019, 06:07:23 pm »
This is an interesting page from a guy who claims to be an expert on model train controllers, with pictures of oscilloscope waveforms:

https://www.scottpages.net/ReviewOfControllers.html

Interesting you can see the back EMF from the motor.  So you will get a different picture with the train on the track vs empty track.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf