background image

Manual OC32/NG 

VPEB  

Control your Miniature World 

 

Page 4 of 48 

Version 1.0 – December 15

th

, 2017 

2017 Leon van Perlo  

Contents

 

 

1

 

OC32 - Introduction ......................................................................................... 7

 

1.1

 

A different approach........................................................................................ 7

 

1.2

 

Functions ....................................................................................................... 7

 

1.3

 

OC32 I/O Pins ................................................................................................. 8

 

1.4

 

Communication ............................................................................................... 8

 

1.5

 

DCC ............................................................................................................... 8

 

1.6

 

ETI ................................................................................................................. 9

 

1.7

 

SAP ............................................................................................................... 9

 

1.8

 

Physical properties.......................................................................................... 9

 

2

 

Practical Notes ............................................................................................. 10

 

2.1

 

Opening and closing the enclosure .................................................................. 10

 

2.2

 

Using the connectors .................................................................................... 10

 

3

 

Overview ....................................................................................................... 12

 

3.1

 

Interfaces and functions ................................................................................ 12

 

3.2

 

LED indicators .............................................................................................. 13

 

4

 

Power Supplies .............................................................................................. 14

 

4.1

 

General ........................................................................................................ 14

 

4.2

 

Some words about power supplies:................................................................. 14

 

4.3

 

GND or reference voltage .............................................................................. 15

 

4.4

 

Connecting power to the OC32 ...................................................................... 15

 

4.4.1

 

The standard method: through K1........................................................... 15

 

4.4.2

 

Use of separate power supplies for OC32 and connected devices .............. 15

 

4.4.3

 

Providing power to the OC32/NG via K5A or K5B...................................... 16

 

4.5

 

5V ............................................................................................................... 16

 

4.6

 

Use of model railroad- and other transformers ................................................ 17

 

4.6.1

 

Use of a locomotive transformer ............................................................. 17

 

4.6.2

 

Rectification and smoothing of an AC voltage ........................................... 17

 

5

 

Communicating with the OC32........................................................................ 19

 

5.1

 

Ways of communication ................................................................................. 19

 

5.2

 

Addressing of multiple OC32 modules (serial communication) ........................... 20

 

5.2.1

 

Addressing (normal) ............................................................................... 20

 

5.2.2

 

Adressing (extended)..................................................................................... 21

 

5.3

 

RS485 communication .................................................................................. 21

 

5.3.1

 

RS485 general explanation ..................................................................... 21

 

5.3.2

 

RS485 on the OC32/NG ......................................................................... 21

 

5.3.3

 

RS485 Termination ................................................................................ 22

 

5.3.4

 

Connecting to a PC via RS485 ................................................................ 22

 

5.3.5

 

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

 

5.3.6

 

Connecting multiple OC32/NG’s to a PC – Option 2................................... 24

 

5.3.7

 

Connecting multiple OC32/NG’s – Other options....................................... 25

 

5.3.8

 

The OC32/NG in a Dinamo(/MCC) system.................................................. 25

 

5.3.9

 

The installation of a “real” RS485 network............................................... 25

 

5.4

 

RS232 communication .................................................................................. 25

 

5.5

 

DCC control.................................................................................................. 26

 

5.6

 

Additional Options ......................................................................................... 27

 

5.6.1

 

TTL Level serial input .............................................................................. 27

 

5.6.2

 

Dual RS485 interface............................................................................. 28

 

6

 

Connecting the I/O Pins .................................................................................. 30

 

6.1

 

Selecting the electrical characteristics .......................................................... 30

 

6.1.1

 

Sink Drivers 500mA (TBD62083) ............................................................ 31

 

6.1.2

 

Source Drivers 500mA (TBD62783)........................................................ 31

 

6.1.3

 

Sink and Source Drivers (TB 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

 

OC32-ADM/SO (4,8A power source-driver) .............................................. 33

 

Control your Miniature World   

VPEB  

Manual OC32/NG 

2017 Leon van Perlo 

Version 1.0 – December 15

th

, 2017 

Page 45 of 48 

If the OC32 is controlled from another OC32, OM32 or Lichtorgel, the ‘A’ wire should be 
connected to the 500mA output port of that device. That output port may not be 
connected to anything else and the controlling device must be connected to the same GND. 
 
 
 
 
 
 
 
 
 
 
 

8.3

 

Optocoupler 

 

An optocoupler can be used if the event input ports are activated from any other electrical 
system. In this case, the “A” and “K” connection of each input port is respectively the 
Anode and Cathode of the IR diode of an optocoupler. 
 
The maximum current through the input port optocoupler is 50mA. However, this maximum 
current is never needed. Therefore the advice is to stay far below this maximum. The input 
port is reliably triggered by a current from 1mA up. There are many ways to drive an 
optocoupler. It is far beyond the scope of this manual to describe all possible circuits. As an 
example we describe the possibility to control the input port from a pushbutton or other 
type of switch. 
 
 
 
 
 
 
 
 
 
 

Fig 45: Connecting the Optocoupler input 

 
If you find it difficult to calculate the series resistor Rv, please have a look in the FAQ on 
www.dinamousers.net 
 
A simple calculation: Rv = (V  - 2) / 5 gives the approximate value of Rv in k

Ω

 that will result in 

a current of 5mA through the optocoupler.

 V is the voltage on the “+” terminal. When using a 

voltage of 12V the formula gives 2k

Ω

 for Rv (thus practically a 2k2 from the E12 series) 

Fig 43: Pushbutton on Event Input (1) 

Fig 44: Pushbutton on Event Input (2) 

OC32

In x

A

K

IR diode

+

Rv

OC32

In x

A

K

IR diode

+

Rv

OC32

To CPU   

In x

A

K

OC32

To CPU   

In x

A

K

OC32

To CPU   

In x

GND

A

OC32

To CPU   

In x

GND

A

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

Отзывы: