Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Soundtraxx Tsunami Motor Control

6009 views
8 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    August 2008
  • From: Southeast Kansas
  • 1,329 posts
Soundtraxx Tsunami Motor Control
Posted by wholeman on Monday, June 14, 2010 9:12 PM

 What is the best way to adjust the motor control on a Tsunami?

I played with CVs 210 and 209 and the mind boggling thing is that when the loco is in an odd numbered speed step, the lights go out, and when the loco is in an even speed step the lights come on, weird.

Do I need to play with the speed curves?

Will

  • Member since
    May 2008
  • 4,612 posts
Posted by Hamltnblue on Monday, June 14, 2010 9:18 PM

 When in doubt do a reset and start over.

Did yo download the manual from the soundtraxx site?

Check out the users guide as well as the technical manual. The info there is more in plain English.

 http://www.soundtraxx.com/manuals.php

Springfield PA

  • Member since
    August 2008
  • From: Southeast Kansas
  • 1,329 posts
Posted by wholeman on Monday, June 14, 2010 9:44 PM

 I will give it another shot.  I have downloaded and printed both manuals and they have been helpful and easy to follow unlike some other manufacturers' manuals.

Will

  • Member since
    October 2006
  • From: Western, MA
  • 8,571 posts
Posted by richg1998 on Monday, June 14, 2010 9:49 PM

wholeman

 What is the best way to adjust the motor control on a Tsunami?

I played with CVs 210 and 209 and the mind boggling thing is that when the loco is in an odd numbered speed step, the lights go out, and when the loco is in an even speed step the lights come on, weird.

Do I need to play with the speed curves?

 

There is no "best" way. What ever works best for you. Depends if you are a rivet counter. If you have never run a prototype loco before, might not be an issue.

I say this because the past two to three weeks there has been an exhaustive discussion in the SoundTraxx Yahoo DCC group on BEMF used in the Tsunami and there are a lot of opinions, defining "good running". You can look at the messages without joining Yahoo.

Above all, don't forget, we are just boys playing with toys.

Tonight I was running in consist, a HO BLI F7 A/B with Tsunami and a PCM A/B F3 with LokSound. Pretty much using the default settings in the 128 mode. Locos start crawling at about 1 mph. All four ran very well. Have to do some fine tuning of the prime mover sounds.

Rich

If you ever fall over in public, pick yourself up and say “sorry it’s been a while since I inhabited a body.” And just walk away.

  • Member since
    July 2003
  • From: Metro East St. Louis
  • 5,743 posts
Posted by simon1966 on Tuesday, June 15, 2010 7:28 AM

wholeman
What is the best way to adjust the motor control on a Tsunami?

With a PC using Decoder Pro

Simon Modelling CB&Q and Wabash See my slowly evolving layout on my picturetrail site http://www.picturetrail.com/simontrains and our videos at http://www.youtube.com/user/MrCrispybake?feature=mhum

  • Member since
    October 2006
  • From: Western, MA
  • 8,571 posts
Posted by richg1998 on Tuesday, June 15, 2010 10:47 AM

Here is a very simple procedure coiped from the Yahoo SoundTraxx Group. Enjoy.

Rich

Tsunami PID/BEMF CV Tuning Concepts

I spent quite some time on the phone with Soundtraxx today. The following is a write up of what I was told. It includes knowledge I have gained recently in researching the PID process in general and the Tsunami decoders in particular. A PID controller is a well-known method of doing “process control”. In our case the “process” is the speed of our Tsunami equipped locomotives. And the task we are working towards is producing a process/procedure that will allow the user to find/discover the best/correct settings for their particular locomotive that will give them the performance they want.

It is also important to understand that the values for a particular locomotive – make and model and scale – may not work for other locomotive … and may not even work for a ‘sister’ locomotive (one that was produced in the same run of the same make and model). And when we are talking about this kind of thing there is an assumption that the decoders are also the same make and model. Yes, certainly if you have two sister locos and you have one of them running the way you like it then you should try the same settings (CVs) for this new one … and at least use them as a starting point. But don’t be surprised if you find you have to change one or more CV values – nor even if the settings for one are significantly different from those that ‘work’ in the other one.

