background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 26 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

If you connect the OC32 directly to the COM-port of a PC, then you need to obtain the 
RS232 TxD signal from the COM-port. You can buy a serial cable for this, but it is cheaper 
and most likely easier to manufacture one yourself. The case is that you only require 2 wires 
from the COM-port of your PC. 
 
Buy a 9 pin subD female connector, possibly with a cover, and a piece of signal cable with at 
least 2 wires. You can very conveniently use a piece of cable with shielding and conducting 
core, a sort of very thin coax cable that is normally used for connecting audio equipment. 
Solder one wire to pin 5 of the subD connector (this will be the GND) and the other wire to 
pin 3 (this will be the TxD). If you use a shielded cable with conducting core, you solder the 
shield to pin 5 and the core to pin 3. 
To the other side of the cable, you connect the GND wire (or shield) to the GND of your 
layout. The TxD signal wire you connect to pin 4 of K1 on the OC32 (green wire in fig 16). 

 
 
 
 
 
 
 
 
 

Fig 16: Connecting RS232 communication to the PC 

 

If you are using a USB-RS232 converter, then the pin layout of its 9-pin connector should 
be identical to that of a normal PC COM-port and the whole game will work as described 
above. The only difference is that there is a USB cable between your COM-port and the PC. 
In most cases you have to install drivers as well to make the USB-serial converter work. 
Have a look at the manual of your USB-serial converter for this. 
 
If you have multiple OC32 modules on an RS232 bus, then you can connect them in parallel. 
Just interconnect the GND (pin 2) and data (pin 4) of all modules. You can do that in a bus 
or star configuration. Of course you can also interconnect PWR (pin 1), if all modules share 
the same power supply. 
 
Note that the fan-out of a standard com-port, and especially the com port on a USB-Serial 
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 com-port can drive, you need to use a signal amplifier. 
 

5.5

 

DCC control 

 
For operational control, the OC32 can receive and process DCC signals, as long as the 
OC32 module is provided with a DCC interface 
 
DCC is a 2-wire signal. Connect the DCC signal of your digital system to the DCC interface 
of the OC32. DCC is polarity insensitive. This means that it doesn’t matter whether you 
swap the 2 wires of the DCC interface. 
 
How to obtain a DCC signal from your digital system can be found in the documentation of 
your digital system. It might be that there are multiple DCC connections on your digital 
system. Just keep the following in mind: 

 

If possible, use a connection that is not directly connected to the track. If it does, short 
circuits and interference might influence the operation of accessory decoders like the 
OC32 is. 

1

5

6

9

9subD-female

RS232 TxD

GND

1

5

6

9

9subD-female

1

5

6

9

9subD-female

RS232 TxD

GND

Control your Miniature World   

VPEB  

Manual OC32/NG 

2017 Leon van Perlo 

Version 1.0 – December 15

th

, 2017 

Page 23 of 48 

5.3.5

 

Connecting multiple OC32/NG’s to a PC – Option 1 

 
The easiest way to connect multiple modules is to use RJ45 cables. Since the U485 has no 
RJ45 connector you need to connect the U485 to the first OC32/NG module as in figure 
13. 
Now plug an RJ45 cable in one of the RJ45 sockets of that first OC32/NG and plug the 
other end in an RJ45 socket of the second OC32/NG. If you have more modules, plug 
another cable in the free socket of the second OC32/NG and plug the other end in module 3. 
Continue with this process to the last module. 
 

Note: 
Only the U485 and the last OC32/NG module shall 
have the terminator active. 
On the OC32/NG to which you have connected the 
U485, only one RJ45 may be used. 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fig 13: Connecting multiple OC32/NG’s with RJ45 cables

 

Address

RS485 terminator NOT activated

Address

Address

RS485 terminator NOT activated

RS485 terminator activated

U485

PC

RS485 terminator activated

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: