background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 42 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

To easily provide power to a servo and connect it to the OC32, a separate compact 
connection module has been developed, the SP04. With the SP04 up to 4 servos can be 
connected in a close range. When you have more servos or have servos at different 
locations, multiple SP04 modules can be used. A separate manual for the SP04 is available. 
 

6.4.13

 

Pushbutton or switch (input) 

 

OC32 I/O Pin: Resistor array 

 
An OC32 Pin can also be used as input. This opens the possibility 
to control a Device, connected to the OC32, such as a railroad 
crossing, by means of a switch, pushbuttons or e.g. reed 
contacts, connected to one or multiple Pins of the same OC32. 
Also the activation or de-activation of pushbuttons and flipping a 
switch can be reported to the controlling PC, if the software on 
that PC’s supports this function.  
 
A pushbutton or switch is connected between OC32 Pin and GND. 
 

6.4.14

 

Input from another control system (input) 

 

OC32 I/O Pin: Resistor array 

 
Perhaps you want to control the OC32 from another system and you may do that by 
“hardwired interfaces”, so by connecting a number of individual wires. 
 
If ‘the other control system’ offers relay-outputs (potential-free contacts), the contacts of 
these relays are no different than the contacts of a pushbutton or switch. Therefore you 
can make the interface as described in paragraph 

 

6.4.13. Replace the shown 

pushbutton/switch by the make/break relay-contact. Make sure that via the relay-contact no 
other high or negative Voltage can reach the OC32 Pin. 
 
If your external system has electronically active outputs, then to interface successfully with 
the OC32, these outputs may in principle offer no higher voltage than 5V or any lower 
Voltage than 0V to the OC32. If the outputs supply more than 5V you can limit the Voltage 
delivered to the OC32 by means of a Voltage divider as shown in figure 40 below. The 
resistor Rs depends on the output-voltage of your external system and can be found with 
the help of Table 2. 
 
 
 
 
 
 
 
 
 
 
 
 
If your external system offers Open Collector (or Open Drain) outputs, the you can interface 
these directly to the OC32 Pin as per paragraph 

 

6.4.13. However it is mandatory that in 

this case both systems share the same GND/0V. If this is not the case, you can insert an 
intermediate relay or an optocoupler between both systems. 
 

Output Voltage (V) 

Rs (k

Ω

1,0 

7,5 

2,4 

3,9 

12 

6,8 

15 

10 

18 

12 

24 

18 

Q(x)

GND

Extern systeem

4k7

Rs

Fig 40: External system with Voltage conversion 

Table 2: Series resistor for Voltage Conversion 

Fig 39: Connecting Pushbutton 

Q(x)

GND

Control your Miniature World   

VPEB  

Manual OC32/NG 

2017 Leon van Perlo 

Version 1.0 – December 15

th

, 2017 

Page 7 of 48 

1

 

OC32 - Introduction 

 

1.1

 

A different approach 

 
The OC32 is an electronic module to control accessories in your Miniature World. The 
module has 32 I/O Pins who are universally usable. 
 
The major difference with “traditional electronics” is that in the traditional approach specific 
electronics is used for each device. For instance there are signal-decoders for signals, and 
even different types per signalling system, decoders for turnouts, illumination controllers for 
controlling lights in buildings and streets, etc. 
 
With the OC32 a different approach is taken. The module is so versatile that (almost) any 
device you find on a miniature world, from a simple light to a complex railway crossing, can 
be controlled by the O32. Therefore when applying the OC32 the necessary electronics is 
not calculated per function, but calculated per square meters. Depending on the number of 
controllable items per area the OC32’s are placed at “strategic locations”. Every item can 
be connected to the nearest OC32. By means of configuration it is determined how each 
device is controlled and from what system, e.g. a train-control system, car-control, 
day/night simulation or even completely autonomous by the OC32. 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

1.2

 

 Functions 

 

The OC32 software has extensive configuration possibilities. Those who have some basic 
knowledge of programming techniques can adapt the OC32 completely to their personal 
preferences. Those who do not (yet) have this knowledge choose the predefined 
configurations. With a few simple mouseclicks a group of outputs can be configured for e.g. 
a Dutch signal, German signal, a traffic light or railway crossing. 
  
The OC32 offers a great number of random-functions. With these functions fixed patterns 
can be avoided or interrupted and it is possible to generate surprising effects. Some 
examples are: 
 

 

Welding arc imitation, only one LED needed (e.g. to be used in your locomotive shed); 

 

Simulations of gas-lanterns with irregular lighting; 

 

Simulation of fluroscent lamps with traditional starters; 

 

Lighting of buildings with different or a slightly different switching pattern every night; 

 

Movement e.g. by means of a servomotor with random variations, e.g for a digging 
machine or crane; 

 

… 

 

Fig 1: OC32/NG 

Summary of Contents for OC32/NG

Page 1: ...r 15 th 2017 2017 Leon van Perlo This page is intentionally left blank Author Leon J A van Perlo Version 1 0 Date December 15 th 2017 OC32 NG Manual VPEBVan Perlo Elektronica Besturingstechniek VPEBVa...

Page 2: ...y information contained herein may not be copied or distributed in whole or in parts in whatever form without the explicit written approval of the original author The making of copies and prints by us...

Page 3: ...nctions since all functions are made in software and the OC32 and the OC32 NG run 100 identical software The OC32 NG however integrates the options previously offered by the OC32 DS32 combination and...

Page 4: ...rivers 500mA TBD62083 31 6 1 2 Source Drivers 500mA TBD62783 31 6 1 3 Sink and Source Drivers TBD62083 TBD62783 32 6 1 4 Resistor Array 5V outputs 32 6 1 5 OC32 ADM SI 4 8A power sink driver 33 6 1 6...

Page 5: ...array A resistor array is the preferred choice if the input port s are to be activated by a push button or the contacts of a relay A resistor array can also be used if the event input is to be activa...

Page 6: ...protocol is extremely simple just a few characters for a control command and control is unidirectional The OC32 can send command to the external Device but the external Device cannot send anything ba...

Page 7: ...ptocoupler between both systems Output Voltage V Rs k 6 1 0 7 5 2 4 9 3 9 12 6 8 15 10 18 12 24 18 Q x GND Extern systeem 4k7 Rs Fig 40 External system with Voltage conversion Table 2 Series resistor...

Page 8: ...the user So configuration needs to be done through one of the serial interfaces 1 The DCC Interface can also be added afterwards by the user All components needed are through hole so not SMD You need...

Page 9: ...y goes back into the idle position Take care some relays are polarity sensitive It is important to connect the right pole to Vp and to the OC32 output The power supplied by Vp needs to match the volta...

Page 10: ...anual OC32 NG 2017 Leon van Perlo Version 1 0 December 15 th 2017 Page 39 of 48 6 4 6 Decouplers OC32 I O Pin OC32 ADM SI 4 8A Sink Driver Solenoids may draw up to 1 5A or more That is too much for th...

Page 11: ...t SMD types also Fig 28 Connecting LEDs antiparallel in 5V mode Q x 1 Q x Q x 1 Q x Fig 29 Connecting LEDs antiparallel in 500mA mode Vp Rv Q x 1 Q x Rv Vp Rv Q x 1 Q x Rv Fig 30 LEDs on the barriers...

Page 12: ...n like decouplers turnout coils and motors Below you find a number of examples of devices to be found in the miniature world are presented 6 4 1 LED s with common anode OC32 I O Pin 500mA Sink Driver...

Page 13: ...Manual OC32 NG 2017 Leon van Perlo Version 1 0 December 15 th 2017 Page 13 of 48 Reset jumper Only used to start the bootloader RS485 Termination jumpers Power jumpers DCC Low pass jumper only with DC...

Page 14: ...wo power groups on the OC32 NG when using Sink Drivers the number of different power supplies is virtually unlimited The load is connected between the plus pole of the power supply and the output of t...

Page 15: ...is the GND of the communications port that your PC uses to control the layout The 0V GND as stated above of your miniature world has to be connected to the GND connection of the OC32 All points in fig...

Page 16: ...nterface is hardly ever needed it has been removed to protect the OC32 from unintended errors Control your Miniature World VPEB Manual OC32 NG 2017 Leon van Perlo Version 1 0 December 15 th 2017 Page...

Page 17: ...ex situations like 3 LEDs on the barrier of an automatic railroad crossing AHOB which are driven with two outputs and two wires Control your Miniature World VPEB Manual OC32 NG 2017 Leon van Perlo Ver...

Page 18: ...he examples of section 6 4 There is explained which driver you need for specific types of devices 6 1 1 Sink Drivers 500mA TBD62083 This is the default driver delivered with the OC32 NG module A load...

Page 19: ...nel Full H bridge When changing drivers please observe the following Remove and install drivers only when power is OFF Remove IC s carefully without excessively bending pins Install either regular dri...

Page 20: ...PC Table 1 below shows which settings of the dip switch correspond to which address For the record this is the standard numbering starting from 0 If your software starts numbering from 1 onwards you...

Page 21: ...extended addressing shall also be supported by your software When extended addressing used the address is no longer selected by the DIPswitches but instead by a configuration setting in the OC32 flash...

Page 22: ...connectors both the one on the OC32 and on the U485 have the same pin layout so pin 1 connects to 1 pin 2 to 2 and if applicable pin 3 to 3 The whole will look like the one below figure 12 Fig 11 Term...

Page 23: ...al converter is limited and therefore there may be a limitation to the number of modules you can connect this way Up to 10 units should normally work fine If you want to connect more modules than your...

Page 24: ...ultiple OC32 NG s Other options Of course you can combine options 1 and 2 as described above Since the two RJ45 s and the 3 pole connector are electrically connected effectively every OC32 NG can be u...

Reviews: