Connecting the Board to your Layout #
POWER #
Each duinoNode requires three power connections:
- V++, device power from 3.3 – 30 volts
- Vcc, +5v logic; +3.3 volts is OK
- GND, shared ground for both device and logic
V++ & Vcc can be tied to a single +5v feed from a power supply of suitable capacity. Multiple power supplies are supported but not required.
Tied Grounds #
The single most important requirement is that all grounds MUST be tied together. Specifically this means that the microcontroller ground MUST be tied to both logic and device ground.
This usually isn’t a problem IF the entire system is powered from one power supply, or powered using multiple power supplies whose grounds are tied together at the source.
However, when powering the microcontroller via USB or an independent, untied power supply (such as a wall wart), you MUST run a wire from microcontroller GND to GND of all other power supplies in use.
Grounding failure manifests as unpredictable, uncontrollable switching on the boards.
Logic #
LOGIC IN: Each duinoNode requires three logic connections at J2: CP (clock), LP (latch) & DI (data in).
LOGIC OUT: Each duinoNode offers three logic connections at J3 for the next downstream node in the group: CP (clock), LP (latch) & DO (data out).
All node-to-node data connections can be made with ordinary 3-wire servo extension cables.
Stacking #
In addition to chaining boards by wire, you can also stack up to 6 DNOU8 boards together to share the power and logic connections. Stacking is enabled by soldering in 6-pin headers (included with the board) and soldering jumpers on each board in the stack.
Successful stacking depends on setting the correct jumpers for each board to so that each board has uniquely assigned input and output pins.
On the board that will be on the bottom of the stack, solder just one jumper to direct output to a pin: we strongly recommend you select pins in numeric order, so solder the data out jumper at header pin 1.
On subsequent boards solder two jumpers: on the data in side, set the jumper for the pin corresponding to data out from below, then select the next pin for sending data up to the next board.
Following this pattern, you can mount up to 6 boards in a single stack.
Additional Notes about Stacking #
- All devices served by the stack use the same device power source; mixing device power voltages in a stack is not permitted.
- Connect power to the bottom board only; the power LEDS on the bottom board will light, but the LEDS on the boards above will not light even though the boards will be fully powered.
- The order of boards and ports is bottom to top, the same as if the boards were connected by wire instead of stacked.
- To connect to another downstream board or stack by wire, use the DATA OUT terminals on the TOP board of the stack.
Device Connections #
The output of duinoNodes is in Common Anode configuration. All switching is on the “sink” or ground side of the circuit via a transistor array. NJ International, among others, wire their model railroad signals, crossings and other devices in common anode configurations. Common anode devices will have a single lead for power and multiple ground leads. Connect anode leads to the V++ terminal, and individual grounds to each port. So long as current limits are not exceeded (500 mA total per board, up to 100% of that can be on any one active port), multiple devices can be connected to a single port.
While logic voltage VCC is 3.3v -5v DC, device power can be at a different voltage between 3.3 and 30 volts DC. You can use a single power supply that supports multiple voltages, like a Mean Well RD-125A, or multiple DC power supplies with their grounds tied together.
Connecting LEDS #
DNOU8 outputs have 470ohm resistors. If your device voltage is +12v or less, you can safely attach standard LEDs without additional resistors, unless you want to reduce brightness further. Today’s LEDS produce more lumens with less power than ever before. With most LEDS, +5v device power will give good low brightness results without requiring more resistors; try that first, before adding inline resistors.
Special Wiring Scenarios #
Common Cathode Devices #
A common cathode device will have a multiple anode leads and a single shared cathode (GND). You can switch the anodes with the DNOU8 by inserting a pnp transistor, such as a BC556, between an output port and each anode. Connect the Emitter to the power source, and the Collector to the anode. Connect a DNOU8 port to the Base lead. Now, when the DNOU8 port is activated, the transistor will allow power to flow to the anode.
Relay Modules #
The DNOU8 is compatible with off-the-shelf home automation relay modules, like the one shown below:
For model railroaders, these relay modules are a great way to implement polarity switching for reversing loops, turnout points, stall motor switch machines (like Circuitron Tortoise) and coil-type switch machines (Atlas, Kato, Peco, etc.)
These modules work with all +5v Arduinos, but using one or more DN0U8s you can control all of your relays using just the 3 pin connection required for duinoNodes. In fact, you can mix relay control with lighting and other applications on the same duinoNode chain.
You will need to fabricate a cable to connect the relay module to other devices. You can use a female pin header of appropriate size, then attach your cable to the exposed ends. From there, connections are straight forward as shown.