Rocrail - Innovative Model Railroad Control System Forum Index Rocrail - Innovative Model Railroad Control System
This software is distributed freely under the GNU GENERAL PUBLIC LICENSE.
 
 FAQFAQ   SearchSearch     UsergroupsUsergroups AlbumAlbum     CalendarCalendar  RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 rocrail.net   Intro   Portal   Index    Support  

Eigene Digitalzentrale auf Arduino
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Rocrail - Innovative Model Railroad Control System Forum Index -> Zentralen (DE)
View previous topic :: View next topic  
Author Message
janvonnebenan



Joined: 22 May 2012
Posts: 33

PostPosted: 21.08.2012, 18:25    Post subject: Eigene Digitalzentrale auf Arduino Reply with quote

Hallo Forum,
ich habe ein wenig rumprogrammiert und hoffe, dass es außer mir vielleicht noch jemand gebrauchen kann. Es handelt sich um eine Digitalzentrale auf dem Arduino (uno) für Märklin-Motorola. Man braucht nur einen Booster und ein Arduino. S88 funktioniert auch. Ich konnte damit einen Automatikbetrieb mit dem Demoplan realisieren. Also mit zwei Loks, zwei Weichen und sechs Rückmeldern für drei Blöcke. Wenn das jemand nachbasteln möchte, würde ich mich natürlich sehr freuen. Fotos und Arduinocode sind im Zipfile.

Herzliche Grüße und viel Spaß
Jan

_________________
Ubuntu 12.04
Märklin C-Gleis 6021 (nicht gut aber schön)
Back to top
View user's profile Send private message
koef2



Joined: 31 Dec 2008
Posts: 65
Location: Aachen/Germany

PostPosted: 25.08.2012, 21:08    Post subject: Reply with quote

Hallo Jan,

vielen Dank fürs zur Verfügung stellen.

Ich werde mir das mal demnächst anschauen und ausprobieren, im Augenblick habe ich leider keine Zeit.

Werde sicherlich Fragen haben und mich dann auch melden Very Happy

Viele Grüße

Kai
Koef2

_________________
-------------
Delta 6604, DDX und Rocrail with Linux, Maerklin H0 metal tracks
Back to top
View user's profile Send private message
janvonnebenan



Joined: 22 May 2012
Posts: 33

PostPosted: 28.08.2012, 23:25    Post subject: Reply with quote

Hallo,

ja über Feedback würde ich mich natürlich freuen. Hier jedenfalls eine neue Version. Verbessert habe ich den Refreshzyklus. Dadurch reagieren die Loks schneller.

Viele Grüße
Jan

_________________
Ubuntu 12.04
Märklin C-Gleis 6021 (nicht gut aber schön)
Back to top
View user's profile Send private message
margau



Joined: 01 Sep 2012
Posts: 7

PostPosted: 01.09.2012, 15:03    Post subject: Reply with quote

Das muss ich morgen umbedingt mal ausprobieren!
Wie schaut das mit der Hardware aus, ich hab so ne C-Gleis Anschlussbox aus der Startpackung, wo zur Zeit eine Mobile Station 1. Generation dranhängt. Wie muss ich den Arduino anschließen?
Brauch ich noch Zusatzhardware, also IC oder anderes?
Back to top
View user's profile Send private message
janvonnebenan



Joined: 22 May 2012
Posts: 33

PostPosted: 01.09.2012, 17:04    Post subject: Reply with quote

Hallo!
Man braucht einen Booster und einen Arduino. Ich habe den Booster von LDT verwendet ein Märklinbooster sollte deshalb auch funktionieren. Die Anschlussbox reicht nicht aus! Um ein Deltacontrol 4f als Booster für den Arduino verwenden zu können, muss man aber noch das 5V-Signal auf 12V anpassen.

Viele Grüße
Jan

_________________
Ubuntu 12.04
Märklin C-Gleis 6021 (nicht gut aber schön)
Back to top
View user's profile Send private message
margau



Joined: 01 Sep 2012
Posts: 7

PostPosted: 01.09.2012, 17:11    Post subject: Reply with quote

Was gibt denn der Arduino aus? Soweit ich weiß wird das CAN-Signal erst in der Box, die einen externen Trafo hat, umgewandelt. Oder gibt er direkt die Fahrspannung aus?
Back to top
View user's profile Send private message
janvonnebenan



Joined: 22 May 2012
Posts: 33

PostPosted: 01.09.2012, 18:00    Post subject: Reply with quote

Ja, mein Programm erzeugt das MM2-Schienenformat.
_________________
Ubuntu 12.04
Märklin C-Gleis 6021 (nicht gut aber schön)
Back to top
View user's profile Send private message
margau



