NatriumDecoder: a software for OpenDecoder (Sodium vapor lamps)
This firmware simulates the unique features of sodium vapor lamps. Sodium Vapour
These are initially dim after power is first applied, and require a
period of ramping up before full brightness is achieved. They also glow
for a short period after being turned off. This decoder models this
typical time course.
Again, this software works as a simple accessory decoder, and only basic
DCC packets are evaluated, neither the DCC reset packet or the broadcast
packets are implemented. The setting of the operating modes, and the
setting the address, is accomplished by simply by pressing the
programming-button and sending a command. There are four modes:
||Very fast dimming.
||Accelerated simulation, but still
||Normal simulation, with a imperceptible rise
to full brightness.
||Very slow simulation
|| reserved |
The setting of the operating modes, and the address, is done by pressing
the programming-button, and sending a DCC-command. The contents of the
first DCC-packet received will determine the decoder's mode and address.
- Press the programming-button for at least 100ms, the LED will begin
to glow and this indicates that the decoder is ready to receive a
- Send a DCC-packet, The decoder takes its base address from this
command according to the following rule:
Base Address = (broadcast address - 1) / 4.
(the rest of the packet will be ignored)
The decoder is programmed to the following addresses: Base Address * 4 +
1 to Base Address * 4 + 4
The above "the rest", together with the "coil" (red or green) used to
set the mode:
Example: Send DCC-packet with an address of 18, which represents a base
address of 4 -- the decoder will "listen" on addresses 17-20, and will
run in Mode 2. .
The Sodium Decoder only responds to "on" commands, and ignores "off"
commands, as some command stations, such as Intellibox (R) do not send
"off" commands. Therefore the following are used to mimic shut-off of
||All the lamps simultaneously switch to 15%
brightness and then gradually dim to zero.
||All the lamps simultaneously switch to 15% brightness and
then dim up to full brightness. |
||All the lamps randomly switch to 15%
brightness and then gradually dim to zero. The switching occurs in an interval of
||As in 1, but the switching-on is random
within a time interval of 160ms.|
||Like 3, but also varies the the initial
dimming to the range 15% to 25% randomly.|
||As in 5, but will also may randomly select
a light to mimic a light at the end of its life.
It will extinguish after a time and then