I think I understand your thought here now: the idea is to eliminate the solenoid built into the turnout and use a switch which would last longer. Good thought - I'm going to put this in the "future improvements" category (which I have plans for things like train signal lights that change from red to green and back again when the train is allowed to pass certain sections of track, working crossing arms, maybe a miniature control panel like they have for real trains that shows where a train is on the tracks, and other ideas. The biggest long term idea is integration to a computer where I would have an application that controls the train(s).)OK. Too bad. It would help save power, and extend the life of your turnout solenoids, if you can figure out how to interface a SPDT switch with the points, many "false switch" requests could be avoided.If I understood your last question correctly, the turnout has a single connector with three contacts, and requires a momentary pulse of voltage to be applied to either A & B (shown in my original schematic) to turn one way or B & C to turn the other way. So absence of voltage has no control.
I meant that I have some 4093's. I do also have 4106's.OK, there are very few CMOS IC's that have Schmitt-trigger inputs.NAND Gate/Schmitt trigger: I have some of those, so I can easily do that. I expected I needed to invert my signal somewhere along the way, but I was going to use a hex inverter. I can use the Schmitt trigger NAND. Thanks for the suggestion.
The 4093 is one of them.
The 4106 inverter is another.
For the purpose of my schematic, consider the two interchangeable.
They are both very useful IC's. However, you'll probably find that the 4093 is less expensive. It is also far more useful than the 4106, as it can be used to construct any other logic gate function, whereas the 4106 cannot.
Not mud, we're headed the same direction. I have already played with that concept of using flip-flops and had planned to incorporate flip-flops to avoid the multiple triggering problem. I have some 4013's that work well. I was originally trying to keep the thread simple, but you have had so many great ideas and suggestions I didn't want to muddy the water with new aspects. The thought was that one flip-flop will trigger one direction on SET and the other direction on RESET.Just a thought...
Placing the IR emitter/detector pair at an angle across the track would help reduce multiple activations of the switch solenoid due to the gaps between the cars. Otherwise, you'll get the solenoid activating once (or more) each time a car passes.
I've been idly thinking about adding a flip-flop to the circuit. The idea with the flip-flop is that once the solenoid has been actuated in one direction and the 555 timer has expired, the flip-flop is set or reset, and the output of the flip-flop is connected to the RESET input of the 555 timer. This would prevent the same solenoid from actuating again until the other solenoid was actuated, which would reset or set the flip-flop.
Clear as mud?
But I didn't think of placing the sensors at an angle! The gap occurred to me, which is what triggered the idea of the flip-flop.
--------------
Regarding the new ckt ideas:
It's been a while, but I thought when you pulled inputs D and CLK down, they had to be pulled down through resistors, but I see in your diagram they are not, so that is easier.New stuff: over on the right, a CD4013 D-type flip-flop has been added.
Note that the Clock and Data inputs are grounded.
I understand the concept of the paring and implementation of the 4013, but why are C9/C10 required? If the coil can pull the SET/RESET high, how does the cap help?When the timer's output goes low, the transistor turns off, and the coil pulls the cap high again, which triggers either the SET or RESET input of the 4013.
...That's almost exactly what I want to do! I'm planning to add Red/Green pairs at the points where the trains can be stopped waiting for the other train to get to it's stop point.[eta]
Off to the far right, you'll see a couple of transistors with 6.2k base resistors, LEDs, and 680 Ohm current limiting resistors. If you make those red and green LEDs, you'll have switch point indicators for your approaches.
Which leads to another aspect I'm think I'll need to deal with: The state of everything when stopping and starting the whole system. I haven't worked out the logic yet, but initially I was thinking I'd have a master override switch tied into the two stop point sensors on the exchange tracks that prevents the trains from going any further. That way, when I want them to stop, I flip that master switch and wait for the trains to both stop, then power everything down. Then I'll have a known stop/start state, as opposed to being uncertain where the trains may stop and how the switches will act upon powerup. I figured I'd use the master switch idea for now and and cross the bridge to implement more flexibility later.
I thought the 4013 prevented multiple triggers of the solenoids until the alternate sensor triggered the turnout the opposite direction. In other words, once the RESET on one timer (say U3) is triggered, that timer (U3) won't fire again until the other timer (U5) gets triggered by a train at another point on the track. Can you clarify?Due to the 4013 addition, the installation of the IR detector/emitter pair at an angle across the track is no longer suggested; as a matter of fact, it would be best for them to be just barely above the top of the rails. This will ensure that it's tripped a bunch of times due to the passing of the wheels; in case busy little fingers happen to be switching the points the wrong way, the movement of the train past the IR emitter/detector pair will continually switch the points to the correct position, if they are not there already.
I won't be able to test this ckt until I get a few parts I don't have. But I should be able to test the solenoid activation tomorrow. This is looking very promising!
Thanks,
Ken