One of the most important aspects of a PID controller is the idea that it is not expected to achieve the “perfect” value on the first pass. It is an iterative process and will reach the targer (in our case target speed) after several successive corrections. And, precisely due to this iterative nature – the formula that is a PID controller uses the history of the past corrections … in addition to the current measurements (in our case the BEMF value that is read during the “off” segments of the PWM. The idea is to “home in” on the correct value for the PWM – and then to keep adjusting the PWM in very tiny adjustments … all with the goal of having the motor turn at a constant RPM for a given speed setting. And also with the goal of changing from any current speed step to a new speed step … smoothly (a nice steady increase or decrease in speed that results in the operator seeing his train moving in a manner that approximates what happens on a real train.


  1. CV 209 is the Kp in the PID. It should usually be a low number (25 and below). Kp is the ‘current error’ value. Think of it as the ‘base value’ (size) of the error (difference between the target and the actual). But the value of CV209 is a range from 1 to 255 – so what CV 209 really represents is a “percentage” of the Kp that will be used.

  2. CV 210 is the Ki in the PID. It should usually be a low number – and it will usually be a lower number than 209. Ki is the integral error value – that is to say that it is the sum of the past few changes (corrections). Think of it as an ‘adjustment’ to the Kp – based upon what has happened the past few times the PID value has been computed. Again the value of CV210 is not the actual value of the Ki but rather it is the percentage of the computed Ki that will be used to form the actual correction (final PID output calculation) to the PWM.

  3. There is a “D” in the Tsunami PID controller. It is not “externalized” and Soundtraxx does not think that we, the users, should be messing with the “D” in the PID formula. The Kd in the PID calculation represents the rate of change, over time, of the PID calculation. Think of it as the slope of the curve of the error. The value for the “D” works the same way as the values for 209 and 210 … it is also a range/percent.

  4. Turn off all momentum (CVs 3 and 4) before starting. It is probably even a good idea to just do a decoder reset.

  5. It is highly unlikely that you will be successful in tuning the motor performance CVs correctly – if the locomotive wheels or the test track are not clean. Always start all such procedures with cleaning the wheels and track!

  6. Use 128 speed step mode for all tuning (and running?). It is very hard for the PID controller to do its job – to provide smooth changes of speed and relatively constant RPM when the speed isn’t changing – if you only provide it with 28 steps (because each individual value represents a much larger percentage of the range of the throttle (think PWM).

  7. CV 212 is the “intensity” of the PID calculation that will be used. Think of the PID calculation as a number. That number is actually a ‘correction’ for an error (the result of the PID calculation). If the value of 212 is 255 then 100% of that correction will be used. If the value of 212 is 128 then 50% of the correction will be used. An example will help. Let’s say that the target speed is 100, the current speed is 90. So the “error” is –10. And the PID calculation (for simplicity of this example of how 212 works) is +10. Sooooo, if 212 has a value of 128 then the PID correction, this time around, would be +5. As the value of 212 is reduced the number of iterations of the PID correction process that are required to reach a given target from a given start/error point will take longer and longer. Truly low values of 212 can produce a loco that is very ‘sluggish’ in terms of throttle response.

  8. CV 213 is the specification of how often a BEMF measurement is taken. It is a frequency in a number of milliseconds – if the value in 213 is 23 then it takes a measurement every 23 milliseconds. Let’s use an example from real life … this is “how often does the nurse take your temperature?”.

  9. CV 214 is the duration of the BEMF ‘window’ (it is NOT the “D” in PID). It is how long the window is open. This is the “how long does the nurse leave the thermometer under your tongue?”.

  10. If you set the BEMF cut off level (CV 10) to a small value then the PID controller will be ‘in use’ over less of the entire speed range. This is, in general, a good thing. Values between 20 and 40 are recommended.

  11. What does “starts moving” mean? Many of the tuning procedures ask you to do something until the locomotive start to move. There are 3 kinds of ‘movement’. There is the first little bit of movement – it may even be a little lurch – but the loco does not move continuously and will spend more time stopped than moving. The second phase is where the loco is moving but it may not be at a steady rate and it may not be “smooth”. This is not “tie crawling” speed. The third phase is where the loco is definitely moving and is well above “tie crawling”. You would still call it ‘slow’ but you wouldn’t call it very slow. For most PID tuning procedures when it says “until it starts moving” we are talking about the 2nd phase.

  12. Locomotives should be tuned “light” (no train cars behind them). You need to know that the loco will perform well on its own. A loco with a train behind it may require more throttle in order to move at the same speed as it does light – and that’s a good thing and is a better simulation of an actual locomotive (and will sound better).

This is all I’m going to write up at this time. I intend to use this information in order to develop a procedure (or small set of procedures) that will allow you to find the best settings for the motor performance CVs - 209, 210, 212, 213, and 214 primarily … but also the BEMF cutoff, the momentum, and the trim CVs.

- Jim Betz (14 June 2010)




If you ever fall over in public, pick yourself up and say “sorry it’s been a while since I inhabited a body.” And just walk away.

  • Member since
    May 2008
  • 4,612 posts
Posted by Hamltnblue on Tuesday, June 15, 2010 3:05 PM

 Great info. Thanks for sharing.

Looking forward to the future write up. Smile

Springfield PA

  • Member since
    January 2010
  • 208 posts
Posted by WPAllen on Tuesday, June 15, 2010 5:33 PM

I agree. Good write up. I have copied it for my records.

  • Member since
    October 2006
  • From: Western, MA
  • 8,571 posts
Posted by richg1998 on Tuesday, June 15, 2010 5:37 PM

Hamltnblue

 Great info. Thanks for sharing.

Looking forward to the future write up. Smile

 You are welcome. I follow the Yahoo SoundTraxx Group along with some other DCC Yahoo Groups as I use the Tsunami, Digitrax and LokSound decoders along with the NCE Power Cab at home and Power Pro at the club. I will try to post any follow ups. Some may think it is being overdone.

Rich

If you ever fall over in public, pick yourself up and say “sorry it’s been a while since I inhabited a body.” And just walk away.

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!