Now that we installed the Windows software (see previous video) and uploaded the MARDEC sketch to a DCCnext or to an Arduino, we can start to configure the 16 available ports to do what we want them to do.
The video shows an example of how to configure an on/off accessory on port 1 that switches via DCC address 8.
The next vodeo will show a double flashing light and control of a solenoid junction with a double one shot.
Read on below the video …
MARDEC has two modes of operation:
- Configuration mode is where we enter commands to match output ports with DCC addresses and enter all the parameters needed with that output, like the accessory type or the servo min/max angles. The Arduino is connected to our PC or laptop via USB. When we enter the E (Exit) command , we switch to normal mode.
- Normal operation mode is where the output ports are controlled via DCC addresses. USB connection is not needed in this mode. If we want to change the configuration we can reconnect USB and enter the C (Config) command to switch to config mode.
To configure a port as an accessory, follow these steps:
- If in Normal mode, type C to enter Config mode
- Type P and enter the port number we connected the accessory to
- Enter the DCC address we want this accessory to have
- Type 1 to make this port an Accessory
- Type M and enter the mode we want this port to have (see list below)
- Enter additional parameters if asked
- Type Enter to exit and store this port configuration
- Type P to configure another port, or …
- Type E to exit config mode and enter normal DCC operation mode
The following accessory modes are available:
- steady on / off, single port
- steady on / off, with an inverted buddy port
- one shot pulse, single port
- one shot pulse, with a buddy port, e.g. to switch solenoid junctions
- flash with separate on- and off times, single port
- flash, with an inverted buddy port
- PWM (analog) output, with a fade in and fade out
- flicker (uses PWM)
- random flash (seconds)
- random flash (milliseconds)
— 0 —
Discussion
No comments yet.