Further details, as promised -
A DCC Block Detector using the ZMCT103C Current Transformer
This DCC block detector is designed around the ZMCT103C 1000:1 current transformer, which is readily available at low cost from a wide selection of Chinese suppliers, rather than the more expensive 300:1 transformer, such as used in the NCE BD20 unit, especially as these transformers have recently become more difficult to source.
The assembled module and its printed-circuit board (PCB) are shown below –
The PCB is available from OSH Park, a small company located in Lake Oswego, Oregon, via this link – AT-DCCBlockDetect-4. They will supply three PCBs for US$4.75 including free shipping to any destination worldwide.
If you then want to order a set of PCBs (in multiples of 3) click the button labelled Order Board, enter your e-mail address, name, and a password of your choice to establish an account with OSH Park, then follow their ordering process. You can pay either with a credit card or via PayPal. Your boards will be manufactured and delivered within two or three weeks depending on where you are in the world. If you prefer to use an alternative PCB supplier then, instead of clicking Order Board, just click on Download to download a copy of the DCC Block Detect PCB file in Eagle board (.brd) format which you can then send off to your preferred supplier. Where the supplier cannot accept a file in Eagle .brd format, a copy of the PCB Gerber files can be downloaded from my own website at https://www.a-train-systems.co.uk/download_files/AT-DCCBlockDetect-4-Gerber.zip.
Please note that neither A-Train Systems nor myself have any connection with OSH Park other than as a very satisfied customer of their services.
The parts required to build one DCC Block Detect module are listed in the table below –
Part | Reference | Quantity | Value |
---|
Terminal Block, 2.54mm pitch, 3-Way | X1 | 1 | |
Capacitor, Polyester, 63Volt | C1 | 1 | 10nF (0.01uF) |
Capacitor, Polyester, 63Volt | C2 | 1 | 470nF (0.47uF) |
Current Transformer (1000 turns) | CT1 | 1 | ZMCT103C |
Diode | D1 – D4 | 4 | 1N4148 |
Zener Diode | D5 | 1 | BZX55-C5V6 |
Transistor, General Purpose NPN | Q1, Q2 | 2 | 2N3904 |
Resistor, Metal Film, 0.25Watt | R1 | 1 | 1M (1 Megohm) |
Resistor, Metal Film, 0.25Watt | R2 | 1 | 470R (470 ohm) |
Notes :
- The terminal block is an optional part. You can solder wires direct to the PCB instead of using screw terminals. Note that the centre connection (X1-2) is Ground, and that the Block Detect output can be taken from either of the two outer connections (X1-1 or X1-3).
- Suggested suppliers for the parts listed above are RS Components or Farnell for users in the UK, or Newark for users in the USA (part of the same company as Farnell). Mouser or Digikey are alternative sources in the USA, although their prices tend to be a little higher than Newark.
- The total cost of parts for a single DCC Block Detect module should be less than US$3.00, and even less if you omit the terminal block, plus the additional US$1.59 for the PCB.
For those interested, a brief technical description of the block detector design is given below.
Because the higher transformer ratio reduces the current coupled into the detector, more sensitive detection circuitry is required compared to that used in the NCE BD20, for example, (while still being kept as simple as possible), and the final operational design is shown below –
The small alternating input current, coupled from the DCC track feeder by current transformer CT1, is fed into a full-wave rectifier comprising diodes D1 – D4. The resultant direct current, smoothed by capacitor C1, then develops a voltage across resistor R1.
When the DCC current through the track feeder rises, due to the associated track block being occupied, the detector input current rises in proportion and develops a voltage across resistor R1. Zener diode D5 limits any voltage rise to a maximum of 5.6 volts to protect the other detector components.
As soon as the voltage across R1 reaches around 1.4 volts, any additional input current will flow through resistor R2 and switch on transistors Q1 and Q2. When the Block Detect output (terminals X1-1 and X1-3) is connected to a microprocessor input (such as those of an Arduino module or the PIC microcontroller on an NCE Auxiliary Input Unit) these transistors, connected in a high-gain (Darlington) configuration, will draw sufficient current to pull that input to ground (GND or 0 Volts), providing a signal that the track block is occupied. Capacitor C2 provides additional smoothing of the output signal and protects the attached microprocessor input from any damaging voltage spikes.
Note that the block detector cannot sink enough current to light an LED on its own – any such indication needs to be done separately by the attached microprocessor or additional circuitry.