background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 22 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

The RJ45 sockets are convenient if you use standard cables. You can use any standard, 
straight RJ45 network cable you can find in a computer store. The 3-pole (green) wire end-
connector is convenient when you need to connect to something that has not an RJ45 
RS485 connector or when you want to use your own cable. 
 

Note:

 There is no standard pin-out defined for RS485 on an RJ45 connector, so ‘the 

standard’ is only guaranteed to work between VPEB products. 

 

5.3.3

 

RS485 Termination 

 

We receive quite some questions about ‘the RS485 terminators’. Apparently it is hard to 
comprehend, while in essence the idea is very simple. 
 
RS485 is one continuous wire-pair (the ‘bus’). There may, in principle, be no branches. On 
‘the wire’ you can connect devices. So ‘the wire’ runs from module 1 to module 2 to module 
3 to … to module N. It is important that ‘the wire’ is 
‘terminated’ at both ends, so 

the first and last module only

The OC32/NG provides terminator-jumpers so you can 
activate and de-activate the termination function on the 
module. 
Note that there are two termination jumpers: TC1 and TD1. 
Always activate or de-activate both. See figure 11.  
 
See the whole setup as a laundry-wire. You have to fix 
(terminate) the wire at both ends, otherwise it will fall, and 
you can clip your shirts, socks and knickers at any point to 
the wire. 

 

5.3.4

 

Connecting to a PC via RS485 

 

If you want to connect the OC32 to a PC, the best way to do is to use a U485 converter. 
That is a highly compact USB-RS485 converter especially developed for the OC32. The 
U485 is hardly more expensive than a standard USB-RS232 converter. 
 
In its simplest form, the RS485 bus implementation consists of 2 modules with a cable 
(twisted pair) in between: at one end a U485 and at the other end an OC32. 
The RS485 is to be connected to pins 1,2 and 3 (labeled D+, D- en GND) of K2 (the 3-pin 
connector). One wire of the twisted pair is connected to D+, the other wire to D-, a third 
wire to GND. Because RS485 is polarity sensitive, you may not swap D+ en D-, so the wire 
that is connected to D- has to be connected to D- at the other side as well. The same 
counts for D+. 
 
All 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: Termination Jumpers 

U485

RS485 terminators
activated

PC

RS485 terminator activated

Fig 12: PC to single OC32/NG 

Control your Miniature World   

VPEB  

Manual OC32/NG 

2017 Leon van Perlo 

Version 1.0 – December 15

th

, 2017 

Page 27 of 48 

DCC Interface

DCC Low-

Pass Filter

 

Use a connection on which the data packets for Accessory decoders are generated. In 
principle that is any connection but there might be exceptions with your digital system. 

 

The load of an OC32 on the DCC interface is about 10..15 mA. It is that small that in 
practice you seldom have to take this extra load into account. 

 
With DCC a large number of modules (decoders) can be connected to the digital system. To 
be able to control these decoders, DCC has an addressing method as well. The OC32 uses 
up to 128 consecutive DCC accessory decoder addresses. The DCC start-address and the 
amount of addresses used is set by means of software configuration (see OC32 firmware 
manual), so 

NOT

 with dip-switches. 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fig 17: The DCC interface 

 
The OC32/NG has both hardware and software filters to mitigate the effect of electrical 
interference, voltage spikes, etc. Some users claim that the hardware low-pass filter on the 
OC32 disturbs signal reception. We have found this is the case when an asymmetrical signal 
is applied (so actually when the signal is not DCC compliant). If these problems are 
encountered, the DCC Low-Pass filter on the OC32/NG can be disabled. As depicted in 
figure 17, you’ll find a jumper JP8 (DCC-LPF). When the jumper is installed the Low-Pass 
filter is enabled (standard), when the jumper is removed the Low-Pass filter is disabled (not 
recommended unless you experience problems with the LPF enabled). 
 

5.6

 

Additional Options 

 
The OC32/NG has some additional options that are not available on a standard unit. If you 
want to use these options, you have to make a small modification to the OC32/NG. The 
reason for this is that these options are very rarely used and we don’t want to bother the 
average user with yet another option to configure. 
 

5.6.1

 

TTL Level serial input 

 
The OC32 (original version) and the OM32 had the possibility to select TTL level input or 
RS232 level input for the serial interface. The OC32/NG has two serial interfaces: RS485 

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: