I figured it was close enough to have it go off when you stop, but the delay makes sense. I did notice one minor issue, but it's not worth me going back, since I don't have a ready solution.
The voltage across the motor to actually trigger this is about 1.6 volts, after the drop across the Schottky bridge and the Emitter in the opto-isolator. With the Williams GG-1 and no cars, it'll actually start moving before that, and you do have a period of uncertainty where the lights may flicker a couple of times. This only happens when using the Cruise Commander 100 step mode and starting out in step 1. Since the opto and bridge need to be totally isolated and self-powered, I didn't have a ready answer for that. Perhaps your delay circuit might be the ticket, what did you have in mind? I was thinking of some hysteresis on the relay dropout would be the way to address it.
Since with even a couple of cars behind it, this isn't a factor, or if you start it out at anything but the first step of the 100 step mode of the Cruise Commander, I decided for this generation one circuit that I'd leave it as it was. However, for the next time...
It is slick to be able to add these features easily to a standard TMCC locomotive, now if I could only duplicate the Legacy sound, I'd have it all!
Originally Posted by prrhorseshoecurve:
I LIKE this idea as not only turning off the cab interior light but also any under cab running lights one may have with those newly developed light chips!
Is it safe to assume it will work in conventional mode as well?
No reason I can imagine that it won't work in conventional mode, it's strictly triggered from the motor voltage. The only issue I see is the power supply for the relay, that requires 12 volts. I think I'd probably use a lower voltage relay, and also add a super-cap to allow the circuit to work as you slow down and stop. Of course, you need some voltage to light the lights!
It was designed with command mode in mind, that's pretty much all I run.