Joined: 01 Sep 2012
Posts: 7

PostPosted: 01.09.2012, 18:06    Post subject: Reply with quote

das heißt, es ersetzt quasi die mobile station an sich, oder? Ist in der .zip ein Schaltplan drinne, ich kann die mit dem Handy nicht öffnen...
Back to top
View user's profile Send private message
margau



Joined: 01 Sep 2012
Posts: 7

PostPosted: 01.09.2012, 18:23    Post subject: Reply with quote

Bzw. welcher Stecker müsste da an CAN_H oder CAN_L und GND etwas weiter unten unter Besser als eine Mobile Station sind zwei
Back to top
View user's profile Send private message
LDG
Site Admin


Joined: 18 Oct 2010
Posts: 832
Location: bei Karlsruhe/D

PostPosted: 01.09.2012, 18:54    Post subject: Reply with quote

Hallo margau,

wenn Du bisher nur ein System mit MS1 hast, dann kannst Du vielleicht den Trafo/das Netzteil verwenden, aber weder MS1 (die ist Signalgenerator und Booster!) noch die Anschlußbox sind für das System mit dem Arduino geeignet.

Der Arduino generiert das Gleissignal. Er benötigt einen externen Booster und einen Rechner mit Rocrail um dem Arduino via P50 die Befehle zu senden (und ggf. Rückmelder via S88 einzulesen).

Die MS1 ist damit nicht kompatibel.

Gruß,
Lothar
Back to top
View user's profile Send private message
margau



Joined: 01 Sep 2012
Posts: 7

PostPosted: 01.09.2012, 18:56    Post subject: Reply with quote

Ok, dann habe ich das falsch verstanden, weil ich dachte, das der Arduino wie bei dem Railuino-Projekt die CAN-Signale erzeugt.
Back to top
View user's profile Send private message
der_yps



Joined: 27 Aug 2011
Posts: 5

PostPosted: 02.09.2012, 21:20    Post subject: So etwas habe ich gesucht! Reply with quote

... siehe http://forum.rocrail.net/viewtopic.php?t=3675

Ich werde die Tage mal versuchen das an den Start zu bringen....

Danke schon mal fürs teilen!

Yps

_________________
---------------
Zentrale: DDL/SRCPD (alter PC über LAN), Booster: Märklin Delta 6604, Netzteil: Conrad 30VA, Dekoder TAMS LD-G-31, LD-G-33, Piko???, LDT M-DEX-DC-F, Betriebssystem: OS: Mac 10.7 -> geplante Arduino Projekte...
Back to top
View user's profile Send private message
janvonnebenan



Joined: 22 May 2012
Posts: 33

PostPosted: 02.09.2012, 22:52    Post subject: Reply with quote

Hallo und schonmal danke für die Beiträge!
Und hier noch eine neue Version. Jetzt werden Weichenbefehle gespeichert, wenn der Fahrstrom abgeschaltet ist. Die Weichen schalten, wenn der Fahrstrom wieder eingeschaltet wird. Allerdings kann dann keine Rücksicht auf die Weichenschaltzeit genommen werden. Aber ich glaube, dass Interface 6051 verhält sich ähnlich.

Grüße
Jan

_________________
Ubuntu 12.04
Märklin C-Gleis 6021 (nicht gut aber schön)
Back to top
View user's profile Send private message
margau



Joined: 01 Sep 2012
Posts: 7

PostPosted: 17.09.2012, 14:16    Post subject: Reply with quote

Ich hab mich nochmal damit beschäftigt, und die Pinbelegung hier gesehen.
http://www.bogobit.de/mosta/

Geht hiermit Schiene Rot und Schiene Braun? Was muss dann wohin?
Back to top
View user's profile Send private message
janvonnebenan



Joined: 22 May 2012
Posts: 33

PostPosted: 17.09.2012, 19:12    Post subject: Reply with quote

Du brauchst einen Booster. Es geht mit jedem Booster, den man an die 6021 an den Boosteranschluss anschließen kann.

Siehe:
http://www.digital-bahn.de/info_kompo/booster.htm

Grüße
Jan

_________________
Ubuntu 12.04
Märklin C-Gleis 6021 (nicht gut aber schön)


Last edited by janvonnebenan on 17.09.2012, 19:53; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Rocrail - Innovative Model Railroad Control System Forum Index -> Zentralen (DE) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Support the Rocrail project  

Locations of visitors to rocrail.net

Rocrail - Innovative Model Railroad Control System topic RSS feed 


Board Security

77551 Attacks blocked

Powered by phpBB © 2001, 2005 phpBB Group