background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 32 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

Each output can provide 500mA but 

Take Care: the maximum total current for the 8 outputs of each group is 1 A. 

There is not a real current limitation in the OC32. You have to take care of that yourself or 
to be certain you have to put a fuse in between. So it is not possible to load all 8 outputs of 
a single group with 350mA each. In the case of more "heavy" loads they have to be spread 
over more groups. 

 
6.1.3

 

Sink and Source Drivers (TB TBD62783) 

 
If both a Source Driver and a Sink Driver are placed in one Group, two consecutive outputs 
of that group are going to act as a pair. For the electronic engineers: this means that the 
group is acting as an quadruple H-bridge. In most cases the load is connected between two 
consecutive outputs. Those two consecutive outputs can have three different states: 

 

Both outputs off = load off 

 

Output Q+0 negative, output Q+1 positive = current into one direction. 

 

Output Q+0 positive, output Q+1 negative = current into the other direction.

 

 

Both outputs on = 

NOT ALLOWED

 

If you hook-up a DC motor, with this type of connection, not only the speed can be 
controlled, but aso the directon of rotation. An application in practice would be a turnout 
motor like Tortoise or Hoffman. 
 

Attention: In this configuration only one output of each pair may be active 
simultaneously! Otherwise the result is a shortcut and a fried driver IC. The OC32 has a 
safety mechanism for this. To be sure that this mechanism works properly the "hardware 
configuration" has to be set correctly (see OC32 firmware manual) 

 
6.1.4

 

Resistor Array (5V outputs) 

 
In this case a resistor network is inserted in the receptacle of the 

Sink Driver

. A resistor 

array is nothing else than multiple resistors in an IC housing. It fits into the place where a 
driver would be placed otherwise. 
 
A resistor array is not a real driver. The I/O Pin of the OC32 processor is connected through 
a resistor to the equivalent I/O Pin of the module. The resistor provides some protection to 
the processor and current limitation to protect the load. Because the processor operates 
with 5V internally, the output voltage of this kind of output is restricted to 5V. The 
electrical power is obtained from the processor directly. As a result the power is limited. 
 
This setup can be used in the following situations: 

 

Driving a servomotor. A servomotor has its own power supply and needs only a digital 
control signal to determine the position. Sink and Source drivers would disturb the 
control signal and for that reason the resistor array is used. 

 

Driving a LED. The substantial advantage is that the series resistor for the LED is 
incorporated in the OC32. The LED can be connected directly. Most often the LED is 
connected between output and GND but it can be done between two outputs or 
b5V and the output as well. 

 

For using the I/O Pin as input. The input signal applied to the Pin shall remain between 0V 
and 5V. The resistor acts as a (limited) security mechanism, so the input is not 
immediately destroyed when accidently a wrong Voltage is applied to the Pin. When you 
use all Pins of the bank as input, you best use a somewhat higher resistance value (e.g. 
1k

) for improved protection. 

 

More complex 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 

Version 1.0 – December 15

th

, 2017 

Page 17 of 48 

If you need the 5V interface, it can be made available 
by a simple modification:  

 

If not already present, solder a dual-pin header 
(pitch 2,54mm) onto position JP3 

 

Place a jumper on JP3 to activate the 5V 
interface. 

 
If you want to provide your own 5V supply, then 
connect its minus to pin 2 of K1 (GND) and its plus 
to pin 3 of K1 (5V). 
 
Furthermore the following requirements need to be satisfied: 

 

JP1 and JP2 

may NOT

 be installed. 

 

The pin PWR on K1 

may NOT

 be connected. 

 

Ideally the power voltage should be between 5.0V and 5.1V and be stabilized very well at 
a short distance of the OC32. An improperly stabilized power supply or a long wire 
length will lead to instability of the OC32. A negative voltage or a voltage higher than 
5.5V will inevitably lead to a serious defect in your OC32 and costly repair! 

 

4.6

 

Use of model railroad- and other transformers 

 

4.6.1

 

Use of a locomotive transformer 

 

If you have a locomotive transformer for a 

DC system

, you can use it as a power source for 

your OC32 and connected items. Take into account that in most cases a locomotive 
transformer does not provide a real DC voltage, but a pulsing voltage. 
For a correct operation it is highly advisable and in most cases even mandatory to smooth 
the voltage pulses with a capacitor. This can be done by connecting the capacitor to the 
supply voltage in parallel, preferably as close to the transformer as possible. The value of the 
capacitor depends on the total current that you will need from the supply. As a guideline, 
use about 2500

µ

F per Ampere. Obviously the specified voltage of the capacitor needs to be 

higher than the voltage you will actually provide to the OC32. 
 

Furthermore it is very advisable to mechanically block the direction switch on your 
transformer, to prevent an accidental reversal of polarity from happening! 

 

4.6.2

 

Rectification and smoothing of an AC voltage 

 

If you don’t have a DC voltage but an AC voltage only, then you can transform that into a DC 
voltage with 3 simple components. How this is achieved can be found in figure 9. 
 

Attention: Since the rectified voltage will be connected to your OC32(‘s), the OC32(‘s) 
will be connected to your digital system or to your PC and in the latter case your PC to 
your digital system, it is essential that the AC voltage source (the transformer itself) is 
not connected in any other way to your digital system. It might be feasible, but you have 
to know exactly what you are doing, and how your digital system is constructed. If you 
don’t know that, then see to it that the secondary side of the transformer (the low 
voltage side) is not connected in any other way. Ignoring this warning can result in 
damage of your OC32, your digital system or both! 

 
So, if you have a separate AC transformer or a transformer with a separate secondary side 
that you can use, you can use the schematics as shown in figure 9 for rectification and 
smoothing. To the left you connect the output of your AC transformer. The value of the 
capacitor depends on the total current you need. As a guideline, use about 2500

µ

F per 

Ampere. The diode bridge needs to be able to cope with at least the voltage and current 
that you are going to obtain and the voltage that the capacitor needs to cope with has to 

   Before mod       Fig 8       After mod 

Содержание 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...

Отзывы: