background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 12 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

3

 

Overview 

 
3.1

 

Interfaces and functions 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 
 
 
 
 
 

Fig 5: OC32/NG overview interfaces and functions 

 
On the OC32/NG the following interfaces and functions can be found: 

Interfaces: 

 

I/O Pins: Two 20-pole connectors (K5A, K5B) accommodate four 10-pin plugs for 32 I/O 
Pins and power supplies/GND; 

 

RS485 interface, two RJ45 sockets (K2A, K2B) and one 3-pole socket (K2); 

 

DCC interface (K3) (optional); 

 

Event input interface (K4) (optional); 

 

Four pole connector for power supply and RS232 interface (K1);

 

 

Serial Accessory Port: The connection to control special serial devices; 

 
On the PCB: 

 

4 pairs of IC-sockets for driver-ICs. Each group of 8 outputs has one socket for a 
Source Driver and one for a Sink Driver; 

 

4 pairs of sockets for Add-on Driver Modules (ADM’s). ADM’s can be used instead of 
driver-ICs to increase output power and for additional functions; 

 

Indicator LEDs, orange and green; 

 

DIPswitch: A dipswitch with six positions to select the address of the module; 

LED Green

LED Orange

Reset jumper

RS485

interface

RS232

interface

Power

Serial Address
Selection

I/O
Pins

Sink 0..7

Source 0..7

Sink 16..23

Source 16..23

Sink 8..15

Source 8..15

Sink 24..31

Source 24..31

RS485 Termination

Power Jumper 16..31

DCC Interface

Event

Inputs

Serial Accessory Port

RS485

interface

DCC Low-

Pass Filter

ETI Opto

ADM Sockets

Power Jumper 0..15

K2A

K2B

K1

K2

K3

K4

K5A

K5B

LED Green

LED Orange

Reset jumper

RS485

interface

RS232

interface

Power

Serial Address
Selection

I/O
Pins

Sink 0..7

Source 0..7

Sink 16..23

Source 16..23

Sink 8..15

Source 8..15

Sink 24..31

Source 24..31

RS485 Termination

Power Jumper 16..31

DCC Interface

Event

Inputs

Serial Accessory Port

RS485

interface

DCC Low-

Pass Filter

ETI Opto

ADM Sockets

Power Jumper 0..15

K2A

K2B

K1

K2

K3

K4

K5A

K5B

Control your Miniature World   

VPEB  

Manual OC32/NG 

2017 Leon van Perlo 

Version 1.0 – December 15

th

, 2017 

Page 37 of 48 

6.4

 

Example-connections 

 
Provided the required voltages and currents are within the limits of the OC32 it can drive all 
devices you may encounter. Most parts like incandescent bulbs, LEDs and relays can be 
connected directly. With some simple extra components other things can be driven 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 

 
Connect the common connection to the positive power 
terminal (Vp = pin 28/29 of K5). Connect the cathodes 
of the separate LEDs via a resistor to the output of 
the OC32. 
When only one LED is lit simultaneously (like with NS 3 
color signals or block signals), the resistor can be in 
the common lead and the cathodes of the LEDs are 
connected directly to the output of the OC32. 
 
The value of the resistor depends on the voltage (Vp), the current required by the LED and 
how bright you want the LED to shine. In case of ready built signals (for example Viessmann) 
those resistors are incorporated and the voltage is prescribed. In our opinion the 1,2k

 

applied by Viessmann at 14..16V results in to much light, especially when the surroundings 
are in the dark. With this value of the resistor and the built-in LEDs the result is much more 
attractive at a voltage level of 9..10V. With 14V a resistor of 1,8k

 or 2,2k

 can do the 

trick. 
Just experiment at day and night time before installing things definitively or use an 
adjustable power supply 
 
When more than one LED has to be connected to one output, connect the LEDs in series if 
possible. Otherwise provide each LED with its own resistor and connect several LED and 
resistor combinations in parallel. 
 

6.4.2

 

LED’s with common cathode (-) 

 

OC32 I/O Pin: Resistor-array 

 
Connect the common lead to the GND/0V. Connect the 
anode of the individual LEDs to the outputs of the 
OC32. A resistor is not required because it is in the 
OC32. Use a resistor array with a value of 220

. Low-

current LEDs being used a higher value of the resistor 
array has to be applied. 
 

6.4.3

 

Incandescent Bulbs 

 

OC32 I/O Pin: 500mA Sink Driver 

 
Bulbs have to be connected between the positive 
voltage (Vp) and the OC32 outputs. A resistor is not 
needed. The voltage (Vp) has to match the voltage 
required by the lamp. Having more individual bulbs in 
the same casing (e.g. a signal) the common lead has to 
be connected to Vp and the individual connections to 
outputs of the OC32. If bulbs have to be switched 

Fig 25: Connecting LEDs common.Anode 

Vp

Q(x+2)

Q(x)

Q(x+1)

Rv

Vp

Q(x+2)

Q(x)

Q(x+1)

Rv

Fig 26: Connecting LEDs common Cathode 

GND

Q(x+2)

Q(x)

Q(x+1)

GND

Q(x+2)

Q(x)

Q(x+1)

Fig 27: Connecting incand. bulbs 

Vp

Q(x+2)

Q(x)

Q(x+1)

Vp

Q(x+2)

Q(x)

Q(x+1)

Содержание OC32/NG

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: