DCC How To Wire An V4 XL decoder

Discussion in 'Techniques' started by Pete Harvey, 12 November 2014.

  1. Pete Harvey

    Pete Harvey Active Member

    Hi all I have been working on my Heljan Deltic and modeling as 55016 yes the purple one.

    I have made the lighting boards for each end and I have mounted and connected up a Loksound XL V4 Leggomanbiffo Sound loaded, decoder to the motors, the only thing I'm stumped on is the lights as I would like proper modern type lights.

    55016 Lights.jpg
    Markers fronts and rears on F0 and will change with direction, with the rears switchable (on off) if possible and the fans, this is where I'm lost with the XL.

    I would like Day & Night high viz lights as independent and independent head code lights at either end.
    My question to those that have more experience with the V4 XL which AUX connectors should I use out of the 10 available on the XL?

    All suggestions and advise appreciated

    Buckjumper and Dog Star like this.
  2. BrushType4

    BrushType4 Western Thunderer

    Before any one answers your question I think you need to post a few more pictures of the build and painting of that beast. :)
  3. Pete Harvey

    Pete Harvey Active Member

    Ok here are some pictures.











    More to follow.
  4. Pete Harvey

    Pete Harvey Active Member

    That's it.

  5. Pete Harvey

    Pete Harvey Active Member

    I have a 4mm version in build and will try to get that finished during 2015.


    The buffers are solid and from A1 Models, the ETH connectors are mine and a link to them is in the 3D Printed section of my website.
    I shrunk my 7mm Deltic set and had it etched in brass for the steps.

    I will be fitting Nano Led in the 4mm model from Express Models.

  6. BrushType4

    BrushType4 Western Thunderer

    Superb! I hope someone comes forward and let's you know how to get the chip working as you want. Your model deserves it.
  7. adrian

    adrian Flying Squad

    That is a brave and brilliant bit of hacking the Heljan model. Sorry I can't help with the sound chip but the etchings and paintwork look fantastic.
  8. Cliff Williams

    Cliff Williams Western Thunderer

    Its eas yPete

    Use front headlights F0 for front headcode, rear headlights for rear headcode
    Use Aux 1,2,3,4,5,6 as needed to light up other lights.
    YOu will then need to assign a function key to the aux ports, you may need to get help from Biff on this, get the loco wired up then pop over to see him and he will do the magic on the Lokprogrammer.

    My locos tend to use six aux ports as well as front and rear headlights, for example my 37/4s and 24/1s are:
    Front route indicator/marker lights white
    Rear route indicator/marker lights white
    Aux 1 - No1 cab high intensity/ lucas headlights
    Aux 2 -No1 cab lights
    Aux 3 - No1 cab red tail lights
    Aux 4 - No2 cab high intensity/ lucas headlights
    Aux 5 -No2 cab lights
    Aux 6 - No2 cab red tail lights

    Usually these auxs are assigned to F13 onwards, then I will tap on things like Notch up, notch down, reduce volume 50%, shunt mode, accell brake time which can take the function keys over F20, but worth the effort for sheer fun!.
    Dog Star and BrushType4 like this.
  9. Pete Harvey

    Pete Harvey Active Member

    Thanks Cliff

    I will post my results here when done.

    If anyone else has any ideas please contribute?

    The more the merrier.

  10. Softvark

    Softvark Active Member

    Not sure if it's relevant for your requirement but my blue diesels need the requirement to have either one or both rear lights switchable. I use the little circuit below to enable me to select either or both of the rear lights using Aux 1 and Aux 2 (although it can be any of the XL v4 aux outputs) and feed the relay from the rear light output of the decoder. This way the selected rear light configuration automatically swaps ends when you change direction and you can separately choose which rear light configuration (or indeed no rear lights) are on by turning on Aux 1 or 2.

    The relay I tend to use is this one from Rapid electronics.

    Hope that's of use to someone.
  11. Steph Dale

    Steph Dale Western Thunderer

    Like it - a great way to get some extra functionality out of a decoder without needing actual decoder functions! The link for the relay is useful too...
  12. Pete Harvey

    Pete Harvey Active Member

    Well everything with wiring the V4 XL decoder is going well the last part I'm stuck on is how to wire the fan control and what to keep from the original Heljan parts?

    Do I wire the black wire to the Common and the red to a function or do I wire the black to the Ground terminal on the decoder and the red to a function?

    All suggestions welcome?

    I will post images of how I have wired everything when it's all done.

  13. richard carr

    richard carr Western Thunderer


    I don't think it matters, the only thing that wil change is the direction of rotation of the fan

  14. warren haywood

    warren haywood Western Thunderer

    Hi Pete.
    Can I ask where you got the wipac lights from. I have a couple of these to do soon in 7mm.
    Cheers Warren
  15. Pete Harvey

    Pete Harvey Active Member

    Hi Warren

    If you look back at the images of the build before I painted the model you will see the light units are etched.

    If you contact me trough my website (link Below) I will give you more details on the light units.

  16. Softvark

    Softvark Active Member

    I've just had a look at a Heljan Class 20 fan board (I think they are all the same) that was lying about and it doesn't matter which way round you connect red and black. On the board the first thing the supply goes to are 4 diodes configured as a bridge rectifier - then to the voltage regulator. Therefore you can wire them either way around and the fan will still go in the correct direction.

    I do recall on a couple of Heljans that I had to wire another diode in series with the fan connector in order to drop the voltage by 0.7v to get the fan to go slow enough - there wasn't quite enough range on the preset. However others have been OK.

    One of the really nice features of the XL v4 is that you can configure an aux output to ramp up the voltage slowly when turned on and correspondingly down when turned off. On a JLTRT Class 37 I wired a small geared motor from DCC Supplies directly to one of these aux outputs and turned it on with the same function as the sound of the fan. After a bit of experimenting I managed to get the sound of the fan speeding up synchronised to the slowly increasing speed of the fan rotation. That was very satisfying!
    Len Cattley and BrushType4 like this.
  17. Pete Harvey

    Pete Harvey Active Member

    Thank you for your replies but where on the decoder and how do I connect the Fan Controller?


    Fan Controller.jpg
  18. Pete Harvey

    Pete Harvey Active Member

    Can someone please let me know how and where on the Loksound XL decoder I need to connect the Heljan Fan controller?

  19. Softvark

    Softvark Active Member

    Assuming you want to connect the fan to Aux 1 on the XL v4, connect one wire from the fan board to the Aux 1 terminal and the other wire to the common +ve terminal. It doesn't matter which wire you connect to each terminal. The actual terminals are on the right hand side of the board - Aux 1 is the 4th terminal from the top and the common +ve is the bottom terminal. They are both labelled (common +ve may be labelled as U+) and you can see them in the picture on this page - http://www.esu.eu/en/products/loksound/loksound-xl-v40/

    The manual also shows this clearly on page 16. You can get the manual in pdf format from this page http://www.esu.eu/en/downloads/instruction-manuals/digital-decoders/

    If you want to connect to Aux 2 (or any other Aux) simply connect one wire to Aux 2 and the other to the common +ve, etc.

    Hope that helps.
  20. Pete Harvey

    Pete Harvey Active Member


    Thank you for your reply, now I have a definitive answer on how to connect the fan controller.

    I can work it in to the wiring scheme for the model.

    I do have the maV4 Manual on .pdf but with an XL being an expensive item, I did not want to connect it incorrectly and release the blue smoke when I tried it out.

    More to follow soon.