Files

  • 404 File Not Found
copied
Last update 2 years 2 months
FilesDCCNext
..
images
README.md
README.md

Nederlandse vlag Nederlands

Navigate to English version

Schema DCCNext

De DCCNext heeft 16 uitgangen, die op verschillende pinnen van de Arduino zijn aangesloten.

Een normaal Arduino-board bevat een Atmel ATMega386 met pinnen van de chip, die verbonden zijn met pinnen op het board.

Pinnen

De tekening van de DCCNext is niet compleet:

Schema Bron: ]]>https://www.arcomora.com/arsigdec/]]>

Hierbij de aansluitingen van de DCCNext en pinnummers zoals je die op de DCCNext, de Arduino en op de Atmelchip ziet. Dit voor het geval een eigen programma op de DCCNext geladen moet worden:

DCCNext Arduino pin Atmel
0 RX PD0/RXD
1 TX PD1/TXD
2 DCC in PD2
1 3 PB3
2 4 PD4
3 5 PD5
4 6 PD6
5 7 PD7
6 8 PB0
7 9 PB1
8 10 PB2
9 11 PB3
10 12 PB4
13 PB5/LED
11 14/A0 PC0/ADC0
12 15/A1 PC1/ADC1
13 16/A2 PC2/ADC2
14 17/A3 PC3/ADC3
15 18/A4 PC4/ADC4
16 19/A5 PC5/ADC5
20 PB6/XTAL
21 PB7/XTAL
22 PC6/RESET

Assemblage

Netjes volgens de handleiding monteren en solderen. Op advies van Cees Baarda van de HCCm een stuk doorzichting plakplastic over de sticker aan de bovenzijde aangebracht.

Tester

Om de DCCNext te kunnen testen zijn op alle uitgangen 4 rode, 4 gele, 4 groene en 4 witte LED's middels een testprint met bij de LED-kleur behorende draad- en adereindhuls-kleur aangesloten. Oranje = 5V. De AC/DC van 16V is voor de test aangesloten op DCC.

DCCNextschematicTester

Dit schema is gemaakt met Fritzing door eerst de DCCNext over te tekenen met Inkscape en daarna er een Fritzing component van te maken zoals beschreven in een apart hoofdstuk. Gebouwd ziet dit er als volgt uit:

Tester

Configureren

M.b.v. de handleiding van de ]]>ArSigDec]]> van Arcomora worden voor Nederland een standaard in de database aanwezig P-sein met en een P-sein zonder cijferbak geconfigureerd.

Adres 150 P-sein met cijferbak. Adressen 150 en 151 met ieder ROOD- en GROEN-commando's.

NLseincijferbak

Adres 152 P-sein zonder cijferbak. Adressen 152 en 153 met ieder ROOD- en GROEN-commando's.

NLseincijferbak

Upload

De eerste keer dat de DCCNext wordt aangesloten en de gebruiker voor de shortcut Arsigdec heeft gekozen zal het programma de USB-poort zoeken en als dat gelukt is het programma Arsigdec op de Arduino laden.

Upload

Eerste configuratie

De eerste keer na het uploaden worden een aantal parameters ingesteld.

FirstInstall

Heropenen

Als de Arduino wordt aangesloten op de laptop, terwijl er eerder een goede uload is geweest incl. basisconfiguratie dan volgt een kort welkom:

Reopen

Standaardsein configureren

Als eerst wordt een Nederlands P-sein met cijferbak (database nummer 1) gekozen op DCC startadres 150:

FirstSignal

Evenzo is een Nederlands P-sein zonder cijferbak (database nummer 2) gekozen op DCC startadres 152.

Met een T-commando kunnen vanuit de laptop de LED's worden getest. Een klein nadeel is (waarschijnlijk omdat in de aanwezige installatie alles common anode is) dat alle LED's meteen gaan branden (dit is een verbeterpunt van de ArSigDec). Bij 16 test-LED's op één Atmel386 in het bordje is dat te veel stroom. Maak eerst een paar LED-aansluitingen los of configureer meteen het maximum aantal seinen binnen de DCCNext. In het laatste geval zal de DCCNext na het typen van een E (Operation Mode) bijna alle seinen doven.

DCC commando's naar aspect

Om de configuratie testen worden eerst via de DCC Command Centre (b.v. DR5000) en/of MultiMaus ROOD- en GROEN-commando's naar de ingestelde adressen gestuurd om te controleren welke commando's nodig zijn voor welk aspect.

Sein 1 4 aspecten, database nummer 1

Commando Aspect
150-R Naar rood, als hiervoor groen dan via geel
150-G Naar groen, als hiervoor rood dan via geel
151-R Naar geel
151-G Naar geel+wit

Sein 2 3 aspecten, database nummer 2

