Modellbahn Digital Peter Starz BMMot User manual

Page 1 of 6
Modellbahn Digital Peter Stärz
Dresdener Str. 68 – D-02977 Hoyerswerda – +49 3571 404027 – www.firma-staerz.de – info@firma-staerz.de
8-fold Track Occupancy Detector
for three-wired track
for monitoring to Selectrix
®
BMMot
v2-2008
Degree of difficulty:
easy
medium
difficult
Necessary skills:
- Simple assembly and soldering procedure of the board
The Track Occupancy Detector BMMot is a device for monitor-
ing eight track blocks of a three-wired digitally controlled
model railway layout to monitor to the Selectrix bus system.
When used in combination with an accessory decoder, occu-
pancy information can be presented through a switchboard
type display.
Special Features
- Especially for three-wired track system to monitor to Selec-
trix
®
- Galvanic insulation of bus and track
- Suitable for connecting temporal contacts
- Response and dropout delay adjustable individually
Table of content
Special Features...........................................................................1
Technical specifications ................................................................2
Installation site..............................................................................2
Kit contents...................................................................................2
Update..........................................................................................2
Maintenance and care...................................................................2
Accessory and expendabilities......................................................2
Assembly instruction.....................................................................3
Component layout diagram on the PCB.................................... 3
Populated PCB......................................................................... 3
Description of operation ................................................................4
Operating principle of the occupancy detection module............ 4
Bringing into service ................................................................. 4
Connection scheme ......................................................................4
Parameters and Programming ......................................................4
Overview of parameters............................................................ 4
Extended options...................................................................... 5
Factory default settings............................................................. 5
Programming parameters e.g. with the Control Panel SPF-PIC 6

Page 2 of 6
Technical specifications
Size
84mm x 64mm x 30mm
Power Supply
The module is powered by the SX-Bus.
Power consumption: max. 10mA
Connectors
2x SX-Bus jacks
2x terminals for common track current (2x red to connect to cen-
tral unit or booster)
8x terminals for 8 track blocks (1 to 8)
Switch/Display
Push button and a status LED to switch to programming mode
Plugging to SX-Bus
The module is connected to the SX-data-bus via an (optional) SX-
bus cable.
The module must never be connected to the Selectrix-Power-Bus
(PX-bus)!
Bus cables may only be plugged or unplugged at power down of
the model railway layout.
Assembly notes
The module is assembled following the instructions on the next
page. For soldering the components on the PCB a soldering iron of
12 to 25 Watts or a soldering station with the temperate set to
approx. 400°C is needed together with 0.5 or 1.0 mm soldering
wire with rosin flux. No special tools are required. Do not use
soldering flux! Pay attention to solder speedy to avoid device
damage by overheating.
Non-Use
When the module is not used it should be stored at a dry and clean
place.
The Instruction
The full content of the instruction is important. Very important
information is marked in colours; critical information is highlighted
in red.
Installation site
The module should be located in a dry, ventilated and clean
area being easily accessible and lying beside or next to the
model railway layout.
The module must be kept free of coarse dirt or electro conductive
parts falling down.
The module may be arranged without a housing needed. In that
case the module shall be put on an insulating sub floor by means
of the plastic spacer rings and screws delivered.
Keep all electro conductive tools, assembly kits and cables away
from the module during operation.
A negligently and by external circumstances caused short-circuit
(impinging on the module from above or from the bottom) may
destroy the module. If that happens, all terms of warranty will
become invalid.
Kit contents
Please first verify that the kit contains all the components listed
below.
General parts:
1x circuit board
1x LED (red)
1x push button
1x voltage regulator78L05
1x resistor network 22kOhm
1x resistor network 6k8Ohm
8x optocoupler SFH628A
4x screws
4x spacer rings
1x SX-Bus cable (optional)
Connectors:
2x SX jacks
1x Terminal clamps 10-pin (5mm pitch)
ICs:
1x 14-pin IC socket
1x 74HC257
1x PIC „BM“
Capacitors (Marking):
2x ceramic 100nF (104Z)
2x electrolytic 47µF
Resistors (Marking):
2x 100Ohm (brown, black, black, black, brown)
2x 22kOhm (red, red, black, red, brown)
2x 680Ohm (blue, grey, black, black, brown)
Update
The heart of the module is a PIC that stores the software. A socket
for the PIC provides easy access for the purpose of any software
update.
Never use other PICs than those dedicated to this module. Disre-
garding may lead to destruction of the module and all term of
warranty will become invalid.
Maintenance and care
Dust clumping together can, in combination with condensating
liquids, become conductive and deteriorate the functionality of the
module. It is therefore important to remove dust regularly by blow-
ing it off or vacuuming the module.
CAUTION: A liquid cleaning of the part is prohibited!
Accessory and expendabilities
The following equipment is available:
Housing:
- Housing for BMMot: G 523 B Art. 177
Please also visit our FAQ page at www.firma-staerz.de for any
question first.

Page 3 of 6
Assembly instruction
Assemble the kit in the order of these instructions. All components
are placed on the top side of the PCB (marked “top”) as close to
the PCB as possible and soldered on the bottom side of the PCB
(marked “Bottom”). Use a bending tool (e.g. Conrad 425869 – 62)
for bending. Cut the leads of components flush using a wire cutter
after soldering.
Solder cleanly and precisely!
1. Resistors
Bend the resistor leads for 7.5 mm pitch before insertion. To facili-
tate placing components on the PCB support the edges of the
board with the help of two books, for instance, to leave enough
space for the leads under the board. Insert the resistors on board
aligning the coloured rings of all the resistors in the same way to
make it easier to verify the value of the resistors later. Place a
suitable plane piece of wood or similar on top of the resistors on
board. Turn the board together with the wood upside down. The
underside of the board is now conveniently accessible for solder-
ing the components.
Solder one end of each resistor first and check that they are posi-
tioned properly before soldering the other end of each resistor.
R1, R2: 22kOhm (red, red, black, red, brown)
R4, R5: 100Ohm (brown, black, black, black, brown)
R3, R6: 680Ohm (blue, grey, black, black, brown)
2. Optocouplers
Observe the polarity: The orientation notch of the component must
be aligned with the one printed on the circuit board. In case of
optocouplers being marked otherwise, the designation must show
to the track terminal blocks.
OK1-OK8: SFH628A
3. Socket for PIC, ICs
Place and solder the PIC socket and ICs with the notches accord-
ing to the component layout diagram on the PCB.
IC1: Socket for PIC
IC2: 74HC257
IC6: not populated
4. Push button S1
Place and solder the push button accordingly.
5. Resistor network
Place the resistor networks according to their marking: the marking
has to face to the track terminals.
RN1: 22kOhm (9x-1-223)
RN2, RN3: 6,8kOhm (9x-1-682)
6. LED
The cathode of the LED is to be placed to face the terminals. The
shorter lead of the LED is the cathode and the collar is also flat on
the cathode side.
7. Ceramic capacitors
C1, C2: 100nF (104)
8. Voltage regulator
IC3: 78L05
9. Terminal blocks
X1: 10-pin terminal
10. Electrolytic capacitors, Watch polarity!
Capacitors are mounted the minus side to face the PCB edge.
C3, C4: 47µF
11. SX-bus jacks
Solder the shielding (big pads) of the jacks generously.
12. Verification and mounting the PIC
After soldering all components on the PCB verify once more that
they are placed according component layout diagram and that they
are oriented properly. Check that all solder points on the bottom
side of the PCB look correct. Note especially if there are any un-
desired solder bridges between solder pads.
After the verification the PIC can be mounted:
IC1: PIC „BM“
Component layout diagram on the PCB
Populated PCB

Page 4 of 6
Description of operation
Operating principle of the occupancy detection module
The Occupancy Detector surveys if a there is a contact between
the left and the right track. This contact is created by rolling mate-
rial (locomotive or car) with conducting axles. Three-wire track
conform rolling material is thus required.
Alternatively temporal contacts can be used to make this contact.
The Occupancy Detector constantly checks if on any of the 8 track
blocks such a contact is established and the corresponding ad-
dress bits in the SX-bus is set and the information is available for
the system central unit. Another system device configured for the
same address (e.g. an accessory decoder) can read and display
the status of the 8 track blocks automatically.
Bringing into service
The address of the occupancy detector BMMOT, response delay
and dropout delay as well as additional parameters (options) are
programmed through the SX bus. In order to do so, a controller,
e.g. a central unit ZS1, a controller unit SPF-PIC or a (bus)-
interface with corresponding computer programme are required.
After plugging occupancy detector BMMOT to the SX bus these
parameters can be set.
During programming of the occupancy detector BMMOT the bus
addresses 0 to 3 will be used temporarily. That means during
programming the contents of these addresses will be changed.
Connection scheme
booster range 1: central unit
double sided insulation
track 1 to ...
booster range 2
further tracks
SX0 SX0 SX1 SX1
PX MX MX RS232
SW2 SW1
2
1
PL2
Selectrix central unit,
e.g. central unit ZS1
R
e
d
B
r
o
w
n
3-wire-track
booster
R
e
d
B
r
o
w
n
3-wire-track
central unit
occupancy
detector
BMMot
occupancy
detector
BMMot
one-sided insulation
Parameters and Programming
Programming
By programming the address of this module and all further pa-
rameters are set. Here all parameters are explained. Refer to the
last page of these instructions for an example for the programming
procedure.
Convention Bit and Key
In information technology “Bit 0” to “Bit 7” is common.
For model railroaders a numbering of “bit 1” to “bit 8” is much more
convenient, as “Bit 1” becomes equal to “Key 1” or “position 1”.
This convention is used in these instructions.
Overview of parameters
Address 0:Address of this module 1 to 103 / 111 (90)
see table of addresses
Address 1:Response delay 1 to 254 (8)
In steps of 10, 20, 40 or 80 milliseconds
Address 2:Dropout delay 1 to 254 (50)
In steps of 10, 20, 40 or 80 milliseconds
Address 3:Extended options
Occupancy or Free detection
Cycle length of response and dropout delay
Address of this module
The address of this module can be set to any value in the range
from 1 to 111. Note that at certain central units addresses 104 to
111 are reserved for internal purposes during operation and should
thus not be used.
Also, addresses 0 to 3 are often used for programming parameters
of modules. Therefore these addresses should also not be used.
Response and dropout delay
Response delay is defined as the time between the actual detec-
tion of an occupied rail and its reporting to the Selectrix bus.
Similarly the dropout delay is defined as the time between detect-
ing a free rail and reporting to the Selectrix bus.
Both delays can be set to values between 0,01 and 20 seconds in
steps of 10, 20, 40 or 80 milliseconds, (Cycle length for re-
sponse and dropout delay).
Depending on the sensitivity of the model railway layout (rail con-
tacts of rolling material, wiring) different values can avoid flickering
or faulty ghost detection reports.
The response/dropout delay is calculated from the sum of the
values of each position (bit) (1 up to 255), multiplied by the
Cycle length for response and dropout delay (10 milliseconds per
default):
Key 1 2 3 4 5 6 7 8
Value 1 2 4 8 16 32 64 128
Time [s] 0,01 0,02 0,04 0,08 0,16 0,32 0,64 1,28
In the following some examples (Seconds {cycle length}):
Key 1 2 3 4 5 6 7 8
Value 1 2 4 8 16 32 64 128
0,4 {10} - - - / - / - -
0,8 {20} - - - / - / - -
4,0 {40} - - / - - / / -
16 {80} - - - / - - / /

Page 5 of 6
Extended options
Option occupancy or free detection
Most occupancy detectors signal an occupied track block status by
the bit value On and a block free status by Off.
The occupancy detector BMMot allows to invert occupancy detec-
tion into a free detection.
The option occupancy or free detection defines the convention of
how occupancy or free information is coded:
Key 5 Occupancy or free detection
Off Occupied = On, Free = Off
On Occupied = Off, Free = On
For instance when using accessory decoders set to the same
address as the occupancy detector with free detection track sig-
nals will have to be connected in the way signalling halt when the
corresponding accessory decoder output is off.
Option cycle length for response and dropout delay
Normally the cycle length for response and dropout delay is set to
10 milliseconds. The maximum delay to be set with this cycle
length is thus 2,54 seconds.
For some automatic control functions it might be useful to increase
the dropout delay (the time a track is still signalised to be occupied
although the train already left the track).
Key 6 Key 7 Cycle length
Off Off 10 ms
Off On 20 ms
On Off 40 ms
On On 80 ms
Doing so allows increasing response and dropout delay up to 20
seconds.
The cycle length is used in common for response and dropout
delay.
Factory default settings
Address of this module: 90
Response delay: 8 (= 0,08 sec.)
Dropout delay: 50 (= 0,5 sec.)
Occupancy or free detection: Off (= Occupied)
Cycle length: Off, Off (= 10 ms)
If the address of this module is set to a value greater than 111, it
will be reset to the factory default setting (90).
Setting the address of this module to the value of 255 will reset all
parameters to their factory default settings.
Revert back to previous settings
Entering 0 as address, response or dropout delay reverts the
corresponding value to its previously programmed one.

Page 6 of 6
Programming parameters e.g. with the Control Panel SPF-PIC
Preparations for Programming:
To be able to programme the parameters, the occupancy detector
BMMOT is required to be connected to a central unit via the SX-
bus cable.
Enter programming mode:
Set the central unit to STOP mode by pressing the “ZE“-key
(ZE aus).
Press the programme button S1 of the occupancy detector.
The module’s LED activates to indicate programming mode.
Remark: Activate decimal decoding in the Control Panel to facili-
tate decimal conversion.
Enter the address of the occupancy detector:
Select address 00 in Control Panel.
Enter switching mode by key “Adr“ and
enter 0, 0. The current address of the oc-
cupancy decoder is displayed, e.g. ad-
dress 90:
Adr -/-//-/-=090
000 12345678 aus
Enter new address of this module
e.g. address 34 with keys 2 and 6: Adr -/---/--=034
000 12345678 aus
Enter response delay:
Select address 01 in Control Panel.
Enter switching mode by key “
Adr“ and
enter 0, 1. The current response delay is
displayed, e.g. 0,44 seconds (with a cy-
cle length setting of 10 milliseconds):
Adr --//-/--=044
001 12345678 aus
Enter new response delay
e.g. 0,08
seconds (with a cycle length of
40 milliseconds to be se
t later on) with
key 2:
Adr -/------=002
001 12345678 aus
Enter dropout delay:
Select address 02 in Control Panel.
Enter switching mode by key “Adr“ and
enter 0, 2. The current dropout delay is
displayed, e.g. 0,05 seconds (with a cy-
cle length setting of 10 milliseconds):
Adr /-/-----=005
002 12345678 aus
Enter new dropout delay
e.g. 3,2 seconds (with a cycle length of
40 milliseconds to be set later) with key
5
and 7:
Adr ----/-/-=080
002 12345678 aus
Enter the options:
Enter address 03 in Control Panel.
Select switching mode by key “Adr“ and
enter 0, 3. The current options are dis-
played, e.g.:
Adr /-//----=013
003 12345678 aus
Position 5 = occupied = On, free = Off
Position 6 and 7 = cycle length for delays: 10ms
Enter new options
e.g. keys 2, 4, 5 and 6: Adr ----//--=048
003 12345678 aus
Position 5 = occupied = Off, free = On
Position 6 and 7 = cycle length for delays: 40ms
Exit programming mode:
Press the programme button of the occupancy detector or
enable track current by pressing “ZE” at the central unit or
Control Panel. The LED of the occupancy detector will blink
twice for confirmation.
All parameters programmed via the addresses 0 to 3 have been
stored in the registers of the occupancy detector BMMOT.
Address table
Bit:
1 2 3 4 5 6 7 8
Value:
1 2 4 8 16 32 64 128
Address
0
- - - - - - - -
1
/ - - - - - - -
2
- / - - - - - -
3
/ / - - - - - -
4
- - / - - - - -
5
/ - / - - - - -
6
- / / - - - - -
7
/ / / - - - - -
8
- - - / - - - -
9
/ - - / - - - -
10
- / - / - - - -
11
/ / - / - - - -
12
- - / / - - - -
13
/ - / / - - - -
14
- / / / - - - -
15
/ / / / - - - -
16
- - - - / - - -
17
/ - - - / - - -
18
- / - - / - - -
19
/ / - - / - - -
20
- - / - / - - -
21
/ - / - / - - -
22
- / / - / - - -
23
/ / / - / - - -
24
- - - / / - - -
25
/ - - / / - - -
26
- / - / / - - -
27
/ / - / / - - -
28
- - / / / - - -
29
/ - / / / - - -
30
- / / / / - - -
31
/ / / / / - - -
32
- - - - - / - -
33
/ - - - - / - -
34
- / - - - / - -
35
/ / - - - / - -
36
- - / - - / - -
37
/ - / - - / - -
38
- / / - - / - -
39
/ / / - - / - -
Bit:
1 2 3 4 5 6 7 8
Value:
1 2 4 8 16 32 64 128
Address
40
- - - / - / - -
41
/ - - / - / - -
42
- / - / - / - -
43
/ / - / - / - -
44
- - / / - / - -
45
/ - / / - / - -
46
- / / / - / - -
47
/ / / / - / - -
48
- - - - / / - -
49
/ - - - / / - -
50
- / - - / / - -
51
/ / - - / / - -
52
- - / - / / - -
53
/ - / - / / - -
54
- / / - / / - -
55
/ / / - / / - -
56
- - - / / / - -
57
/ - - / / / - -
58
- / - / / / - -
59
/ / - / / / - -
60
- - / / / / - -
61
/ - / / / / - -
62
- / / / / / - -
63
/ / / / / / - -
64
- - - - - - / -
65
/ - - - - - / -
66
- / - - - - / -
67
/ / - - - - / -
68
- - / - - - / -
69
/ - / - - - / -
70
- / / - - - / -
71
/ / / - - - / -
72
- - - / - - / -
73
/ - - / - - / -
74
- / - / - - / -
75
/ / - / - - / -
76
- - / / - - / -
77
/ - / / - - / -
78
- / / / - - / -
79
/ / / / - - / -
Bit:
1 2 3 4 5 6 7 8
Value:
1 2 4 8 16 32 64 128
Address
80
- - - - / - / -
81
/ - - - / - / -
82
- / - - / - / -
83
/ / - - / - / -
84
- - / - / - / -
85
/ - / - / - / -
86
- / / - / - / -
87
/ / / - / - / -
88
- - - / / - / -
89
/ - - / / - / -
(**) 90
- / - / / - / -
91
/ / - / / - / -
92
- - / / / - / -
93
/ - / / / - / -
94
- / / / / - / -
95
/ / / / / - / -
96
- - - - - / / -
97
/ - - - - / / -
98
- / - - - / / -
99
/ / - - - / / -
100
- - / - - / / -
101
/ - / - - / / -
102
- / / - - / / -
103
/ / / - - / / -
(*) 104
- - - / - / / -
(*) 105
/ - - / - / / -
(*) 106
- / - / - / / -
(*) 107
/ / - / - / / -
(*) 108
- - / / - / / -
(*) 109
/ - / / - / / -
(*) 110
- / / / - / / -
(*) 111
/ / / / - / / -
(**) Factory default setting
(*) Those addresses are available with restrictions.
Consult the remarks in the instructions of the central
unit or SX bus extension uses.
All brands and trademarks are property of their respective owners.
Modellbahn Digital Peter Stärz, Dresdener Str. 68, D-02977 Hoyerswerda
Illustrations and technical data are subject to change. We are not responsible for printing or typographical errors. Printable version of 24.11.2012
Table of contents