background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 8 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

Fig 2: U485 

1.3

 

OC32 I/O Pins 

 
The OC32 I/O Pins are used to connect the devices in your miniature world. The OC32 
I/O Pins need to be equipped with ‘drivers’ that fit the electrical characteristics of the type 
of device which is connected, such as: 
 

 

Incandescent lamps 

 

LEDs, common anode (plus) or common cathode (minus) 

 

Relays 

 

DC motors, also bidirectional (electronic reverse) 

 

Servomotors 

 

Memory wire 

 

Solenoids for e.g. turnouts and decouplers (up to 4.8A peak-current) 

 

Pushbutton, switch or other contact 

 
When you buy the OC32, standard drivers are installed, but you may need to change the 
drivers, depending on your specific application. Changing drivers can easily be done by you as 
a user. 
 
We will cover the drivers in much more detail later in this manual 

 
1.4

 

Communication 

 
The standard version of the OC32/NG is equipped with 2 serial interfaces: An RS485 
interface and an RS232 interface. Via these interfaces the OC32 can be configured and 
controlled. It can be connected to a PC, a Dinamo or Dinamo/MCC system. A singe 
connection supports up to 96 OC32 modules. Both serial interfaces can be used 
simultaneously. 
 
The RS232 interface is unidirectional. This means you cannot use this interface to read data 
from the OC32, nor can you verify the OC32 configuration through this interface. The 
RS232 interface is mainly there for compatibility with the OM32 and for situations where 
you want to control OC32’s with a standard PC COM-port. 
 
The RS485 interface is bidirectional. It offers full 
control capabilities. Using RS485 you can bridge a 
distance up to 1.200 meters! 
RS485 is not what you find on a standard PC. 
Therefore VPEB designed the U485. This extremely  
compact module simply turns any USB port into an 
RS485 interface. 

 
1.5

 

DCC 

 
The OC32 can be ordered with a DCC input

1

, by which the module can be controlled from any 

DCC compatible digital system. The OC32 can then function as a very flexible Basic DCC 
Accessory Decoder and as an Extended DCC Accessory Decoder. Unfortunately there are 
few DCC command stations today that transmit Extended ADCC Accessory Packets. The 
amount of basic and extended DCC addresses and the basic and extended DCC start 
addresses used can be configured by software. 
 
The OC32 cannot be configured through DCC. The possibilities are extremely large and 
configuring through DCC would become very complex to 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 to solder to the PCB however.

 

Control your Miniature World   

VPEB  

Manual OC32/NG 

2017 Leon van Perlo 

Version 1.0 – December 15

th

, 2017 

Page 41 of 48 

6.4.10

 

Motors (unidirectional) 

 

OC32 I/O Pin: 500mA Sink Driver 
or 
OC32 I/O Pin: OC32-ADM/SI 4,8A Sink Driver 

 
Driving a DC motor, which needs to run in one direction 
only, is quite simple. Connect the motor between Vp and 
the output like in Fig 36. 
When the motor draws more current than 350mA at maximum load (not being maximum 
speed) preferably use the OC32-ADM/SI. 
 

6.4.11

 

Motors (bidirectionall) 

 

OC32 I/O Pin: Sink  Source Driver 
or 
OC32 I/O Pin: OC32-ADM/FH 4,8A H-bridge 

 
A bidirectional motor is a motor that runs into two directions. An example is a turnout 
motor which moves slowly. The problem is reversing the current to have the motor run the 
other way around. This can be done with a so called "H-bridge" circuit. By putting both a Sink 
Driver and a Source Driver into the OC32 such a H-
bridge is established. The motor has to be connected 
between two consecutive outputs. 
 
The motor runs in one direction when output Q(x) is 
active. When output Q(x+1) is active the motor runs 
in the other direction. Also the speed can be adjusted. 
 

Take care: It is of vital importance that Q(x) and 
Q(x+1) are never active at the same time. 

This can be set-up in the OC32 configuration. 
 
When the motor draws more current than 350mA at 
maximum load (not being maximum speed) preferably use the OC32-ADM/FH 
 

6.4.12

 

Servo Motors 

 

OC32 I/O Pin: Resistor array 

 
A servo motor is a motor with integrated electronics, that can be moved into a desired 
position by means of a digital control signal. The servo motor requires a separate power 
supply to operate. The voltage usually has to be between 4,5V and 6V. Details can be found 
in the documentation of the manufacturer. 
Normally speaking a servo motor has three 
leads: GND, Power and input. These have to 
be connected according to figure 38.  
 

Take care: A servo motor can draw quite 
some current and especially the cheaper 
versions generate a lot of interference. To 
prevent negative impact on the 
Electronics, it is wise to incorporate a 
separate stabilizer and capacitor into the 
5V power supply of the servo motor. 

 

Fig 36: Conneting a motor 

Vp

Q(x)

M

Vp

Q(x)

M

M

Fig 37: Connecting bidirectional motors 

Q(x+0)

M

Q(x+1)
Q(x+2)
Q(x+3)
Q(x+4)
Q(x+5)
Q(x+6)
Q(x+7)

M

M

M

Q(x+0)

M

M

Q(x+1)
Q(x+2)
Q(x+3)
Q(x+4)
Q(x+5)
Q(x+6)
Q(x+7)

M

M

M

M

M

M

Fig 38: Connecting a servomotor 

GND

Q(x)

Input

5V

+

-

GND

Q(x)

Input

5V

+

-

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: