Goto DCC conversion using Digitrax DS54 + BD4 (or BD1) --- 2005/12
DS54によるDCC改造、DS54の使いかた。
Goto DCC conversion using a programmed PIC16F84A (Microchip) --- 2006/1 New !
PIC回路によるDCC改造、信号機制御への改造ヒント。



Main Control Unit powered by stabilizied DC12V power supply. With an adjustable sound volume.

以下の改造作業は単純ですが、 色灯信号機よりは仕掛けが細かいので少し難しいです。 改造ミスで壊す?と思ったら無理せずに中止しましょう。 メーカーは製品仕様を変えるかも知れないので、 無論、私は責任持てません。
説明書のとおりちゃんと接続すると、調整不要で動作します。 警報の音量調節はコントローラーのダイヤルにて可能。 カーンカーンのピッチがやや早くて少し気せわしい? 遮断機の動きはスロー気味で好印象。外観も立派で好印象。
次写真のとおり、金属を近付けるとセンサー反応する。指でも反応する。
---- Static Capacitance Sensor (non-contact sensor)
Any material is charged by static electrons. This sensor under the track can detect the charged material, such as modeltrain and also finger.


列車位置検出センサーは非接触式の静電容量センサーです。 普通の物質というものは静電気を帯びています。 そのような物質どうしが近接すると、それらは 電極となりコンデンサーを形成します。静電容量センサーは このコンデンサー容量を測定し変動を検知します。 接触しなくてもセンサー反応するところがミソ。
つまり、静電容量センサーに何らかの物質が近付くとセンサーが 反応します。とは言うものの、正直言って、そんなデリケートな物理量が ほんまに測れるの??? 実際にやってみると、確かに 金属(車輪など)は反応しますが、人体(手)を近付けても反応するようです。 うーん、こんないい加減で大丈夫かね? とは言え、 もともとセンサー近辺に反応しやすいものが無ければ まあまあ安定して動作しますネ。なるほどねえ。
さらに、走行方向はレール電圧極性でモニターしてます(DCCでは これが無効なのが難点)。
------ Original operation pattern :
The operation is smooth. The stop bars smoothly go up and down. Warning sound is generated and red LEDs intermittently blink. However, if the train is very long, the operation may rarely fail. At the time, the operation is hold even after the train left. I must reset the control unit. The sensor seems to be stable in the operation. Rather, there may be a bug (algolizm) in the main control unit.
動作パターンは説明書やカタログに記載のとおりで、 列車が踏切を通過したとたんに踏切動作停止します。これはリアル。 さらに、列車がセンサー区間に進入して、停止し、 逆走してセンサー区間を脱出しても正常に動作するようです。 つまり、かなり変則的な列車の動きでも自動制御されます。
しかし、とても異常な場合、例えば、長編成列車(途中に検知不能車が入っている) とか団子運転で二列車が進入する場合などは 誤作動(動作しないとか、動作しっぱなし)することもあるようです。 凝ったセンサー付けてるわりに、仕掛けとしての「まとめ方」は御粗末やね。 いかなる場合でも、列車がセンサー区間に進入したら踏切動作開始し、 センサー区間から脱出したら踏切動作停止、、、これ絶対基本ルールしょっ?。


Photo 0 : Add the red line (= on/off switch) explained later, so that You can manually operate the crossing gate.
手描き赤線(on/off switch)は後述。
In order to check how the cable wires work, firstly measure the voltage between those wires. The wires are colored by black, white and gray in my case.
For the purpose, cut a cable connected between the sensor unit and crossing gate unit. Then, connect the cable to the crossing gate unit. When the crossing gate control unit turns on, the voltage between white(-) and gray(+) should be about 9V, and the voltage between white(-) and black(+) should be about 0V. Hence, the white may mean 0V (GND). For these voltage measurements, see Photos 1 and 2 shown below.
Next, connect the cable to another (non-cut) sensor. Open the sensor cover to measure the voltage. See Photo 3 shown below. When the sensor is activated by a train (i.e. any charged material), the voltage between the black(+) and white(-) will show about 9V. While, when it is not activated, it will show 0V. Hence, it works as an output signal of the sensor. Black wire is the power supply line for the sensor unit.
If so, connect the cut cable to the crossing gate unit, again. Then, electrically shorten the gray and black wires (See Photo 0). At the time, the crossing gate and warning sound start to operate.
Now, you can manually operate the crossing gate by the on/off switch shown in Photo 0.
------ 改造の準備(電圧測定)
この静電容量センサーはよくできてますが、ここでは使いません。
センサー動作をon/offリレーで置き換えます。
そのために、まず、センサーケーブルの働きを調べましょう。
センサーケーブルは灰、白、黒の三本です(上写真)。
踏切本体からセンサーまでのケーブルを途中で切断します。
メイン装置の電源を入れておいて、踏切本体側の
ケーブルの灰(+)と白(-)の間の電圧を測定します。
約9Vのはずです。さらに黒(+)と白(-)だと0Vのはず。
その様子は次の2枚の写真。

Photo 1: Gray is red probe (about +9V) and white is black probe (0V,GND).

Photo 2: Black is red probe (about +0V) and white is black probe (0V,GND).
注意!!! うっかり間違って、黒白をショートさせるとセンサー昇天するし、 灰白をショートさせると電源が昇天しますよ!!! それと、静電センサーの金属板にも触れない方がよい。

Photo 3 : Be careful. The terminal clearance is very narrow. Don't shorten those terminals. Also, don't touch the square metal plate mounted on the sensor unit.

Sensor unit.
要するに、白をコモンGNDとして、(私の購入したものは) 灰が電源入力、黒がセンサー出力として機能しています。ただし、 ケーブルの色がみなさんの踏切装置と全く同じとは限らない( 製品ロットにより違うかも??)ので、 動作テストの前に、各自で上述のこれらケーブル電圧を確かめてください。
------ Modification of the circuit board.
Open the cover of the central unit (track part) of the crossing gate.
You can find the sensor unit on the circuit board.
Firstly, remove two small contact pins shown in the next photo
to isolate the circuit board from the rails.

In the black connector mounted on the side edge of the circuit board, connect additional wires to the 1st, 6th and 7th pins, as shown in the next photo. Confirm that these three pins go to the sensor circuit on the circuit board. Measure the voltage between these three pins in afore-mentioned manner. So, you can find how the cables work when the sensor is actiavted. In my case, the 1st pin is black cable, The 6th and 7th pins are respectively gray and white.
Cut the three wires printed on the circuit board, which go to the sensor circuit from the main control circuit. (two white lines marked in the next photo). Then, when the black and gray are electrically shorten, the crossing gate starts to work (See Photo 0). You can attach an on/off-switch to electrically shorten them.

Next, re-assemble the track unit.

The layout of the additional wiring is shown in the next photo.

When you reassemble, check the direction of the cover and hence the connecting direction to the next circuit board.

Application of DS54 for Level Crossing Gate.
ここまでくればしめたもの。 要するに、踏切レール部分のセンサーに向かっていた灰、黒 ケーブルをリレーまたはスイッチにつないでon/off制御します。
つづきは、DS54によるDCC改造、DS54の使いかた。へどうぞ
Application of PIC16F84A for level crossing gate control.
Faller HO Level-crossing gate 踏みきり自動制御 はこちら。