Welcome to the forum   
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post in this topic Go to first unread post in this topic
Offline revmox  
#1 Posted : 18 November 2024 05:00:38(UTC)
revmox

Australia   
Joined: 26/05/2021(UTC)
Posts: 198
Location: Australia, East Maitland, NSW
During investigation into a problem with mfx operation I developed an Arduino based sampler program to record and decode the mfx signal from the track - that can be found in this forum under the Marklin Locos - MFX or DCC topic.

As a separate spin off I developed a rather grotesque track powered mfx sniffer sitting on a 4411 chassis to confirm my work. It shows the address of each loco the controller is sending commands to - I chose to also show direction and speed. It can just be placed on the track to report on what is happening - no wiring or connections needed. While the carriage itself is very unlikely to be of any interest to anybody the Arduino program powering it can be used to capture any mfx frame and could easily be the basis of a cheap decoder or custom controller. It works with single and dual MS2s but I have no way to check other systems.

For those wanting to dig deep into the workings of mfx and build something I recommend Stefan Krauss's site where you will find a great pdf. Site is in German but I've supplied him an English translation that can be downloaded from there.

https://www.skrauss.de/

I used a Mega 2560 board for my carriage because I needed to drive an LCD display and I already had all the bits in my electronics collection - but any of the small processor boards could be used for a very compact device. The sniffer code isn't pretty - it is just a quickly hacked down version of the larger sampler program.

The commented Arduino sniffer and sampler code and the interface diagrams (plus some other rubbish) can be downloaded from

https://mega.nz/folder/U...A#xyaaqkKX0ypSpaHtTKZENw


Sniff3.jpg
Sniff1.jpg
Sniff2.jpg

Edited by user 19 November 2024 04:02:00(UTC)  | Reason: Not specified

thanks 5 users liked this useful post by revmox
Offline stevend  
#2 Posted : 18 November 2024 23:51:44(UTC)
stevend


Joined: 25/01/2009(UTC)
Posts: 28
Location: Christchurch,
Hi,

This is amazing! Good work there Sir!

The link is not working, are you able to resolve that for us?

Dion

Offline revmox  
#3 Posted : 19 November 2024 04:04:02(UTC)
revmox

Australia   
Joined: 26/05/2021(UTC)
Posts: 198
Location: Australia, East Maitland, NSW
Originally Posted by: stevend Go to Quoted Post
Hi,

This is amazing! Good work there Sir!

The link is not working, are you able to resolve that for us?

Dion



Link reloaded - works when I test it - let me know if the problem persists and I will try something more drastic.

Also, corrected interface diagram, 47pF capacitor on wrong input.
Offline kiwiAlan  
#4 Posted : 19 November 2024 17:00:17(UTC)
kiwiAlan

United Kingdom   
Joined: 23/07/2014(UTC)
Posts: 8,456
Location: ENGLAND, Didcot
Originally Posted by: revmox Go to Quoted Post
Originally Posted by: stevend Go to Quoted Post
Hi,

This is amazing! Good work there Sir!

The link is not working, are you able to resolve that for us?

Dion



Link reloaded - works when I test it - let me know if the problem persists and I will try something more drastic.

Also, corrected interface diagram, 47pF capacitor on wrong input.


I could open the link from the UK. Thanks for the project.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

| Powered by YAF.NET | YAF.NET © 2003-2025, Yet Another Forum.NET
This page was generated in 0.414 seconds.