Commando Aspect
152-R Naar rood, als hiervoor groen dan via geel
152-G Naar groen, als hiervoor rood dan via geel
153-R Naar geel
153-G Geen reactie

Dit is alles conform de handleiding.

RocRail configuratie P-sein

De hierboven bekeken ROOD- en GROEN-commando's moeten nu door een juiste configuratie uit RocRail komen. Op de site van Arcomora wordt verwezen naar een ]]>video]]> waarin wordt uitgelegd dat bij de DCCNext de adresseermethode 'Linear' moet worden gekozen. De wijzigingen t.o.v. de standaard instellingen zijn omcirceld.

Maak een sein in RocRail met b.v. de naam sgNext1:

sgNext1TABGeneral

Zet in het tabblad Interface het poortadres op 150 (PADA) en Control op Linear:

sgNext1TABInterface

Indien de gebruiker persé met MADA wil werken (wat trouwens voor de DCCNext niets uitmaakt):

sgNext1TABInterface

Zet in het tabblad Details de juiste volgnummers voor RED 0, voor GREEN 1, YELLOW 2 en WHITE 3. Indien je een P-sein zonder cijferbak hebt vul je alleen RED, GREEN en YELLOW en naturlijk 3 aspecten:

sgNext1TABDetails

  • Klik steeds op het sein sgNext1 in de RocRail interface dan gaat het aspect ROOD, GEEL, GROEN en GEEL+WIT om beurten branden (met netjes een overgang van ROOD naar GROEN via een korte tussenstand GEEL). Een andere mogelijkheid is om op het sein de rechtermuis te klikken; je kunt dan meteen het gewenste aspect kiezen.
  • Bekijk de test DCCNext en de logging in de RocRail interface. Als alles correct is ingesteld zie je dat RocRail dezelfde commando's stuurt als hiervoor met de hand is uitgeprobeerd.

In de logging van RocView zie je de laatste 4 opdrachten voor 4 aspecten van sein sgNext1. ⚠️De adressen in de logging van RocView zijn altijd 1 lager dan in de gebruikersinterface. Het jongste commando staat bovenaan:

LoggingRocView4aspecten

In de logging van RocRail zie je de laatste opdracht voor aspect van sein sgNext1. ⚠️De adressen in de logging van RocRail zijn ook altijd 1 lager dan in de gebruikersinterface. Het jongste commando staat onderaan:

LoggingRocRailLastAspect

RocRail configuratie Frans sein

De ArSigDec kan ook worden geconfigureerd voor een sein met nummer 33 uit de database 'Cible-E avec oeilleton' uit Frankrijk. Het aantal aspecten in RocRail wordt dan op 10 gezet.

FrankrijkSein33

Bron: handleiding ArSigDec.

Install10Aspects

En RocRail idem:

sgNext1TABInterface10Aspects

Echter de aspecten na BLANK zijn niet ingevoerd. Toch kent RocRail de andere aspecten door telkens in de RocRail-interface op het sein te klikken. Alle aspecten worden netjes doorlopen (waarbij het technische aspectnummer natuurlijk weer 1 lager is dus loopt die in deze configuratie van 0 t/m 9).

RocRailGUIaspect2

Maar zodra het zesde aspect en hoger moet worden getoond verdwijnt het seinsymbool uit de RocRail-interface, maar keert terug bij aspect 1 t/m 5.

RocRailGUIaspect5

Je kunt op het sein rechtermuis en dan Aspect kiezen:

RocRailGUIChose_aspect

Daarna kun je direct het gewenste aspectnummer ingeven:

RocRailGUIaspect_textbox

English flagEnglish

Schema DCCNext

The DCCNext has 16 outputs connected to different pins of the Arduino.

A normal Arduino board has a Atmel ATMega386 with pins on the chip connected to pins on the board.

Pinnen

The schema DCCNext is not complete:

Schema Bron: ]]>https://www.arcomora.com/arsigdec/]]>

Here are the pins of the DCCNext en pinnummers, the Arduino and the Atmel chip in case you might want to load your own program into the DCCNext:

DCCNext Arduino pin Atmel
0 RX PD0/RXD
1 TX PD1/TXD
2 DCC in PD2
1 3 PB3
2 4 PD4
3 5 PD5
4 6 PD6
5 7 PD7
6 8 PB0
7 9 PB1
8 10 PB2
9 11 PB3
10 12 PB4
13 PB5/LED
11 14/A0 PC0/ADC0
12 15/A1 PC1/ADC1
13 16/A2 PC2/ADC2
14 17/A3 PC3/ADC3
15 18/A4 PC4/ADC4
16 19/A5 PC5/ADC5
20 PB6/XTAL
21 PB7/XTAL
22 PC6/RESET

Assembly

Assemble and solder as mentioned in the manual. On advice of Cees Baarda of the Model RailRoad department of the Dutch Hobby COmputer Club a piece of transparent plastic was put over the upside sticker.

Tester

To test the DCCNext 4 red, 4 yellow, 4 green and 4 white LEDs were connected with an experimental PCB with correcponding wire and insulation terminal. Orange = 5V. The AC/DC of 16V was connected to DCC during this test.

DCCNextschematicTester

The schema was made with Fritzing by drawing the DCCNext by hand with Inkscape and then create a Fritzing component from it as described in hoofdstuk.

Assembled:

Tester

Configure

With the ]]>ArSigDec]]> manual of Arcomora a Dutch P signal with speed indicator and a P signal without speed indicator were configured.

Adres 150 P signal with speed indicator. Adresses 150 and 151 each possible with a RED and GREEN command.

NLseincijferbak

Adres 152 P signal without speed indicator. Adresses 152 and 153 each possible with a RED and GREEN command.

NLseincijferbak

Upload

THe first time a DCCNext is connected to a laptop the user can click shortcut Arsigdec and the program searches for the USB port. When succeeded the ArSigDec software is loaded into the DCCNext.

Upload

First configuration

The first time af reinstall some parameters must be set.

FirstInstall

Reopen

A short welcome is shown when connecting the DCCNext to a laptop after first install.

Reopen

Configure signal from database

We start with a Dutch P signal with speed indicator (database number 1) at DCC start adress 150:

FirstSignal

Also a Dutch P signal without speed indicator (database number 2) at DCC startadress 152 was configured.

With a T command the LED can be tested from the laptop. A small disadvantage (possibly due to the fact that we chose common anode) is that all LEDs start immediately (point of improvement of the ArSigDec). With 16 test LEDs on one Atmel386 is to much current. Disconnect a few LEDs or configure mdirectly the maximum number of signals in the DCCNext. Doing so will light up less LEDs when going to Operation Mode.

DCC commands to aspect

To test the configuration using the DCC Command Centre (e.g. DR5000) or MultiMaus RED and GREEN commands were send to the efeect in aspect.

Signal 1 4 aspects, database number 1

Command Aspect
150-R To red, if previously green then short yellow
150-G To green, if previously green then short yellow
151-R To yellow
151-G To yellow+white

Signal 2 3 aspects, database number 2

Command Aspect
152-R To red, if previously green then short yellow
152-G To green, if previously green then short yellow
153-R To yellow
153-G No reaction

As mentioned in the manual.

RocRail configuration

The RED and GREEN-commands must now come from RocRail after correct configuration. In the manual of ArSigDec is referred to a ]]>video]]> explaining to use 'Linear' when connecting DCCNext to RocRail.Changes to the default settings are indicated with a circle.

Create a signal sgNext1 in RocRail:

sgNext1TABGeneral

In the tab Interface set the port adress to 150 (PADA) and Control on Linear:

sgNext1TABInterface

If the user wants to use MADA (which is of no influence on the DCCNext):

sgNext1TABInterface

In the tab Details give the following numbers to RED 0, to GREEN 1, to YELLOW 2 and to WHITE 3. If you have a Dutch P-signal without speed indicator you only have to fill RED, GREEN and YELLOW and the fact that there are 3 aspects:

sgNext1TABDetails

  • Click on the signal sgNext1 in the RocRail interface several times. The signal we go through the aspects RED, YELLOW, GREEN and WHITE+YELLOW (with a short YELLOW when going from RED to GREEN directly). Another possibility is to right click the signal and chose the aspect.
  • Look at the test DCCNext and the logging in the RocRail interface. If set correctly you will see RocRail sending the same commands as you did manually.

In the logging of RocView you can see the last 4 commands for 4 aspects of sgNext1. ⚠️The adresses in the logging of RocView are always 1 lower than in the user interface. The last command is at the top:

LoggingRocView4aspecten

In the logging of RocView you can see the last command for aspect 4 of sgNext1. ⚠️The adresses in the logging of RocView are always 1 lower than in the user interface. The last command is at the bottom:

LoggingRocRailLastAspect

RocRail configuratie French signal

The ArSigDec can also be configured for a signal with 10 aspects; that is number 33 from the database 'Cible-E avec oeilleton' from France. The number of aspects in RocRail must be set to 10.

FrankrijkSein33

Source: ArSigDec manual.

Install10Aspects

In RocRail:

sgNext1TABInterface10Aspects

The aspects after BLANK have not been configured. Yet RocRail knows the other aspects. Click on the signal in the RocRail interface. All 10 aspects are visible (with the technical aspect number agian being 1 lower so in this configuration from 0 to 9).

RocRailGUIaspect2

From the 6th aspect and higher th signal symbol disappears from the RocRail interface but returns with aspect 1 to 5.

RocRailGUIaspect5

You can also right clikc the signal and have the aspect entered directly:

RocRailGUIChose_aspect

Type the aspect number:

RocRailGUIaspect_textbox

Report a bug