Skip to main content
added 77 characters in body
Source Link
Spehro 'speff' Pefhany
  • 422.8k
  • 23
  • 352
  • 952

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs using triacs Q1/Q2. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontrollerMCU (microcontroller) via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 preventsclamps the infamous phase reversalinput so it can't go too far below ground. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- one retarded and one advanced- which will only be possible if the speed is sufficiently less than 100% (or greater than 0%, which is probably not an issue).

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs- interrupting them for a short time.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs using triacs Q1/Q2. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 prevents the infamous phase reversal. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs- interrupting them for a short time.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs using triacs Q1/Q2. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the MCU (microcontroller) via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 clamps the input so it can't go too far below ground. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- one retarded and one advanced- which will only be possible if the speed is sufficiently less than 100% (or greater than 0%, which is probably not an issue).

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs- interrupting them for a short time.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

added 203 characters in body
Source Link
Spehro 'speff' Pefhany
  • 422.8k
  • 23
  • 352
  • 952

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs using triacs Q1/Q2. One is to feed accessories accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 prevents the infamous phase reversal. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs- interrupting them for a short time.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 prevents the infamous phase reversal. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs using triacs Q1/Q2. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 prevents the infamous phase reversal. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs- interrupting them for a short time.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

added 124 characters in body
Source Link
Spehro 'speff' Pefhany
  • 422.8k
  • 23
  • 352
  • 952

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LM358LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 prevents the infamous phase reversal. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin. The Schottky diode on pin 3 prevents the infamous phase reversal.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LM358 op-amp. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin. The Schottky diode on pin 3 prevents the infamous phase reversal.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

I didn't know much about this- as a kid I had a Lionel set, but it had a single variac type control lever. It's not too hard to find out though.

The unit you show has two phase-controlled outputs. One is to feed accessories (a variable AC voltage that I assume the operator sets to control brightness of stationary lights and such like), and the other feeds the track (a variable AC voltage with momentary DC offset of positive or negative polarity) added- and momentary interruption function.

enter image description here

Normally on a phase control such as an old-school lamp dimmer, it is desirable to maintain symmetry between the positive and negative half cycles. In the case of Lionel's scheme, an asymmetry can deliberately be introduced to actuate one of two devices on the locomotive depending on the polarity of the resulting DC content. There are two possible polarities of offset so two devices can be controlled (whistle and bell).

The aforementioned asymmetry is introduced entirely by timing the trigger pulses to the triac. The model in question apparently works only with 60Hz power only- so the timing of the trigger pulses is a delay from the zero crossing of almost nothing up to 1/120 second or about 8.3 millisecond. The MCU operates with a 1MHz crystal clock, so accurate timing is particularly easy.

Zero crossing is detected by the microcontroller via R13/C14 and is clamped by the diodes before being fed to an MCU input port pin.

The MCU triggers the triacs via pulses produced on pins 7 and 11. Total current of both accessories and track (positive half-cycles only) is monitored via the shunt resistor R8 and the LMV358 op-amp. It can measure peak currents of up to about 14A. The Schottky diode on pin 3 prevents the infamous phase reversal. The main 250K\$\Omega\$ (B = linear taper) pot is fed to an MCU analog-to-digital converter input pin.

In order to get a DC component one of the pulses has to be later than the other. In order to maintain roughly constant AC voltage to the locomotive motor the timing must be adjusted for both pulses- which will only be possible if the speed is sufficiently less than 100%.

I believe reversal is achieved by interrupting power to the locomotive momentarily so as to toggle the direction. Again, this is timing of the pulses to one of the triacs.

Anyway, the magic is virtually all in the firmware of the MCU, though anyone with appropriate microcontroller skills and an oscilloscope could duplicate this functionality.

References:

  1. CW-80 Manual

  2. US Patent 2155343 Remote Control System, Method and Apparatus 1939

added 124 characters in body
Source Link
Spehro 'speff' Pefhany
  • 422.8k
  • 23
  • 352
  • 952
Loading
Source Link
Spehro 'speff' Pefhany
  • 422.8k
  • 23
  • 352
  • 952
Loading