Geoff Bunza geoffb

Scale Model Animation—bringing models to life—adds enormously to the interest and enjoyment of any layout or individual model! When I started out designing low-cost decoders, they were intended to facilitate my animation work. With  the encouragement and interest from many modelers, these grew into a set of over 19 preconfigured decoders.   This article introduces a new generation of decoder – DCC decoders with many  inputs, allowing you and your layout to interact with your decoders. The series of Interactive Decoders (IDEC) were designed as an integral part of my animation work, but the inventive modeler can apply them to a wide variety of projects.  The initial library of 13 decoders combine external switch and DCC function control of lighting, sound, and movement, with relatively sophisticated internal timing. They are operable and configurable via DCC, but can work independently, without a DCC connection. IDEC decoders can be loaded onto the same hardware described in  SMA20 Low Cost 17 Channel DCC Decoders Ver 6.01 with Sound,Triggered Sound,Stepper,Dual Motor,LED and Servo Control   https://forum.mrhmag.com/post/sma20-low-cost-17-channel-dcc-decoders-ver-6-01-with-soundtriggered-soundstepperdual-motorled-and-12201920 . I have been using these for some time, but I don’t think I have exercised even half of their capabilities. Have a look yourself. The following article is representative of the IDEC Version 1.08 release.

 

Interactive Decoders – An Introduction to a New Generation

IDEC.jpg
Interactive DCC Decoders IDECs

IDEC decoders give modelers abilities to sequence motion, sound and light. They can be configured, started, and controlled by multiple external sensors, external switches and/or by DCC functions. These could be applied to moving vehicles, signs, locomotives, trolleys, doors, bridges, buildings, and anything that might require sequencing and coordination of motor drives, servos, sound, LEDs, relays, and lighting. These do not solve all such modeling problems, but they can help you do some interesting things. These  videos offer a small sample:


IDEC-1: Introduction, Timing, Motor Control and Sensors


IDEC-2: Lighting Control and Sound Sets


IDEC-3: Motor Timing with Sensors and Sound

Interactive Decoders – Understanding What Follows Here

1. This Introduction
2.  A brief description of the currently defined decoders comes first.
3.  Comments on the hardware module for the decoders are next.
4.  Specific operational details are last.

You can quickly gather what these are all about by reading this introduction and the section: A brief functional summary of each decoder available in the library.

Because the concept is relatively new to the casual modeler, I have included another section: Sequencing, Sound Sets,  and Switch Sets, which will offer an operational overview essential to many of the decoders to follow.

Continue on if this piques your interest, otherwise find your favorite adult beverage, and slowly banish any residual pain this may have inflicted.

Finally, there is an accompanying article:  SMA36  Interactive DCC Decoders (IDEC’s) Principles of Operation   https://forum.mrhmag.com/post/sma36-interactive-dcc-decoders-idec-principles-of-operation-12216906    where I offer even more technical details and comments for those brave souls that long for the mental challenge of enhancing these beyond their present capabilities, and need some semblance of understanding of the 12,000+ lines of code. (This was actually requested! [smile]) I expect most modelers will suffer major indigestion at the thought of reading this, so it is segregated intentionally for their own protection. Fortunately, one can use and enjoy these new decoders, with no programming, nor knowledge of their internals.

Making Decoders Listen to the World: An Introduction to the Next Generation

The IDEC decoders exhibit some interesting characteristics that are a bit different:

--They have multiple external switch inputs directly to the DCC decoder which control its operation
--They combine both decoder DCC function controls and input switches in a defined, predictable manner
--They have a master disable for the entire decoder
--They can be powered directly from DC (+5 or +12 Volt power) to operate independently of any DCC bus
--They can be set up to operate on power up, independent of any DCC commands
--They have  programmable CV variables which can be accessed dynamically (with immediately visible results) as a mobile decoder and then operate independently of a DCC bus, different from the SMA20 series
--They combine interactive motor control, playing selected sound tracks, and lighting control
--They can switch LEDs/pins, combinations of pins, set servos, and play audio tracks

--Some decoders can support 1,2,3 or 4 audio players, each with 2 channel, near stereo quality sound
--Some decoders support up to 10 independent, non-interfering timing chains of differing events
--An IDEC Sound Set decoder can play up to 10 sound sets simultaneously with independent timing, each with 5 groups of CV controlled timing delays (from 1/1000 of a second to 255 minutes – 4 hours 15 minutes), independent volume control, and a selection of 254 sound tracks; each sound set can directed to 1-4 players, or a random track can be selected at any time from a specified group of tracks
--An IDEC Switching Set decoder can run up to 10 Switch sets simultaneously with independent timing, each with 5 groups of CV controlled timing delays (from 1/1000 of a second to 255 minutes – 4 hours 15 minutes), with independent parameterized commands, controlling any of 8 Switch pins, by single pin or in groups, with direct, random, weighted random, alternating pairs, with sound generation, servo control, and daisy chaining switch sets to create up to a timed chain of 45 controlled events
--An IDEC Large Switching Set decoder can run up to 2 Switch sets simultaneously with independent timing, each with 25 groups of CV controlled timing delays (from 1/1000 of a second to 255 minutes – 4 hours 15 minutes), with independent parameterized commands, controlling any of 8 Switch pins, by single pin or in groups, with direct, random, weighted random, alternating pairs, with sound generation, servo control, and daisy chaining switch sets to create up to a timed chain of up to 49 controlled events
--A user switch can enable the listing of most all configurable CVs to the serial connection on power up

As of Version 1.08, you can choose from a library of 13 predefined decoders and functions which do not require your programming to use, each of which can be further configured via typical, DCC programmable CV’s. I have also included an additional folder, “DemosAndDiagnostics” which includes an additional 10 sketches I used to develop the demos in the videos and diagnostic routines I use to test servos and DFPlayer sound modules. Unlike some of the SMA20 decoders, these have been designed so that changing configuration CVs will take effect immediately. For example you can set the end transit points of a servo via CV and immediately see the effect on the servo. You can change the volume setting of an audio track and hear the difference it makes, etc. Each decoder has a decoder master disable function which can be used to control turn on and turn off for day/night sequencing. Key decoder functions are controlled by both DCC function setting for the decoder and switch inputs directly to the decoder from panel switches, sensors, car detectors, etc. A DCC function ON enables a feature OR setting a switch input LOW enables a feature. When BOTH the respective DCC function is OFF AND the respective Switch input is HIGH, then the feature is disabled. ALL combination functions operate this way – by definition. As with the SMA20 decoder series before, all SMA35 decoders in the library can be download here:  http://www.scalemodelanimation.com/Decoders/NmraDcc-IDEC.zip

If you already have a NmraDcc library in your …\Documents\Arduino\libraries\ folder you need to delete it and replace it with your unzipped NmraDcc-IDEC library.

There is an important underlying issue, which very few modelers have ever really caught on to: the DCC bus I use to feed these in not the same DCC bus I use to control trains. It is a separate, high power (15 Amperes plus) feed around the layout – with no exposed wiring – none. Hence the probability of shorts is generally limited to my clumsiness, not train operation. Remember, DCC is set of command signals carrying power. This is great if one is naturally lazy and doesn’t want to string hundreds of wires around your layout. You feed the 2 DCC bus wires to decoders like the IDEC’s and let them do the work locally. Configuration can be done remotely, and control can be either remote or local, in an orderly, pre-defined manner. The update outlined in SMA34 More Power to SMA20 Decoders with Tips and Additions  https://forum.mrhmag.com/post/sma34-more-power-to-sma20-decoders-with-tips-and-additions-12215355   allows these decoders to source up to 2 Amperes of power without heat sinking. This was a precursor to, and motivated by using the IDEC decoders, all by design intent. None of this prevents the modeler from using the IDEC decoders with any NMRA DCC compatible system. They are compatible.

There has never been any intention to create a competitive commercial decoder—and there still is none. These are reconfigurable decoders that I use in my own modeling projects. I hope those modelers reading this can take advantage my efforts, and share your variations with others. Special thanks are extended to Alex Shepherd who built the original NmraDcc library upon which all these decoder variations are built.

I have no doubt that I forgot to describe something, somewhere. There is a great deal here. I have been known to make mistakes too. I remember distinctly that I made one about 37 years ago. I will attempt to improve this and make corrections, as time becomes available. The current version of the library will be listed in the title and/or first introductory paragraph. If you think you understood everything that these can do after your initial reading, read this again another few times to get the rest. I may add to this library as I recover from writing this up… maybe.  As always, I can be bribed with detailed brass articulated locos and fine, 30+ year old bottles of tawny port.  Comments and appropriate suggestions are always encouraged.

Have Fun!  [smile]
Best regards,
Geoff Bunza

Sequencing, Sound Sets,  and Switch Sets

Good animation has elements of movement, lighting, sound, sequencing or synchronization, and story. The IDEC decoders handle many, but not all, sequencing issues for scale model animations. The controlled motor Drive in IDEC1_1_MotSound5Led is a relatively simple, and useful example, allowing for movement (via DC motor) to be controlled by sensors embedded in the model. Running a forklift, trolley or shuttle back and forth with stops becomes easy. Timing delays at each point can be set, together with sounds for door openings, announcements, brakes, motors, etc. The combination controls the sequencing for all the activities.

The Sound Sets and Switching Sets described next are derived from the concept of timing wheels and timing chains in the commercial, electronic system simulators I worked with for many years. Here, they enable each timing chain to literally operate independently. For example, one can set up Sound Set 1 playing the first movement of a Bach Sonata, wait for 10 minutes and play a Mozart concerto. Simultaneously, one can start Sound Set 2 waiting 5 minutes, play Led Zeppelin’s Stairway to Heaven on the same audio player (at a different volume level of course), wait 50 minutes, go to max volume, play AC/DC Thunderstruck, and terminate. The net effect would be heard as Bach, Led Zep, Mozart, and when you were least expecting it… be Thunderstruck!

Playing high quality sounds can be facilitated by sequencing too. The DFPlayer sound module (https://www.amazon.com/dp/B07T8CTKK6/ref=dp_cerb_2) I use is low cost (typically a few dollars), programmable, supports a 16GB on-board SD Memory card, is small, and can generate reasonable quality audio with its on-board 3 Watt mono amplifier, or near CD audio quality with an external amplifier. The best part, I discovered, is that it only requires one signal line from the Arduino to operate (together with +5 Volt power and ground).  Once a command is send to the DFPlayer, it will operate independently of the Arduino until it completes the command. A group of three elements: a delay (from one millisecond to 255 minutes), an optional volume setting, and a designated sound track (file on the SD Memory card on the DFPlayer) describe one sound “event.” Events compose a chain of sound events called a sound set, defined as a set of 5 events. Delays set in each event can account for long sound tracks in play. Sound tracks are individually played until they either end, or another track is specified for play, which stops the first and starts the second track immediately. Sound sets are started by DCC functions or external switches or sensors. Sound tracks can be randomly chosen. Multiple Sound Sets can be chained together to form long chains of Sound Sets. IDEC3_2_2SoundPlyrs, IDEC3_3_4SoundPlyrs, and IDEC4_3_ServosLEDsSounds3Plyr can direct sound play to 2, 3 or 4 different sound players.

Sound Sets change to Multifunction Switching Sets in both  IDEC2_4_FunctionSets and IDEC2_5_LargeFunctionSetsDev decoders. “Events” are still composed of three elements. Event triples include a similar delay as in sound sets, a mode or command specifying differing actions, and a parameter which usually denotes a output pin or pins for the action to occur. Actions include setting digital pins on/off, on/off randomly, on/off weighted randomly, playing sound tracks, setting servo position, controlling multiple pins (such as for alternate blinking), and chaining switch sets. Switch Sets are controlled by DCC functions or external switches or sensors. The IDEC2_4_FunctionSets decoder employs ten, 5 event Switch Sets. DEC2_5_LargeFunctionSetsDev decoder uses  two, 25 event Switch Sets.

The Sound Sets and Switch Sets are entirely defined by CV lists in each sketch – all changeable via DCC Ops Mode Programming, or by editing the sketch. One can also use one Sound or Switch Set with less than 5 events – even one. A zero entry can be entered for virtually any entry, and it will be skipped or ignored.

It is possible to chain a Switch Set back to itself for permanent operation, until power reset or the MasterDecoderDisable is activated.

Examples

Here is a simple switch set to alternate blinking two LEDs at switch1 and switch8 (pin11 and pin19):

  {50, 0},                       // Wait1 0-254 0.1 Seconds  // switch SET 1
  {51, 1},                       // Switch Mode 1=0/1           // 0=NOP,1=0/1,2=RND,3=WRND,4=SND,5=SRVO,6=Dual Pin
  {52,  switch1+on},    // Switch Pin11 ON
  {53,  0},                       // Wait2 0-254 0.1 Seconds
  {54, 1},                        // Switch Mode 1=0/1
  {55, switch8+off},     // Switch Pin19 OFF
  {56,  8},                       // Wait3 0.8 Seconds

  {57, 1},                        // Switch Mode 1=0/1
  {58,  switch8+on},    // Switch Pin19 ON
  {59, 0},                        // Wait4 0 Seconds / DO NOT WAIT
  {60, 1},                        // Switch Mode 1=0/1
  {61, switch1+off},     // Switch Pin11 OFF
  {62,  8},                       // Wait5 0-254 0.8 Seconds
  {63, 0},                        // Switch Mode IGNORE
  {64, 0},                        // No Operation IGNORE

If you change the pins used to switch1 and switch2 this switch set does the same thing:

  {50, 8},                       // Wait1 0.8 Seconds             // switch SET 1
  {51, 6},                       // Switch Mode  6=Dual Pin // 0=NOP,1=0/1,2=RND,3=WRND,4=SND,5=SRVO,6=Dual Pin
  {52,  switch1+on},    // Switch Pin11,12 ON/OFF
  {53,  8},                      // Wait2 0.8 Seconds
  {54,  6},                      // Switch Mode  6=Dual Pin
  {55, switch1+off},    // Switch Pin11,12  OFF/ON
  {56,  0},                      // No Wait
  {57,  0},                      // No Operation
  {58,  0},                      // No Op
  {59,  0},                      // No Wait
  {60,  0},                      // No Op
  {61,  0},                      // No Op
  {62,  0},                      // No Wait
  {63,  0},                      // No Op
  {64,  0},                      // No Op

Leaving F1 on or Input1 Pin 3 LOW will continuously run the alternate blinking pins

Here is another possibility to turn a switch off randomly:

  {50, 20},               // Wait1 2  Seconds           // switch SET 1
  {51, 2},                 // Switch Mode  2=RND    // 0=NOP,1=0/1,2=RND,3=WRND,4=SND,5=SRVO,6=Dual Pin
  {52,  switch3 },   // Switch3  Pin5  RANDOMLY SET ON/OFF
  {53,  0},               // No Op
  {54,  0},               // No Op
  {55,  0},               // No Op
  {56,  0},               // No Op  …all the rest are No Op’s

Leaving F1 on or Input1 Pin 3 LOW will continuously randomly turn the pin on and off

Each sketch has predefined Sound and Switch Sets. I always had at least 12 tracks placed on the SD memory card for testing (included in the library download zip file).  Arduino Pro Mini Pin connections and operational details are described in each sketch and in the last section below -- IDEC Decoder operational details.

The casual modeler will note there are differing approaches to sequencing used in the IDEC library, even inconsistencies!. These represents the evolution of my thinking and use over a period of time that these were created. I include them all as the differing characteristics may be of similar use to you. If nothing else, it documents my evolutionary confusion grappling with these. I have fun with all of them.  [smile]

IDEC_1.jpg
IDECs in Action

A brief functional summary of each decoder available in the library (Decoder names are indicated in each title)

Controlled Motor Drive     IDEC1_1_MotSound5Led
This decoder is used to control a DC motor direction, start, stop, pause, reverse, ramp up and ramp down.
Motor speed via DCC speed for one motor
Speed Over-Ride =  CV = Non-Zero Value (1-127) over-rides the DCC speed commands for both motors
Input1 for Throttle Down/Pause/Throttle Up;  CV for Throttle Down Time, CV for Throttle Up Time,
          CV for Pause Time, Optional sound track played
Input2 for Throttle Down/Pause/Throttle Up;  CV for Throttle Down Time, CV for Throttle Up Time,
          CV for Pause Time, Optional sound track played
Input1 for Throttle Down/Reverse/Throttle Up; CV for Throttle Down Time, CV for Throttle Up Time;
          CV for Reverse Pause Time, Optional sound track played
Input2 for Throttle Down/Reverse/Throttle Up; CV for Throttle Down Time, CV for Throttle Up Time;
          CV for Reverse Pause Time, Optional sound track played
Input for immediate Stop, Optional sound track played
Input for immediate Start, Optional sound track played
Function control of second MOTOR2 with pre-defined (CV) speed and direction
CV speeds default on (if non-zero) if decoder powers on with no DCC input
Master Disable Function Turn Function ON to disable the decoder
Functions for lights on/off

Building Lights Display    IDEC2_1_Building
This decoder simulates random room lighting in a building turning on and off realistically
Functions control lighting display: random building lighting, all on/off, with rate change
Decoder powers on with no DCC input
Master Disable Function Turn Function ON to disable the decoder

Building Lights Display with One Welder     IDEC2_2_Building1Wldr
This decoder simulates random room lighting in a building turning on and off realistically while simulating the activity of one welder
Functions control lighting display: random building lighting, all on/off, with rate change
One welder simulation with independent control
Decoder powers on with no DCC input
Master Disable Function Turn Function ON to disable the decoder

Building Lights Display with Two Welders    IDEC2_3_Building2Wldrs
This decoder simulates random room lighting in a building turning on and off realistically while simulating the activity of two welders
Functions control lighting display: random building lighting, all on/off, with rate change
Two welder simulations with independent control
Decoder powers on with no DCC input
Master Disable Function Turn Function ON to disable the decoder

Multifunction Switching Sets    IDEC2_4_FunctionSets
This is a general purpose, highly configurable sequencer/switcher that runs up to 10 Switch sets simultaneously with independent timing, each with  5 groups of CV controlled timing delays (from 1/1000 of a second to 255 minutes – 4 hours 15 minutes), with independent parameterized commands, controlling any of 8 Switch pins, by single pin or in groups, with direct, random, weighted random, alternating pairs, with sound generation, servo control, and daisy chaining switch sets to create a timed chain of a maximum of 41 controlled events
10 programmable switching sets each with up to 5 groups (delay, command mode set, output pin
or argument section;  switched input pins and DCC functions control simultaneous independent
execution of each switching set
Decoder powers on with no DCC input
Master Disable Function Turn Function ON to disable the decoder

Multifunction Switching with Large Switch Sets       IDEC2_5_LargeFunctionSetsDev
Similar to IDEC2_5_LargeFunctionSetsDev this is a general purpose, highly configurable sequencer/switcher that runs up to 2 Switch sets simultaneously with independent timing, each with  25 groups of CV controlled timing delays (from 1/1000 of a second to 255 minutes – 4 hours 15 minutes), with independent parameterized commands, controlling any of 8 Switch pins, by single pin or in groups, with direct, random, weighted random, alternating pairs, with sound generation, servo control, and daisy chaining switch sets to create up to a timed chain of 49 controlled events

Switched Sounds     IDEC3_1_1SoundPlyr
This sound decoder will orchestrate 10 sound sets to one DFPlayer Sound module
10 programmable sound sets each with up to 5 groups (delay, volume set, track to play, with switched input pins and DCC function controls allowing for simultaneous independent play
Master Disable Function Turn Function ON to disable the decoder
Four independent LED control functions

Switched Sounds     IDEC3_2_2SoundPlyrs
This sound decoder will orchestrate 10 sound sets to two  DFPlayer Sound modules
10 programmable sound sets each with up to 5 groups (delay, volume set, track to play) with switched input pins and DCC function controls allowing for simultaneous independent play
Each sound set can be programmed to be played on either of 2 audio players, allowing true simultaneous sound generation
Master Disable Function Turn Function ON to disable the decoder
Four independent LED control functions

Switched Sounds     IDEC3_3_4SoundPlyrs
This sound decoder will orchestrate 10 sound sets to four  DFPlayer Sound modules
10 programmable sound sets each with up to 5 groups (delay, volume set, track to play) with switched input pins and DCC function controls allowing for simultaneous independent play
Each sound set can be programmed to be played on any of 4 audio players, allowing true simultaneous sound generation
Master Disable Function Turn Function ON to disable the decoder
Four independent LED control functions

IDEC4_1_ServosFastLEDsSounds
This  decoder will control 10 coordinated sets of servo movements and sound tracks
10 Functions and 8 inputs servo/LEDs/sounds combinations
Master Disable Function Turn Function ON to disable the decoder

IDEC4_2_ServosLEDsSounds
This  decoder will control 10 coordinated sets of servo movements and sound tracks
10 Functions and 8 inputs servo/LEDs/sounds combinations
Master Disable Function Turn Function ON to disable the decoder

IDEC4_3_ServosLEDsSounds3Plyr
This  decoder will control 10 coordinated sets of servo movements and sound tracks to 3 DFPlayers sound generators
10 Functions and 8 inputs servo/LEDs/sounds combinations
Master Disable Function Turn Function ON to disable the decoder

IDEC4_4_ServosLEDsSoundsCV
This  decoder will control 10 coordinated sets of servo movements and sound tracks all CV configurable
10 Functions and 8 inputs servo/LEDs/sounds combinations
Master Disable Function Turn Function ON to disable the decoder

These additional 10 sketches can be found in the DemosAndDiagnostics  folder:

IDEC1_1_MotSoundBell_Demo1_8K
IDEC1_1_MotSoundBell_Demo2_16K

IDEC2_5_LargeFunctionBellDemo4
IDEC2_5_LargeFunctionBellDemo5
IDEC2_5_LargeFunctionBellDemo6
IDEC4_4_ServosCVBell_Demo3
IDEC4_4_ServosCVBell_Demo3A
IDEC4_4_ServosCVBell_Demo3B

These are all variations of the respective IDEC library entries IDECx_y with various settings changed to suit the demo I was working on. Most changes are in the CV (DCC Control Variables) settings, but other options and parameters, like motor PWM timing in IDEC1_1_MotSoundBell_Demo1_8K and IDEC1_1_MotSoundBell_Demo1_16K are also made. These are provided as hopefully instructive examples.

IDEC9_Sound_Test
This is a debugging tool to play all 12 tracks on the SD Card in the DFPlayer connected to pin 15
IDECServoTestPin8
This is a debugging tool to run a servo connected to D8 from end to end

The IDEC Decoder Hardware: The SMA20 DCC Decoder Board

Decoder.jpg

Many modelers have asked for printed circuit boards to make the construction a bit easier. These can use a 7805 style Voltage regulator, but a MEZD71202A-G DC-DC  Converter 5V 2Amp from Digikey.com   #1589-1465-ND  $5.22 or a PSU5a 5V 3A Regulator in TO-220 form Factor from EZSBC.com   # PSU5a  $7.95 is much preferred for IDEC decoders. Further, either of these Digikey.com bridges: DF204-G Bridge Rectifier 400V 2Amp Digikey #641-1341-5-ND  $0.59 or DF210-G Bridge Rectifier 1KV 2Amp Digikey  #641-1343-5-ND  $0.59 should be used. The original board supports the use of a dual H-Bridge which can control 2 motors, the SN754410 H-Bridge. This part is only needed for the IDEC1_1_MotSound5Led controlled motor drive decoder. The on-board power supply, which powers the board from the DCC bus directly, will supply 2 Amps for the decoder and attachments. This board attaches to the Arduino Pro Mini board directly, via header connectors, pins and sockets, or plain wire. The Arduino Pro Mini used here is very low cost ($1.85-$4.00), fast enough, and has enough memory to serve out purposes well. However, I have run the very same decoder sketches on Arduino Uno’s, Pro Micro’s, Mega2540’s, and Nano’s. The mother board design I provide are designed for minimal size for use directly with the Arduino Pro Mini, in form, fit, and function. The switches, sensors, LEDs and Servos are connected directly to the Pro Mini board as before. The motor connections are located on the new daughter board. Circuit diagrams are shown below.

Look to SMA20 Low Cost 17 Channel DCC Decoders Ver 6.01 with Sound,Triggered Sound,Stepper,Dual Motor,LED and Servo Control   https://forum.mrhmag.com/post/sma20-low-cost-17-channel-dcc-decoders-ver-6-01-with-soundtriggered-soundstepperdual-motorled-and-12201920   for more details. Boards can be ordered from OSHPark.com with the board files available:
http://mrhpub.com/files/users/geoffb/decoderpcbs.zip

or from  Model Railroad Control Systems ( http://www.modelrailroadcontrolsystems.com/community-designs/ ).
I have no vested interest in either – I’m just a satisfied customer. Please feel free to use whatever fabricator you like. I know of no source for fully built boards.

PJ%20top.jpg 
DCC_Decoder3PJ Board

Bill of Materials (BOM)

Schem Part# QTY   ALL Digikey parts ( http://www.digikey.com):
OK1                 1      160-1791-ND             6N137 OPTOCOUPLER HS 8-DIP
IC1                   1      497-15682-5-ND        L7805ACV-DG IC REG LDO 5V 1.5A TO220

Or better (runs cool & higher power):

IC1                   1      1589-1465-ND           MEZD71202A-G DC-DC  Converter 5V 2Amp
D3                    1      1N4148FSCT-ND       1N4148 DIODE GEN PURP 100V 200MA DO35
C1                    1      493-5914-1-ND         CAP ALUM 220UF 25V 20% RADIAL
B1                    1      641-1343-5-ND         DF210-G DIODE BRIDGE 1000V 2.0Amp 4-DIP
C6,C7               2      478-8312-1-ND         CAP TANT 22UF 25V 10% 2312 SMD
C2,C3               2      445-8421-ND             CAP CER 0.1UF 25V 10% RADIAL
C8                    1      BC1018CT-ND           CAP CER 270PF 50V 5% RADIAL
R12                  1      CF14JT10K0CT-ND    RES 10K OHM 1/4W 5% CARBON FILM
R17                  1      CF14JT5K10CT-ND    RES 5.1K OHM 1/4W 5% CARBON FILM
R18                  1      CF14JT1K30CT-ND    RES 1.3K OHM 1/4W 5% CARBON FILM
IC2                   1      296-9911-5-ND         SN754410NE IC HALF-H DRVR QUAD 16-DIP
PROMINI         1      1568-1055-ND           DEV-11113 ARDUINO PRO MINI 328 5V/16MHZ
DCC,MOT1,     3      929450-01-12-I          PIN Connector Header 12 position 0.100"
MOT2

Decoder3PJ_SchematicS.jpg
DCC_Decoder3PJ Schematic

Carrier_Boards.jpg
Socketed Decoder on carrier board

Once you have the module built, look here for a step by step cookbook for loading the decoder, oriented to the modeler: Starting from Scratch with an Arduino Pro Minihttp://mrhpub.com/2014-11-nov/land/#99
The “Arduino Pro Mini Controller” used here is one of a set of small processors (computers) on boards, set up to allow easy use by people who want to use them as a tool, rather than focus on the details of the technology. Arduinos are available for public use with no restrictions. They are manufactured and distributed by many companies worldwide, some for as little as $2 (quantity one) including shipping!

In the original effort, I pointed out that I am not a proponent of asking modelers to learn how to program-- just learn how to use these new tools. You can stop there or take it as far as you want. The small Arduino processors  are used in high schools and colleges all over the world to teach basic concepts. I am not trying to do that here, merely trying to show others that these little guys can add a great deal to your modeling enjoyment. If you really want to learn more, a good start for climbing the Arduino Learning curve would be the tutorials at:   http://arduino.cc/en/Tutorial/HomePage and there are allot of topics there for searching and browsing or http://arduino-info.wikispaces.com/TUTORIALS or   http://arduino.cc/en/Guide/ArduinoProMini

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 1
Geoff Bunza geoffb

IDEC Decoder operational details

At present, there are 13 preconfigured Decoders in the examples ready to roll:
http://www.scalemodelanimation.com/Decoders/NmraDcc-IDEC.zip

Copy the entire NmraDcc-IDEC folder and all of its contents into your …\Documents\Arduino\library folder. These decoders will be found in the menu File-> Examples-> NmraDcc-> IDEC
If you are already using the NmraDcc library, just copy the IDEC folder to the
…\Documents\Arduino\library\NmraDcc\examples\  folder and restart the Arduino IDE.

There are features common to all or most of the IDEC Decoders:

All  IDEC decoders work with both short and long DCC Addresses.
F0=Master Function OFF = Function ON DISABLES the decoder
F0 is configured as Master Decoder Disable Override  ON==Disable Decoder
Input Pin for Decoder Disable  usually Pin 16/A2 Active LOW  (double check the sketch)
Loading CV 252 with 252 and power cycling the decoder will reset and reload all original, default CV values
You can set the default DCC address in:  #define This_Decoder_Address   24
All IDEC decoders are of the DCC mobile decoder type since decoder functions are liberally used

Included in the IDEC library are:

Controlled Motor Drive     IDEC1_1_MotSound5Led
Motor speed via DCC speed for one motor, second motor on/off via function
Speed Over-Ride =  CV = Non-Zero Value (1-127) over-rides the DCC speed commands
Input1 for Throttle Down/Pause/Throttle Up;  CV for Throttle Down Time, CV for Throttle Up Time,
          CV for Pause Time, Optional sound track played
Input2 for Throttle Down/Pause/Throttle Up;  CV for Throttle Down Time, CV for Throttle Up Time,
          CV for Pause Time, Optional sound track played
Input1 for Throttle Down/Reverse/Throttle Up; CV for Throttle Down Time, CV for Throttle Up Time;
          CV for Reverse Pause Time, Optional sound track played
Input2 for Throttle Down/Reverse/Throttle Up; CV for Throttle Down Time, CV for Throttle Up Time;
          CV for Reverse Pause Time, Optional sound track played
Input for immediate Stop, Optional sound track played
Input for immediate Start, Optional sound track played
Function control of second motor with pre-defined (CV) speed and direction
CV speeds default on (if non-zero) if decoder powers on with no DCC input
Master Disable Function Turn Function ON to disable the decoder
Functions for lights on/off

This decoder will control 2 motors and Four LEDs with Sound
F0=Master Function OFF = Function ON DISABLES the decoder
Input Pin for Decoder Disable  Pin 16 Active LOW
Motor speed via DCC speed for one motor, second motor on/off via function
Speed Over-Ride =  CV = Non-Zero Value (1-127) over-rides the DCC speed commands Bit 8 is direction 1=Forward
Input1 Pin for Throttle Down/Pause/Throttle Up  Pin 5
         CV for Throttle Down Time, CV for Throttle Up Time,, CV for Pause Time
Input2 Pin for Throttle Down/Pause/Throttle Up  Pin 6
          CV for Throttle Down Time, CV for Throttle Up Time,, CV for Pause Time
Input Pin1 for Throttle Down/Reverse/Throttle Up Pin 7
    CV for Throttle Down Time, CV for Throttle Up Time,CV for Reverse Pause Time
Input Pin2 for Throttle Down/Reverse/Throttle Up Pin 8
    CV for Throttle Down Time, CV for Throttle Up Time,CV for Reverse Pause Time
Input Pin for immediate Stop  Pin 11
Input Pin for Immediate Start Pin 12
Functions for lights on/off:
F1-F4  4 Functions LED ON/OFF by default PINS 13,17,18,19
  Pro Mini  D15 A1 (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Remember to connect +5V and GND to the DFPlayer too: DFPLAYER PINS 1 & 7 respectively
  This is a “mobile/function” decoder with audio play to dual motor control and
  LED functions. Audio tracks or clips are stored on a micro SD card for playing,
  in a folder labeled mp3, with tracks named 0001.mp3, 0002.mp3, etc.
 
  F0 == Master Decoder Disable   ON to disable the decoder
  F1 == LED == D13
  F2 == LED == D17/A3
  F3 == LED == D18/A4
  F4 == LED == D19/A5
  F5 == Motor2 On/OFF speed & direction set by CV 80  Normally Base Station will Transmit F5 as initial OFF
           If no DCC present Decoder will power up with Motor2 ON at speed specified in CV 72
           Motor1 speed control is via throttle or overridden by non zero value in CV 50
           High Bit=Direction, Lower 7 Bits=Speed == DSSSSSSS (Take the speed you want (114) and add 128
           or 0 to set the direction = 242 or 114 respectively
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - m2h Motor Control
4 - m2l Motor Control
5 - Input1 Pin for Throttle Down/Pause/Throttle Up
6 - Input2 Pin for Throttle Down/Pause/Throttle Up
7 - Input1 Pin for Throttle Down/Reverse/Throttle Up
8 - Input2 Pin for Throttle Down/Reverse/Throttle Up
9 - m0h Motor Control
10 - m0l Motor Control
11 - Input Pin for immediate Stop
12 - Input Pin for Immediate Start
13 - LED F1
14 A0 - LED F2
15 A1 - (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW
17 A3 - LED F3
18 A4 - LED F4
19 A5 - LED F5

Building Lights Display    IDEC2_1_Building
Functions control lighting display: random building lighting, all on/off, with rate change
Decoder powers on with no DCC input and 5 Volt power applied
F0=Master Disable Function ON DISABLES the decoder
 Input Pin for Decoder Disable  Pin 3 Active LOW
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin for MasterDecoderDisable Active LOW
4 - LED
5 - LED
6 - LED
7 - LED
8 - LED
9 - LED
10 - LED
11 - LED
12 - LED
13 - LED
14 A0 - LED
15 A1 - LED
16 A2 - LED
17 A3 - LED
18 A4 - LED
19 A5 - LED

Building Lights Display with One Welder     IDEC2_2_Building1Wldr
Functions control lighting display: random building lighting, all on/off, with rate change
One welder simulation with independent control
Decoder powers on with no DCC input and 5 Volt power applied
F0=Master Disable Function ON DISABLES the decoder
 Input Pin for Decoder Disable  Pin 3 Active LOW
     F0 == Master Decoder Disable == ON
     F1 == Welder 1 Disable == ON
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin for MasterDecoderDisable Active LOW
4 - LED Blue Welder1
5 - LED White Welder1
6 - LED
7 - LED
8 - LED
9 - LED
10 - LED
11 - LED
12 - LED
13 - LED
14 A0 - LED
15 A1 - LED
16 A2 - LED
17 A3 - LED
18 A4 - LED
19 A5 - LED

Building Lights Display    IDEC2_3_Building2Wldrs
Functions control lighting display: random building lighting, all on/off, with rate change
Two welder simulations with independent control
Decoder powers on with no DCC input and 5 Volt power applied
F0=Master Disable Function ON DISABLES the decoder
 Input Pin for Decoder Disable  Pin 3 Active LOW
     F0 == Master Decoder Disable == ON
     F1 == Welder 1 Disable == ON
     F2 == Welder 2 Disable == ON
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin for MasterDecoderDisable Active LOW
4 - LED Blue Welder1
5 - LED White Welder1
6 - LED Blue Welder2
7 - LED White Welder2
8 - LED
9 - LED
10 - LED
11 - LED
12 - LED
13 - LED
14 A0 - LED
15 A1 - LED
16 A2 - LED
17 A3 - LED
18 A4 - LED
19 A5 - LED

Multifunction Switching with 10 Switch Sets       IDEC2_4_FunctionSets
This decoder will control sequences of switches, servos, sounds and/or LEDs
F1-F8 Eight Switch Sets 1-8 controlled by Input pins 3,4,5,6,7,8,9,10  respectively
F1-F10  also runs switch sets (1-10)   All Switch Sets are defined by groups of 16 CVs
  - Either a DCC Function 1-10 on OR an Input Pin (3,4,5,6,7,8,9,10) Switched LOW enables a decoder function (ON)
  - BOTH the respective DCC Decoder Function 1-8 must be Off AND its respective Input Pin  (3,4,5,6,7,8,9,10)
    MUST be High for a decoder function to be considered disabled
  - A decoder function LEFT ENABLED will repeat the corresponding  switch set as long as it is enabled
10 programmable switching sets each with up to 5 groups consisting of a delay, command mode set, output pin or argument selection
Switch Set CV's are 5 groups of 3 CVs each:  
       CV1 - A delay (0-255) which will be multiplied by the
       The MasterTimeConstant sets time increments from milliseconds to minutes
       0 = No Delay
       CV2 - A Mode or Command byte Describing what will be executed in this Switch Step, including:
      0 = No Operation / Null /Skip
      1 = Simple pin switch on/off
      2= Random pin switch on/off
      3 = Weighted Random pin switch on/off  default is 60%  ON time but can be set to anything 1-99%
      4 = Play sound track  using fpin value for the track 1-126, 0 = Skip Play, 127 = Select Random Track
            from First_Track to Last_Track inclusive;
            MSB=0-> No Volume Change MSB=1 -> Set Volume to default_volume
      5 = Position Servo to 0-180 full speed of travel
      6 = Dual pin on/off used for alternate blink fpin and fpin+1 (MSB set value for fpin state)
      7 = Start another Switching set based on the fpin argument (Used to chain Switch Sets)
      8 = Start another Switching set based on the fpin argument ONLY if NOT already started
       CV3 - An argument representing the Pin number affected in the lower 7 bits and the High bit (0x80 or 128)
               a value or a general parameter like a servo position, a Sound track, or a sound set number to jump
               to
Switch sets start with CVs:  50, 66, 82, 98, 114, 130, 146, 162, 178, or 194
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Switch   1
4 - Input Pin Switch   2
5 - Input Pin Switch   3
6 - Input Pin Switch   4
7 - Input Pin Switch   5
8 - Input Pin Switch   6
9 - Input Pin Switch   7
10 - Input Pin Switch  8
11 - Switch 1
12 - Switch 2
13 - Switch 3
14 A0 - Switch 4  or  default_servo_pin
15 A1 - Switch 5  or default sound player pin (TX) connected to  DFPlayer1 (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable  Active LOW
17 A3 - Switch 6
18 A4 - Switch 7
19 A5 - Switch 8

Multifunction Switching with Large Switch Sets       IDEC2_5_LargeFunctionSetsDev
10 programmable switching sets each with up to 5 groups consisting of a delay, command mode set, output pin or argument selection
Switched input pins and DCC functions control simultaneous independent execution of each switching set
Decoder powers on with no DCC input and 5 Volt power applied
F0 is configured as Master Decoder Disable Override  ON==Disable Decoder
 Input Pin for Decoder Disable  Pin 16/A2 Active LOW
 F1-F2 Eight Switch Sets 1-2 controlled by Input pins 3,4  respectively
  Two Switch Sets are defined by a group of 80 CVs
  - Either a DCC Function 1-2 on OR an Input Pin (3,4,) Switched Low enables a decoder function (ON)
  - BOTH the respective DCC Decoder Function 1-2 must be Off AND its respective Input Pin  (3,4)
    MUST be High for a decoder function to be considered disabled
  - A decoder function LEFT ENABLED will repeat the respective action as long as it is enabled
 Switch Set CV's are 25 groups of 3 CVs each:  
       CV1 - A delay (0-255) which will be multiplied by the
       The MasterTimeConstant sets time increments from milliseconds to minutes
       0 = No Delay
       CV2 - A Mode or Command byte Describing what will be executed in this Switch Step, including:
      0 = No Operation / Null /Skip
      1 = Simple pin switch on/off
      2= Random pin switch on/off
      3 = Weighted Random pin switch on/off  default is 60%  ON time but can be set to anything 1-99%
      4 = Play sound track  using fpin value for the track 1-126, 0 = Skip Play, 127 = Select Random Track
            from First_Track to Last_Track inclusive;
            MSB=0-> No Volume Change MSB=1 -> Set Volume to default_volume
      5 = Position Servo to 0-180 full speed of travel
      6 = Dual pin on/off used for alternate blink fpin and fpin+1 (MSB set value for fpin state)
      7 = Start another Switching set based on the fpin argument (Used to chain Switch Sets)
      8 = Start another Switching set based on the fpin argument ONLY if NOT already started
       CV3 - An argument representing the Pin number affected in the lower 7 bits and the High bit (0x80 or 128)
               a value or a general parameter like a servo position, a Sound track, or a sound set number to jump to
The two switch sets include CVs:  50-129 and 130=209 respectively
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Switch   1
4 - Input Pin Switch   2
5 – Output Switch 9
6 - Output Switch 10
7 - Output Switch 11
8 - Output Switch 12
9 - Output Switch 13
10 - Output Switch 14
11 - Output Switch 1
12 - Output Switch 2
13 - Output Switch 3
14 A0 - Output Switch 4  or  default_servo_pin
15 A1 - Output Switch 5  or default sound player pin (TX) connected to  DFPlayer1 (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW
17 A3 - Output Switch 6
18 A4 - Output Switch 7
19 A5 - Output Switch 8

Switched Sounds     IDEC3_1_1SoundPlyr
This sound decoder will orchestrate 10 sound sets to one DFPlayer Sound module
10 programmable sound sets each with up to 5 groups (delay, volume set, track to play with switched input pins and DCC function controls allowing for simultaneous independent play
Master Disable Function Turn Function ON to disable the decoder
Four independent LED control functions
This decoder will control Sound Sequences and LEDs
 F0=Master Function OFF = Function ON DISABLES the decoder
 Input Pin for Decoder Disable  Pin 16/A2 Active LOW
Functions for lights on/off:
 F11-F14 Four Functions LED ON/OFF by default PINS 13,16,17,18,19
  Pro Mini -D7 (TX) connected to DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Remember to connect +5V and GND to the DFPlayer too: DFPLAYER PINS 1 & 7 respectively
  This is a “mobile/function” decoder with audio play to dual motor control and
  LED functions. Audio tracks or clips are stored on a micro SD card for playing,
  in a folder labeled mp3, with tracks named 0001.mp3, 0002.mp3, etc.
  F0 is configured as Master Decoder Disable Override  ON==Disable Decoder
  F1-F10  plays an audio sound set (1-10) defined by CVs
 MAX one of 12 Configurations per pin function:
  Config 0=DISABLE On/Off,1-10=Sound Set Control 1-10,11=LED On/Off
 F0 Master Decoder Disable
 F1-F5  5 Functions LED ON/OFF
 F4 Motor2 On/OFF  with speed and direction set by CV 62  Simple speed control is made via throttle speed
      setting for two MOTOR1 or overridden by non zero value in CV 50
 PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Play Sound Set1
4 - Input Pin Play Sound Set2
5 - Input Pin Play Sound Set3
6 - Input Pin Play Sound Set4
7 - Input Pin Play Sound Set5
8 - Input Pin Play Sound Set6
9 - Input Pin Play Sound Set7
10 - Input Pin Play Sound Set8
11 - Input Pin Play Sound Set9
12 -  Input Pin Play Sound Set10
13 - LED F1
14 A0 - LED F2
15 A1 - DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW
17 A3 - LED F3
18 A4 - LED F4
19 A5 - LED F5

Switched Sounds     IDEC3_2_2SoundPlyrs
This sound decoder will orchestrate 10 sound sets to two  DFPlayer Sound modules
10 programmable sound sets each with up to 5 groups (delay, volume set, track to play) with switched input pins and DCC function controls allowing for simultaneous independent play
Each sound set can be programmed to be played on either of 2 audio players, allowing true simultaneous sound generation
Master Disable Function Turn Function ON to disable the decoder
Four independent LED control functions
 F0=Master Function OFF = Function ON DISABLES the decoder
 Input Pin for Decoder Disable  Pin 16/A2 Active LOW
Functions for lights on/off:
 F11-F14 Four Functions LED ON/OFF by default PINS 13,16,17,18,19
  Pro Mini  D14 A0 (TX) connected to  DFPlayer2 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Pro Mini  D15 A1 (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Remember to connect +5V and GND to the DFPlayer too: DFPLAYER PINS 1 & 7 respectively
  This is a “mobile/function” decoder with audio play to dual motor control and
  LED functions. Audio tracks or clips are stored on a micro SD card for playing,
    in a folder labeled mp3, with tracks named 0001.mp3, 0002.mp3, etc.
 Up to 10 Sound Sets can be defined (and programmed via CVs) each sound set consists of:
    delay1,volume1,sound clip1,delay2,volume2,sound clip2,delay3,volume3,sound clip3,delay4,volume4,sound clip4,delay5,volume5,sound clip5,PlayerCnannel (0-1) -- Timing of playing the sound set is completely independent of other sound sets and can occur simultaneously
    If a sound clip/track is started while another clip/track is playing on the same player channel, the newly starting clip/track
 Delay set to zero will offer NO delay time
 Volume set to> 30 will not change current volume setting
 Track set to 0 will skip playing a track -- delay and volume set can be set to 0 and> 30 to ignore operation too,
     otherwise delay and volume are executed normally
 Track set to 255 will select a random track to play from number First_Track to Last_Track INCLUSIVE
F0 Master Decoder Disable ON==Disable Decoder
F1-F10  Play Sound Set 1-10 defined by CVs
F11-F14  Functions LED ON/OFF
 Both F1-F10 set ON, or the appropriate Input Pin 3-12 held LOW will repeat play the associated sound set
   until both the respective DCC function goes OFF  and the respective Input Pin goes HIGH
 PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Play Sound Set1
4 - Input Pin Play Sound Set2
5 - Input Pin Play Sound Set3
6 - Input Pin Play Sound Set4
7 - Input Pin Play Sound Set5
8 - Input Pin Play Sound Set6
9 - Input Pin Play Sound Set7
10 - Input Pin Play Sound Set8
11 - Input Pin Play Sound Set9
12 - Input Pin Play Sound Set10
13 - LED F1
14 A0 - DFPlayer2 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
15 A1 - DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW
17 A3 - LED F2
18 A4 - LED F3
19 A5 - LED F4

Switched Sounds     IDEC3_3_4SoundPlyrs
This sound decoder will orchestrate 10 sound sets to four  DFPlayer Sound modules
10 programmable sound sets each with up to 5 groups (delay, volume set, track to play) with switched input pins and DCC function controls allowing for simultaneous independent play
Each sound set can be configured to play on either of 2 audio players, allowing true simultaneous sound generation
Four independent LED control functions
 F0=Master Function OFF = Function ON DISABLES the decoder
 Input Pin for Decoder Disable  Pin 16/A2 Active LOW
Functions for lights on/off:
F11-F14 Four Functions LED ON/OFF by default PINS 13,16,17,18,19
 
  Pro Mini  D11 A0 (TX) connected to  DFPlayer4 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Pro Mini  D12 A1 (TX) connected to  DFPlayer3 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Pro Mini  D14 A0 (TX) connected to  DFPlayer2 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Pro Mini  D15 A1 (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
  Remember to connect +5V and GND to the DFPlayer too: DFPLAYER PINS 1 & 7 respectively
  This is a “mobile/function” decoder with audio play to dual motor control and
  LED functions. Audio tracks or clips are stored on a micro SD card for playing,
    in a folder labeled mp3, with tracks named 0001.mp3, 0002.mp3, etc.
 Up to 10 Sound Sets can be defined (and programmed via CVs) each sound set consists of:
    delay1,volume1,sound clip1,delay2,volume2,sound clip2,delay3,volume3,sound clip3,delay4,volume4,sound clip4,delay5,volume5,sound clip5,PlayerCnannel (0-3) -- Timing of playing the sound set is completely independent of other sound sets and can occur simultaneously
    If a sound clip/track is started while another clip/track is playing on the same player channel, the newly starting clip/track
    will take precedence, with its associated volume setting
 Delay set to zero will offer NO delay time
 Volume set to> 30 will not change current volume setting
 Track set to 0 will skip playing a track -- delay and volume set can be set to 0 and> 30 to ignore operation too,
     otherwise delay and volume are executed normally
 Track set to 255 will select a random track to play from number First_Track to Last_Track INCLUSIVE
  F0 is configured as Master Decoder Disable Override  ON==Disable Decoder
  F1-F10  plays an audio set (1-10) defined by CVs
 MAX one of 12 Configurations per pin function:
  Config 0=DISABLE On/Off,1-10=Sound Set Control 1-10,11=LED On/Off
 F0 Master Decoder Disable
 F1-F10  Play Sound Set 1-10
 F11-F14  Functions LED ON/OFF
 Both F1-F10 set ON or the appropriate Input Pin 3-10 held LOW will repeat play the associated sound set
   until BOTH the respective DCC function goes OFF  AND the respective Input Pin goes HIGH
 ONLY F9 and F10 can activate Sound sets 9 and 10 respectively
 PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Play Sound Set1
4 - Input Pin Play Sound Set2
5 - Input Pin Play Sound Set3
6 - Input Pin Play Sound Set4
7 - Input Pin Play Sound Set5
8 - Input Pin Play Sound Set6
9 - Input Pin Play Sound Set7
10 - Input Pin Play Sound Set8
11  - DFPlayer4 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
12  - DFPlayer3 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
13 - LED F1
14 A0 - DFPlayer2 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
15 A1 - DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW
17 A3 - LED F2
18 A4 - LED F3
19 A5 - LED F4

IDEC4_1_ServosFastLEDsSounds
This  decoder will control 10 coordinated sets of servo movements and sound tracks
10 Functions and 8 inputs servo/LEDs/sounds combinations
 5 Functions and Switched Inputs Plays Sound Sets 1-5 stepped with Leds 1-5 and Servos 1-5
   F0 Master Decoder Disable Function Turn Function ON to disable the decoder
   F1-F5 and Switched Inputs Plays Sound Sets 1-5 stepped with Leds 1-5 and Servos 1-5
   F6-F10  Plays Sound Sets 6-10
 Master Disable Function Turn Function ON to disable the decoder
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Channel Switch1  & Function1
4 - Input Pin Channel Switch2  & Function2
5 - Input Pin Channel Switch3  & Function3
6 - Input Pin Channel Switch4  & Function4
7 - Input Pin Channel Switch5  & Function5
8 - Servo Pin Channel 1
9 - LED Pin Channel 1
10 - Servo Pin Channel 2
11 - LED Pin Channel 2
12 - Servo Pin Channel 3
13 - LED Pin Channel 3
14 A0 - Servo Pin Channel 4
15 A1 - (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW  & F0
17 A3 - LED Pin Channel 4
18 A4 - Servo Pin Channel 5
19 A5 - LED Pin Channel 5

IDEC4_2_ServosLEDsSounds
This  decoder will control 10 coordinated sets of servo movements and sound tracks
10 Functions and 8 inputs servo/LEDs/sounds combinations
Switched Pins Servos, LEDs Sounds Variable Slow Servo Travel   IDEC4_2_ServosLEDsSounds.ino
 5 Functions 1-5 and Switched Inputs 1-5 Play Sound Sets 1-5 stepped with LEDs 1-5 and Servos 1-5
   F0 Master Decoder Disable Function Turn Function ON to disable the decoder
   F1-F5 and Switched Inputs Plays Sound Sets 1-5 stepped with Leds 1-5 and Servos 1-5
   F6-F10  Plays Sound Sets 6-10
 Master Disable Function Turn Function ON to disable the decoder
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Channel Switch1  & Function1
4 - Input Pin Channel Switch2  & Function2
5 - Input Pin Channel Switch3  & Function3
6 - Input Pin Channel Switch4  & Function4
7 - Input Pin Channel Switch5  & Function5
8 - Servo Pin Channel 1
9 - LED Pin Channel 1
10 - Servo Pin Channel 2
11 - LED Pin Channel 2
12 - Servo Pin Channel 3
13 - LED Pin Channel 3
14 A0 - Servo Pin Channel 4
15 A1 - (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW  & F0
17 A3 - LED Pin Channel 4
18 A4 - Servo Pin Channel 5
19 A5 - LED Pin Channel 5

IDEC4_3_ServosLEDsSounds3Plyr
This  decoder will control 10 coordinated sets of servo movements and sound tracks to 3 DFPlayers sound generators
10 Functions and 8 inputs servo/LEDs/sounds combinations
 Switched  Servos, LEDs Sounds to 3 Sound Players Variable Slow Servo Travel   
 5 Functions and Switched Inputs Plays Sound Sets 1-5 stepped with LEDs 1-5 and Servos 1-5
   F0 Master Decoder Disable Function Turn Function ON to disable the decoder
   F1-F5 and Switched Inputs Plays Sound Sets 1-5 stepped with LEDs 1-5 and Servos 1-5
   F6-F10  Plays Sound Sets 6-10
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Channel Switch1  & Function1
4 - Input Pin Channel Switch2  & Function2
5 - Input Pin Channel Switch3  & Function3
6 - Input Pin Channel Switch4  & Function4
7 - Input Pin Channel Switch5  & Function5
8 - Servo Pin Channel 1
9 - LED Pin Channel 1
10 - Servo Pin Channel 2
11 - LED Pin Channel 2
12 - Servo Pin Channel 3
13 - LED Pin Channel 3
14 A0 -  (TX) connected to  DFPlayer2Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
15 A1 - (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW  & F0
17 A3 -  (TX) connected to  DFPlayer3Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
18 A4 - Servo Pin Channel 5
19 A5 - LED Pin Channel 5

IDEC4_4_ServosLEDsSoundsCV
This  decoder will control 10 coordinated sets of servo movements and sound tracks all CV configurable
10 Functions and 8 inputs servo/LEDs/sounds combinations
 Switched Pins Servos, LEDs Sounds Variable Slow Servo Travel  IDEC4_4_ServosLEDsSoundsCV.ino
   Servo Positions and LED controls set by CV dynamically
 5 Functions and Switched Inputs Plays Sound Sets 1-5 stepped with Leds 1-5 and Servos 1-5
   F0 Master Decoder Disable Function Turn Function ON to disable the decoder
   F1-F5 and Switched Inputs Plays Sound Sets 1-5 stepped with Leds 1-5 and Servos 1-5
   F6-F10  Plays Sound Sets 6-10
PRO MINI PIN ASSIGNMENT:
2 - DCC Input
3 - Input Pin Channel Switch1  & Function1
4 - Input Pin Channel Switch2  & Function2
5 - Input Pin Channel Switch3  & Function3
6 - Input Pin Channel Switch4  & Function4
7 - Input Pin Channel Switch5  & Function5
8 - Servo Pin Channel 1
9 - LED Pin Channel 1
10 - Servo Pin Channel 2
11 - LED Pin Channel 2
12 - Servo Pin Channel 3
13 - LED Pin Channel 3
14 A0 - Servo Pin Channel 4
15 A1 - (TX) connected to  DFPlayer1 Receive  (RX) Pin 2 via 1K Ohm 1/4W Resistor
16 A2 - Input Pin for MasterDecoderDisable Active LOW  & F0
17 A3 - LED Pin Channel 4
18 A4 - Servo Pin Channel 5
19 A5 - LED Pin Channel 5

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
pierre52

Dr Geoff strikes again

This new Opus from Dr Geoff sets a whole new level for modellers to create stunning animations.

There is an awful lot to absorb but some time spent here will reward the reader with the tools necessary to take their layouts to a new level.

 

Thanks Geoff for the inordinate time and energy you devote to this subject for the benefit of all.

Peter

The Redwood Sub

Reply 0
Prof_Klyzlr

Practical applications - Dr Geoff smacks another home-run...

Dear Dr Geoff,

My goodness man, will you ever be stopped?

I'm immediately struck by a couple of practical applications:

- this could be a "missing link" piece for a "gravity switch" car which uses your truck-mounted motor systems...

IE The decision/trigger for "release the brakes (commence the gravity roll)"
could be local/specific to the car, rather than via DCC command,
thus making a "brakeman releases the brakes on the car (ST Soundcar-style magnetiic wand)" action rather do-able

- Said decoder could also work as the control for PreciModels Uncoupling units, again with a "brakeman's wand"
(touch the appropriate end of the car, coupler springs open for 5 sec, then closes...)

Very keen and following...

Happy Modelling,
Aim to Improve,
Prof Klyzlr

Reply 0
JAMES DEWAR

board zip cannot be download securly

Whichever source for the zip file is used I get the message "decoderpcbs.zip cannot be downloaded securely"

 

Any guidance, please.

Reply 0
Prof_Klyzlr

Reproduced, click the Arrow, and "Keep"...

Dear James,

Click the Arrow at RIGHT of the notification,
and click "Keep" on the pop-up

p%20copy.png 

Happy Modelling,
Aim to Improve,
Prof Klyzlr

Reply 0
JAMES DEWAR

That worked

Thank you Prof that worked.

Reply 0
Mule_Shoe_and_Western

IDEC ?

Is this the same IDEC that manufactures the programmable logic controllers for industry?

http://www.idec.com

 

Reply 0
Geoff Bunza geoffb

@Peter Many Thanks

Hi Peter,

Many thanks for your kind words. 

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Geoff Bunza geoffb

@Prof re: Applications

Hi Prof,

You got it!
The IDEC decoders are all about sequencing, mobile or stationary. The applications you cite are do-able. I hope to see some creative modeling with these far beyond my capabilities.

...Unstoppable was a great railroad movie, and I really appreciate any compliment, especially from you! 

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Geoff Bunza geoffb

@Mule_Shoe re: idec.com ??

Hi Mule_Shoe (name?),

I hope you mean the reference to idec.com in jest? IDEC (Interactive Decoder -- decoders with many inputs) was a name concoction of mine so I didn't have to type Interactive DCC Decoder all the time -- becoming naturally lazy in my old age! 

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
mikedeverell

Oh the Ideas

Geoff,

    Thank you again I have so many ideas that come to mind!

Mike

Mike Deverell

Colorado Front Range Railroad

https://www.youtube.com/channel/UCxQthaWz7aYFp_FIu5qqs4w

Reply 0
Will_Annand

Another winner.

I have this thread bookmarked so I can refer to it when I am ready for my next DCC step.

Right now I am still laying and tweaking track.

Then I have to reprogram my DCC++ base station and get the new version of JMRI onto my Raspberry Pi.

And finally test the track work.

The next steps will be to power my Hoffmann Switch Machines (3 wires) and 22 servo based turnouts in Orangeville yard.

My 2 turntables also need power. One should be easy, it is just a simple 180 turn. The turntable at the Orangeville Yard is more complex, it has inbound and outbound track, along with 9 spokes. 

Looking at your projects for inspiration. Hopefully I can figure it out.

 

 

Reply 0
mshansen

DCC wires for IDEC decoders

Hello Geoff,

I am new to model railway and I am greatly enjoying your articles on DCC decoders and their applications.  Nicely done!  I caught your note about using a separate cable pair to feed DCC to the decoders.  Can you describe what you use and how you 'tap' a decoder onto the cables?  I will be working with outdoor garden railways and was wondering if any one has tried the outdoor lighting cables and crimp-on connectors?  If not I see an experiment in the works ....  

Best regards,

Michael

 

Reply 0
Geoff Bunza geoffb

@Mike and Will re:Future Projects

Hi Guys,

There are lots of possible applications. I hope you get some real mileage out of these. Don't be afraid of asking questions!

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Geoff Bunza geoffb

@Michael re:

Hi Michael,

Quote:

Can you describe what you use and how you 'tap' a decoder onto the cables?  I will be working with outdoor garden railways and was wondering if any one has tried the outdoor lighting cables and crimp-on connectors?

Wow, what a timely and appropriate question. First, I am not a "regular" garden railroader. Last year, I was invited by friends to give a couple of clinics at the National Garden Railway convention in Portland on Arduinos and animation. After many conversations with these very competent modelers, I realized that there was an opportunity to literally take DCC into the garden, not for loco control, but for lighting and animation. This accelerated my write-up of the IDEC decoders. They could fit the garden railway scenario quite well.

Getting directly back to your question -- for indoor smaller scale use I simply run a wire pair (usually about 12-16 Gauge) to barrier strips, and then connect from there to local IDEC or other (SMA) decoders with smaller gauge (22-24 Gauge), all depending on the run lengths. I don't have many bus runs over 25 feet. The runs are protected and insulated, and the junctions usually has a plastic or tape cover.

However, in considering the outdoor application (there are elements of this that I have not talked about or published) I was looking for a connection mechanism that was: 1. weatherproof, 2. low cost, 3. could be easily disassembled at the connection point to an outdoor building or scene. Low cost outdoor, low voltage wiring for 12V garden lighting is available that can be buried and carry at least 20 Amps. That is what I assumed and adopted. What I wound up with was surprising (to me). I found that gold plated banana plugs like these:

https://www.amazon.com/gp/product/B01LYA4YDP/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1
and
https://www.amazon.com/gp/product/B06Y8YL2DM/ref=ppx_yo_dt_b_asin_title_o07_s01?ie=UTF8&psc=1

actually will do quite well. Why? The gold plating is inert to corrosion from a damp outdoor environment, the plugs and sockets are heavy duty and easily connected and disconnected, they can accommodate a larger gauge wire, and last they are relatively low cost and easily available. What I tried was using plugs and sockets for a "local drop" connection off of a soldered tap, and enclosed the connection in a small plastic food container (like a flexible plastic Tupperware container for food storage). Holes were made into the container and sealed with a bit of silicone caulk.  It seemed do-able. I was going to build a few and leave them outside for a time, but it is still on the stack of future projects! ...sigh. I strongly suspect there is a less bizarre solution out there!

The other part of this is how to control the garden IDECs. I think I've already laid the groundwork for that too. It is a combination of a Raspberry Pi 3 or 4 running an independent JMRI WiFi Throttle server, connected to a DCC++ bus interface to the garden cable, with a 15 Amp booster, with a newly modified (and unpublished) portable DCC control panel, based on the ESP32 throttle. Most referenced here:

Raspberry Pi for Model Railroaders Model Railroad Hobbyist Mag, Mar 2019
https://s3-us-west-2.amazonaws.com/mrhpub.com/2019-03-mar/online/index.html?page=65
DCC projects using the Arduino Model Railroad Hobbyist Mag, Mar 2017  Page 204
http://mrhpub.com/2017-03-mar/online/html5/
SMA30 A Simplified WiFi Throttle You Can Customize
https://forum.mrhmag.com/post/sma30-a-simplified-wifi-throttle-you-can-customize-12211948
SMA31 - 15 Amps Plus of Raw Power for DCC++
https://forum.mrhmag.com/post/sma31-15-amps-plus-of-raw-power-for-dcc-12212047

The IDECs complete the picture, for any scale, operated as a separate, low cost DCC interconnect, in any model railroading environment. Minimizing long wire runs for a garden railroad should be a big advantage, and match the wireless control now dominating garden train control. Time permitting, I'm intending on writing this up with the new WiFi Panel controller.

'Hope this helps. Have fun! 
Best regards,
Geoff Bunza

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
mshansen

Hello Geoff, Interesting

Hello Geoff,

Interesting suggestions on the gold plugs.  I'll check it out.  Thanks for the links as well.  Your articles are great!

I have chatted with a few garden railway folks and all state that keeping electronics operating outdoors is a long term challenge;connectors corrode, water gets onto electronics, things fail over time due to the environment.  One suggestion I am looking at are junction boxes like the following. 

https://www.amazon.com/Waterproof-External-Junction-Connector-Electric/dp/B07TFSLLBY

Now then keeping water out of the junction box even if they are sealed can be an issue with changing heat and pressures.  Once solution is to use a proper vent such as the following item.  This allows the pressure to equalize and prevents water from being pumped in as the heat/pressure goes up and down.

https://www.digikey.com/en/products/detail/amphenol-ltw/VENT-PS1NBK-N8001/7898283

I have not tried these yet - but like you stated - time to put something outdoors and see how it lasts!

Keep your articles coming!  They are appreciated.

Cheers,

Michael

 

Reply 0
Geoff Bunza geoffb

@Michael re: Electrical enclosures

Hi Michael,

That junction box has a screw down top with a gasket seal, so that should work well. The cable inlets depend on a fair size cable to occupy its openings. You could likely use silicone sealant to help close the gap with smaller cables/wires. I looked to something like a small Rubbermaid or Tupperware food container to reduce cost with a water tight enclosure. No matter what, long term outdoor exposure is a bear. I hope you share your results when you have them.

Thanks for your kind words.

Have fun!  
Best regards,
Geoff Bunza

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Prof_Klyzlr

Bitter Blasters

Dear Dr Geoff,

When it comes to garden/outdoor railroads and electronics, you should reach out to our friend Jim @ Fantasonics. He has 1st-hand experience using "coolers" (aussie : "esky"?) to house Batteries + DreamPlayers + PowerAmps as weatherproof "bitter blasters",
IE triggerable audio-replay "throw-packs" for use around the Bitter Creek Western ride-on railroad...  

I've also seen (and used, ahem) sealable "tupperware"-style kitchenware containers as pinch-hit "IPxx rated" enclosures under outdoor live-event conditions, as emergency needs required...
(Long term UV-vs-Plastic exposure degradation is the #1 killer...)

Happy Modelling,
Aim to Improve,
Prof Klyzlr

Reply 0
Geoff Bunza geoffb

@Prof

Hi Prof K,

Thanks for the lead, I'll follow up with Jim.

The UV problem is usually associated with making plastic brittle. I wonder if the Rubbermaid containers have enough artificial rubber to reduce the problem? Also, this usually applies to clear plastic. Again, I wonder if a dark colored material changes anything?

Of course, if the outdoor junction packages were set inside buildings, that might help the problem considerably.

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Prof_Klyzlr

UV damage

Dear Dr Geoff,

From experience, color of the plastic and plastic/rubber percentage has little bearing on the situation. If it's UV-stabilised, you have half a chance of getting a year or so reliable operational performance out of the enclosure.
If not, then use it only for "short term emergency" use... (ask me how I know this...   ).

Happy Modelling,
Aim to Improve,
Prof Klyzlr

Reply 0
Geoff Bunza geoffb

@Prof K

Hi Prof,

Thanks for sharing that -- it's good to know ahead of time! 

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
taholmes160

Potential Use of this project

Geoff:

Am I correct that this decoder could be used to provide panel buttons and or switches, as well as DCC control of servos for throwing turnouts?  and possibly be associated with Auxillary input units to provide switch position data to the computer running JMRI or another product?

TIM

Reply 0
Geoff Bunza geoffb

@Tim re:Question

Hi Tim,

Quote:

Am I correct that this decoder could be used to provide panel buttons and or switches, as well as DCC control of servos for throwing turnouts? 

I was wondering if someone was going to ask this. Short answer, yes, as several versions can move servos and light associated LEDs in conjunction with the servo positions. But, realize that I have by definition removed the ambiguity of what the servo does regarding dual "instructions from a DCC command and a panel switch command. The DCC command "ON" for a function OR the panel switch grounded will move the servo to its "ON" position, setting the DCC function back to OFF will not move the servo. Likewise if the DCC function is left ON and turning the panel switch to HIGH (Not Grounded) will leave the Servo in its ON position. Summary: either the DCC function OR the panel switch can move the servo to the ON position, but BOTH the DCC function AND the panel switch must be OFF/HIGH to move the servo to its OFF position. This is the consistent definition of how these work.

Quote:

and possibly be associated with Auxillary input units to provide switch position data to the computer running JMRI or another product?

I don't exactly know what you mean by this, but, clearly, by themselves, these have no feedback to JMRI.

Have fun! 
Best regards,
Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
anno

// ******** UNLESS YOU WANT

Quote:

// ******** UNLESS YOU WANT ALL CV'S RESET UPON EVERY POWER UP
// ******** AFTER THE INITIAL DECODER LOAD REMOVE THE "//" IN THE FOOLOWING LINE!!
//#define DECODER_LOADED

to

// ******** UNLESS YOU WANT ALL CV'S RESET UPON EVERY POWER UP
// ******** AFTER THE INITIAL DECODER LOAD REMOVE THE "//" IN THE FOOLOWING LINE!!
#define DECODER_LOADED

 

I did read this and i did understand that i needed to do something, but not yet what. So thanks a lot!

Quote:

Since it sounds like these are your early trials with these decoders, start with the simplest one in the SMA library: Dec_17LED_1Ftn which is a mobile decoder with 17 switched outputs that you can test with resistor equipped LEDs and has a minimal number of CV's (like an address). Get that working first. The IDEC decoders tend to be much more complicated and have many more CVs. Then load the Dec_17LED_6Ftn decoder which is configurable for each pin and see if you can change the CV's.

Indeed but i learn fast! I did you the Dec-17LED_1Ftn and 6Ftn. I do now understand what the difference is between the 1Ftn and 6 Ftn, this will help a lot with my next steps.

Quote:

What decoder sketches exhibit long boot times? What is "long?" Some of the decoders check all output ports and will reset attached servos one at a time to limit peak power demands. These can be eliminated if you have some overwhelming desire to shorten the power up sequence.

I do mean that when the arduino gets power it will first ligt up/check all output all the leds. Before it will go in operation, and this because of this the programming on ecos program or esu lokprogrammer won't work, as you indeed said, i did read that but i did forgot it. Also i do not have positive (read not working) experience with esu or other brand decoders programming out of the main, the program track did always work immediately.

I am sorry for not posting under the right post, you do have a lot of information and for 1 first timer somewhat difficult to get a good idea of what is what etc.

Quote:

That's great. Did you use an 8MHz Pro Mini by chance? It likely will not work at all or work intermittently, same for a 3.3V Pro Mini. How did you connect the DCC interface to the Nano? What sketches did you try to use that did not work?

No i did used the 16MHz 5V. I did find more examples of how to connect the dcc interface, of course i did started with you example. But after not responding i did try a lot of other stuff. But now i do use (you example not exactly), i do not use a 270 pf on c8 but a 100UF condensator and also on R17 10k. And no 7805 (gets hot) but a DC-DC Buck Step-down Power Supply Module 5V. 

Anno

Reply 0
Reply