ORA-1

ORA-1 est modules décodeur d'accessoires DCC qui peut fonctionner avec la plupart des systèmes y compris ORD-1. Il est basé sur le principe de l' Opendecoder de Wolfgang Kufers

Introduction

ORA-1 est un décodeur d'accessoires multi-fonctions qui est capable de commander des sigaux, des aiguillages à solénoïdes, des aiguillages à moteur. Tout dépend de la façon de monter le circuit imprimé. ORA-1 peut être monté dans deux versions. La première pour les signaux et les aiguillages à solénoïdes, la seconde pour les aiguillages à moteur. Les premiers essais peuvent être trouvé dans le svn suivant: Rocrail/hardware/ora-1 Merci à Wolfgang pour son projet d Opendecoder. Merci de faire un tour sur son site.

Caractéristiques principales

  • Support complet de Rocrail
  • Compatible avec ORD-1
  • 8 sorties ( 4 aiguillages )
  • PCB de 100x70mm
  • NMRA-DCC compatible
  • alimentation externe pour les sorties
  • configurable pour piloter soit des solénoïdes, soit des moteurs
  • voltage réglable selon les moteurs à piloter
  • un courant de 0,5A ou 1,0A pour piloter les solénoïdes

Diagramme

Files

Le schéma et la platine ont été créés avec KiCad, un programme de concept et design électronique en Open Source (GPL) PCB . Les fichiers complets CAD sont accessibles via l'adresse suivante: RocRail Subversion repository.

Version 1.0

Statut: testé de manière partielle

Les composants

Version 1 - Version signaux et solénoïdes

La Version 1 peut être montée avec un ou deux ci ULN2803. Chaque ULN2803 fournit un courant de courte durée de 0,5A max. Pour les petites échelles comme le N ou TT, un seul ULN2803 peut s'avérer suffisant, mais pour le H0 il est conseillé de le monter avec les deux ci.

Nom Valeur, Remarque Quantity
C1, C2 18pF, 2,54mm pin spacing 2
C3 470µ, 5,08mm 1
C4, C6, C8 100nF, 5,08mm 3
C5 100µF, 5,08mm 1
D1 1N4146 1
D2 LED, 3mm, low current, 2mA 1
D3 rectifier B80C1500 1
F1 multifuse, 0,5A, If using 2 x ULN2803 you need 1,0A 1
JP1 jumper, 2,54mm 2
K1, K2, K3, K4 connector, 3 port, 5,08 mm pin spacing 4
OK1 optocoupler 6N136 or 6N137 1
P1 connector 2×10, 2,54 cut out the pins you need 1
P2, P3 connecter, 2 port, 5,08 mm pin spacing 2
R1, R4 resistor 1k5 small 2
R2, R3 resistor 10k small (R2 is only needed if using OK1 = 6N137 2
SW1 switch, print 1
U1 ATTiny2313DIP 1
U2, U3 driver ULN2803A (each driver supports 0,5A ) 2
U4 voltage regulator LM7805 1
X1 10MHz chrystal 1

accessories utiles:

Nom Quantité
IC-Socket 20 pin for U1 1
IC-Socket 18 pin for U2 and U3 2
IC-Socket 8 pin for OK1 1

Version 2 - Version pour aiguillages avec moteur

Pour monter la Version 2, vous aurez besoin de tous les composants listés pour la version 1 plus les composants listés ci-dessous. Vous n'aures l'utilité que d'un seul ULN2803 étant donné la présence du booster BD678. Le placement d'un petit refroidisseur est toujours meilleur, sachant que cela vaut mieux qu'un LM317 grillé! ;-) Simple rappel qu'il faut utiliser une vis M3 screw pour le fixer.

Nom Valeur, Remarque Quantité
C7 100µF, 5,08mm pin spacing 1
D3 - D10 LED 3mm std. only if you like LED's ;-) 8
Q1 - Q8 BD678 PNP uncooled 8
R5 - R8, R10 - R13, R15 - R18, R20 - R23, R26 resistor 1k5, small 17
R9, R14, R19, R24 resistor 1k small (only needed for LED's) 4
R25 resistor R470 1
RV1 poti 5k 1
U5 voltage regulator LM317 1
U5 U-Form Heatsink for LM317 1

Le montage du ORA-1

Version 1 - Accessory Decoder for Turnouts with Solenoids and Signals

1. Mount the bridge near U2. 2. Mount all resistors and diodes. If you use a 1N137 opto you have to mount R2, if you use a 1N136 leave R2 empty. 3. Mount all IC Sockets. If you build the 0.5A Version mount sockets for U1, U2 and OK1. If you need 1A you have to mount U3 too. 4. Mount all other small parts 5. Mount the power supply, elko's and the connectors. 6. Connect power and check VAA and +5V 7. insert the IC's 8. program the PIC 9. Test - If you press the sw1 button longer than 100msec, LED2 will light up.

Version 2 - Accessory Decoder for Motor driven Turnouts

1. Mount the bridge near U2. 2. Mount all resistors and diodes. If you use a 1N137 opto you have to mount R2, if you use a 1N136 leave R2 empty. 3. Mount all IC Sockets. Remember that you don't need to mount U3 for driving motors. 4. Mount all other small parts 5. Mount the PNP Transistors, the power supply, elko's and the connectors. 6. Connect power and check +5V and VAA after the LM317. Test the Poti and measure the output voltage. 7. insert the IC's 8. Program the PIC 9. Test - If you press the sw1 button longer than 100msec, LED2 will light up.

PIC programming

PIC programming is quite easy. You need a programming software and a small hardware adapter for the serial port. We suggest to use Ponyprog2000 .

**Hardware**

The programming hardware is really small. You only need 3 resistors, 3 zener diodes, 1 capacitor and two connectors. You may build it on a breadbord but for the more enthusiastic model railroader i prepared a small Layout.

Version 1.0

Status: production stable, working

You also need a 1-to-1 cable to connect the 6 pin connector at your decoder with the 6 pin connector at the pic programmer board.

Software

First you have to setup the pic programmer. If you use the programming hardware described above you have to setup Ponyprog this way: Click on “Setup/Interface Setup” and setup the I/O Port as you can see in the picture below.

ponysetup7.jpg

You have to tell Ponyprog the name of the device you want to program. Click at “Device / AVR micro / ATtiny2313”

The software for the decoder is found at Wolfgang Kufer's Opendecoder page: OpenDecoder_V0.3.zip Download and unzip the file. You need to program the OpenDecoder_10MHz.eep and OpenDecoder10MHz.hex into the atmel chip

Now it is time to connect ORA-1 with the pic programmer. Also connect 8V to 30V AC or DC Power to ORA-1. To program the chip you have set the fuses of the atmel. Click on “Command / Security and configuration Bits” Set the fuses as shown in the picture below:

ponyfuses1.jpg

Afterwards you have to open the EEprom and the Program files. Click on “File / Open Program (FLASH) File …” and select the OpenDecoder10MHz.hex file at the place where you unziped it. Now click on “File / Open Data (EEPROM) File …” and select the OpenDecoder_10MHz.eep file. If both files are successfully loaded you have to click on “Command / Write Program (FLASH)” and after that is done click on “Command / Write Data (EEPROM)”

Now the chip is ready to test: connect power to ORA-1. Press the button at the ORA-1 board. The LED will light and displays that ORA-1 is in programming mode. Disconnect power and be happy, your ora-1 works.

Usage

Power and DCC

Connect your 18V AC Model Train Transformer to P3, connect the DCC signal cables with P2. It is also possible to bridge P2 and P3 and get both, Power and DCC from the tracks.

Version 1 - Turnouts and Signals

Connect your Turnouts to screw 1 to 3 of every Connector K1 to K4. Screw 1 is the green output, screw 3 is the red one. Screw 2 is Power (black cable at most turnouts).

Version 2 - Motor driven Turnouts

Connect your Motors to screw 1 and 3 of every Connector K1 to K4.

Setting up ORA-1

ORA-1 has 8 working modes:

Mode Function
0 Turnout decoder for solenoid driven devices, Pulse duration 0,25s
1 Turnout decoder for solenoid driven devices, Pulse duration 0,5s
2 Turnout decoder for solenoid driven devices, Pulse duration 1s
3 Turnout decoder for motor driven devices, Pulse duration 2s
4 Light signal decoder, 4 signals with 2 lights each
5 Light signal decoder, 2 signals with 3 lights each, one signal with 2 lights
6 Light signal decoder, 2 signals with 4 lights each
7 Trafficlight decoder

You can select the mode when sending a turnout command while ORA-1 is in programming mode. To enter programming mode press the button at ora-1. LED D2 will Light to indikate programming mode. Select the mode by sending the according turnout command. After ORA-1 received the DCC Command LED D2 will be off.

Example:

You want to setup ORA-1 for your motor driven turnouts No. 13 to 16. Mode 3 is the right one for motor turnouts. So you have to send a DCC command to the “green” output of Turnout 2 of this ORA-1 board. Turnout 14 equals Turnout 2 at the 4th ORA-1 board (every board is able to power 4 turnouts). To setup ORA-1 send the DCC command for the green output at Turnout No. 14.

Questions ? ;-)

Pictures

3D Picture from Kicad


Personal Tools