RE: Arduino as a 16x function plus 6x servo DCC decoder

#1 von RudyB , 06.10.2014 18:46

An Arduino can be used as DCC decoder for 16x function oututs and 6x servos. It has a price tag under €5,- (including a fast opto-coupler).

This works thanks to the people behind mynabay who made available the code for decoding the DCC commands. I added some software to control the outputs and the servos.

Here's a video that shows an ECoS controlling the Arduino DCC decoder.


Youtube channel on Model Railway, Traincontroller, Arduino and more


RudyB  
RudyB
InterRegioExpress (IRE)
Beiträge: 268
Registriert am: 20.09.2014
Homepage: Link
Gleise Peco 75
Spurweite H0
Steuerung TrainController
Stromart Digital


RE: Arduino as a 16x function plus 6x servo DCC decoder

#2 von Der Ruinenbaumeister , 06.10.2014 19:35

Great work. This is exactly what I need for my projects. (My first attempts to create such a decoder were not succesful.) Will there be a version for the MM format?


Gruß
Clemens

Mein Blog.


 
Der Ruinenbaumeister
EuroCity (EC)
Beiträge: 1.191
Registriert am: 01.04.2011


RE: Arduino as a 16x function plus 6x servo DCC decoder

#3 von RudyB , 06.10.2014 19:54

No plans for an MM version (yet), cause I have not been looking for software that decodes the MM commands yet. Who knows maybe that software does exist. If it can be found, it should be possible to create someting similar to the current DCC version.


Youtube channel on Model Railway, Traincontroller, Arduino and more


RudyB  
RudyB
InterRegioExpress (IRE)
Beiträge: 268
Registriert am: 20.09.2014
Homepage: Link
Gleise Peco 75
Spurweite H0
Steuerung TrainController
Stromart Digital


RE: Arduino as a 16x function plus 6x servo DCC decoder

#4 von Der Ruinenbaumeister , 06.10.2014 22:01

I am going to take a closer look. Maybe I can create my own MM version.


Gruß
Clemens

Mein Blog.


 
Der Ruinenbaumeister
EuroCity (EC)
Beiträge: 1.191
Registriert am: 01.04.2011


RE: Arduino as a 16x function plus 6x servo DCC decoder

#5 von M-Gleis , 07.10.2014 17:30

Hi RudyB,


great news - where do you get the hardware from ?

Ok - now that i had a closer look to your Homepage i found it - so it's time for me to take a closer look to the world of arduino

One open issue - speed opto coupler - which did you take ?


Mit scheppernden Grüssen

Ralf

--------------------------------------------------------------------------------------------------------


 
M-Gleis
RegionalExpress (RE)
Beiträge: 63
Registriert am: 27.07.2012


RE: Arduino as a 16x function plus 6x servo DCC decoder

#6 von Nichteisenbahner ( gelöscht ) , 08.10.2014 15:23

Hi,

great!

I've been playing with my arduino since some time and just started with the idea that it should be possible to decode the DDC signal with it to have a fully field-programmable function decoder.

Great that you already managed it.

So, what kind of high-speed-optocoupler are you using?
And, can you give away the code?

Thanks
Martin


Nichteisenbahner

RE: Arduino as a 16x function plus 6x servo DCC decoder

#7 von Nichteisenbahner ( gelöscht ) , 08.10.2014 15:37

Zitat von M-Gleis
One open issue - speed opto coupler - which did you take ?



Hi,

is this the right one?

http://www.ebay.de/itm/320840380846

Thanks!
Martin


Nichteisenbahner

RE: Arduino as a 16x function plus 6x servo DCC decoder

#8 von RudyB , 09.10.2014 00:13

The opto-coupler is a 6N137. The schematics are from here:
http://mynabay.com/dcc-monitor/16-arduino-dcc-monitor-2

The software will be published soon. I first want to add some software to be able to tune the servo min and max angles and invert rotation, while working under the table.


Youtube channel on Model Railway, Traincontroller, Arduino and more


RudyB  
RudyB
InterRegioExpress (IRE)
Beiträge: 268
Registriert am: 20.09.2014
Homepage: Link
Gleise Peco 75
Spurweite H0
Steuerung TrainController
Stromart Digital


RE: Arduino as a 16x function plus 6x servo DCC decoder

#9 von RudyB , 10.10.2014 10:03

Two new video's are out on the Arduino as DCC servo decoder. Also the software is available now.

The first video shows how the servos min and max angles can be tuned.

The second one shows the installation and configuration of the Arduino software.

To the videos and the Arduino software download.


Youtube channel on Model Railway, Traincontroller, Arduino and more


RudyB  
RudyB
InterRegioExpress (IRE)
Beiträge: 268
Registriert am: 20.09.2014
Homepage: Link
Gleise Peco 75
Spurweite H0
Steuerung TrainController
Stromart Digital


RE: Arduino as a 16x function plus 6x servo DCC decoder

#10 von M-Gleis , 30.10.2014 10:45

Hello Rudy,

my Arduino arrived and after playing with blink sketches I was ready for the next challenge The DCC Monitor – I created the circuit documented on the mynabay homepage, but used an HCPL 2601 optokoppler (Conrad has no 6N137 in stock). The optopkoppler didn’t fit into my breadboard, so I had to extend the pins (which took 2 evenings to find that) – and surprise – DCC Monitor is working Using the DCC_Basic_Acc_Decoder example I can switch LED on / off via my MS2. My wife was not impressed

Still waiting for my china servos, I decided to control signals with my Arduino. 16 Digital OutPins means 16 signals to control and a signal is only a red and a green LED. Can’t be a Problem …. But I haven’t found the answer yet.

Did anybody thought about using an Arduino as an signal decoder ?


Mit scheppernden Grüssen

Ralf

--------------------------------------------------------------------------------------------------------


 
M-Gleis
RegionalExpress (RE)
Beiträge: 63
Registriert am: 27.07.2012


   


  • Ähnliche Themen
    Antworten
    Zugriffe
    Letzter Beitrag
Xobor Einfach ein eigenes Forum erstellen
Datenschutz