Hi , i'm firstly going to link to a thread I posted recently as it will help in understanding what i'm trying to achieve https://www.electro-tech-online.com...lway-dcc-accesory-decoder.162255/post-1411560 ,most of the relevant info comes toward the end of that thread , as you can see I solved the problem by using a ready made product that had only recently become available but a couple of problems have occured to me in that whilst the unit will energise either of the 2 relays and hence energise one or other of the 2 electromagnets via a DCC switching command it will depend on the model railway automation software to issue the DCC commands and if that experiences a hiccup it could result in a relay remaining energised after it should have switched off and subsequently lead to an electromagnet remaining switched on with the subsequent risk of fire as they can get quite hot ,I think I need some sort of variable timer to switch a relay off after a given number of seconds has passed (approx 3) even though the software is telling it to stay on , any ideas or comments will be most gratefully received . here is a link to the dual relay board , http://www.train-tech.com/index.php/accessories-extra/relay-controller .