Substitute electronic trigger for pushbutton

Thread Starter

Circuit Breaker

Joined Dec 15, 2010
18
As suggested, I am posting a new thread to an earlier one from tonight.

Attached is a schematic of a time delay circuit that is activated by a pushbutton switch. I am looking for a way to activate this circuit from the the output of a different circuit. I was thinking of using an NPN transistor and another member mentioned using a Mosfet IRF540. Another member replied that neither of these would work in my situation.

The circuit that I would like to use to trigger the time delay circuit is a commercially built current sensing detectors output, which is (-) negative 12 VDC. The output configuration is a push-pull and can sink and source current and has a maximum output of 400 ma.

So what I'm hoping for is if someone can tell me what kind and size of device I could use to trigger the time delay circuit and what leads would get wired to what on my two circuits to accomplish this.

Thanks again, for any help and advice.

Circuit Breaker
 

Attachments

Thread Starter

Circuit Breaker

Joined Dec 15, 2010
18
I can sure try. It doesn't appear that I can add another attachment to this thread. Having never done this before I presume I wouls start a new thread with the .PNG file attached to it?
 

Wendy

Joined Mar 24, 2008
23,429


I looked at the properties of the file and got the internet address. {img}{/img} will take it from there.
 

Thread Starter

Circuit Breaker

Joined Dec 15, 2010
18
The purpose of this circuit is to automatically stop and start a model railroad train that is controlled using DCC (Digital Command Control). I would like for a current sensing detector employed in an electrically isolated section of track to activate my time delay circuit when it senses a train is present. The time delay circuit would then activate a DPDT relay to switch track power from DCC to DC in another electrically isolated section of track. By introducing DC power to a DCC decoder equipped locomotive will cause the locomotive to come to a slow smooth stop until DCC power is reintroduced to the isolated track. That would happen after the time delay relay de-energizes and the locomotive will slowly resume its preprogrammed speed.
I suppose I could use a SPST relay in place of the pushbutton to be activated off of the current sensing detectors output but I was hoping for something perhaps a little bit more sophisticated and/or compact.
Any thoughts on this concept would be appreciated.

Circuit Breaker
 

CDRIVE

Joined Jul 1, 2008
2,219
Is this 555 being powered from the RR power supply? If it isn't and if they don't share a common gnd, an OptoIsolator (as the interface), might be in order. You would use the collector to pull the trigger pin to gnd, in place of the switch. ;)

FYI: At nearly 65 years old I still get giddy when I see a really good model railroad!
 

CDRIVE

Joined Jul 1, 2008
2,219
I just had a brain fart... Since the polarity of the tracks are not constant you might be better off with a 'Current Sensing Relay'. These relays have very low series resistance and are placed in series with the load.

EDIT: I did a quick search and didn't find any suitable DC models. The AC models work on inductive principles like a clamp-on meter. Others may know though.
 
Last edited:

Thread Starter

Circuit Breaker

Joined Dec 15, 2010
18
No, the 555 and all of my electronic gizmos are powered from a highly filtered, regulated and dedicated supply. Your suggestion of using an OptoCoupler certainly has merit. Unfortunately I have to plead ignorance on having any knowledge of what type of opto to use, where to hookup all the pins to my circuits and what resistors, if any, may be needed and where.

As a sidebar to your FYI, I am pleased that you enjoy a well built model train layout. I've been modelling trains for over 20 years and am a stickler on detail. It brings life to the layout in my estimation.
 

CDRIVE

Joined Jul 1, 2008
2,219
First off let me say that I've been down with the Flue or possibly even walking pneumonia for the last two weeks. As a
consequence my brain is missing on a few cylinders. So please bare with me if I repeat myself or get something wrong.

Anyway, I did a quick read at the Digitrax site because I had no idea what DCC is. After the quick primer I believe I have a basic understanding.

Please correct me if any of the following is incorrect.

(1) The voltage to the rails remain constant.
(2) The polarity of the rails remain constant.
(3) Digital control packets are superimposed on the DC that powers the rails.
(4) Each Loco has a decoder module that controls speed and direction of said Loco.
(5) If DCC is lost the decoder puts the Loco into a controlled (realistic) stop.

Your 555 circuit:

(1) This track will be electrically isolated from the main line.
(2) Prior to triggering the 555, DCC powers this track through one pole of your SPDT (K1) relay.
(3) When a Loco enters this track some sort of current sense or other means is required to trigger U1.
(4) When U1 is triggered K1 will switch this track from DCC to pure DC.
(5) After U1 times out K1 switches this track power back to DCC.

Do I have anything wrong here? If not, is there any reason that you couldn't employ a IR Transistor and Diode hidden in
something creative along the tracks? It will probably be easier than current sensing.
 

Thread Starter

Circuit Breaker

Joined Dec 15, 2010
18
Sorry to read of your bout with the flu. Nasty stuff so I'm glad you are on the mend.

I am most impressed and must commend you for actually going to the trouble to research DCC. You went to the right source for your research. Digitrax is one of the pioneers in DCC technology. You are absolutely correct on all of your counts except that the digital packets are superimposed on AC rather than DC. You now possess more knowledge about DCC than probably 50% of the model railroaders who use it.

I see no reason why an IR transistor and LED would not work. An excellent suggestion! And you are correct when you say IR would be better than current sensing. I employ current sensing in other areas of the layout and it will false trigger on occasion, especially in high humidity. The area where I would install them across the rails is hidden by a "mountain". The only question left for me to ask is which leads of the IR transistor would replace the pushbutton switch leads?

Now I see why you electronic engineers get the big bucks.
 

CDRIVE

Joined Jul 1, 2008
2,219
You are absolutely correct on all of your counts except that the digital packets are superimposed on AC rather than DC.
Oops, I just assumed it was HO .
Now I see why you electronic engineers get the big bucks.
Uh, sports figures and actors make big bucks. In comparison, Engineers make a barely respectable living. ;)

I'll get back to you soon with a proposed circuit. I'm not going anywhere today.:(
 

Thread Starter

Circuit Breaker

Joined Dec 15, 2010
18
Oops, I just assumed it was HO .

Actually, I am HO. I have included an excerpt from the NMRA (National Model Railroaders Association) which is the Bible when it comes to model railroading for both users and manufacturers that addresses the issue of the actual type of current used in DCC. Also, I apologize for having neglected to respond to your count on superimposing the DCC signal which is also addressed in the excerpt. My sole reason for bringing this to your attention is purely to prevent any misconception or false information.

"Digital Command Control uses a bipolar Direct Current signal to provide power and transmit data. DCC can also be described as a special form of alternating current (AC). One of the main differences between Command Control systems is that DCC, unlike previous Command Control systems, puts a 100% digital signal on the rails and derives both power and information from the same digital signal. The digital data is not superimposed on a DC or AC waveform, nor does it use high frequency signals in addition to the power applied to the track.
Since the signal is bipolar DC, a DCC waveform is not a sine wave. Instead, the voltage quickly switches from +12 volts to -12 volts.".
 

CDRIVE

Joined Jul 1, 2008
2,219
Here's the basic idea. The components used are a PhotoTransistor, LED and a 2N2222 to provide the proper logic (collector high prior to loco detection) for the trigger pin of the 555. C1 is required to prevent the trigger pin from being locked low which will prevent the 555 from timing out. These components should be available at Radio Shack and are not critical because the distance between the LED and the PhotoTransistor are close.

A note or two here:
We have members here that have extensive experience with Opto Electronics, so if you desire Infrared TX/RX please post that. Those members can recommend an IR Diode-PhotoTransistor combo better than I can.
Also, you will note that this scheme positions the LED and PT on opposite sides of the track. I believe that there are IR modules available that are mounted in the same package and work via reflection. The advantages would be two fold, in that the Q1 would be eliminated and the module would be positioned on only one side of the track. Oh yeah, it would also be IR, so it wouldn't be visible. Since I'm too sick to do anything else I'll probably post again after searching my files. :)
 

Attachments

CDRIVE

Joined Jul 1, 2008
2,219
Oops, I just assumed it was HO .

Actually, I am HO. I have included an excerpt from the NMRA (National Model Railroaders Association) which is the Bible when it comes to model railroading for both users and manufacturers that addresses the issue of the actual type of current used in DCC. Also, I apologize for having neglected to respond to your count on superimposing the DCC signal which is also addressed in the excerpt. My sole reason for bringing this to your attention is purely to prevent any misconception or false information.

"Digital Command Control uses a bipolar Direct Current signal to provide power and transmit data. DCC can also be described as a special form of alternating current (AC). One of the main differences between Command Control systems is that DCC, unlike previous Command Control systems, puts a 100% digital signal on the rails and derives both power and information from the same digital signal. The digital data is not superimposed on a DC or AC waveform, nor does it use high frequency signals in addition to the power applied to the track.
Since the signal is bipolar DC, a DCC waveform is not a sine wave. Instead, the voltage quickly switches from +12 volts to -12 volts.".
My, my.. how things have changed since my Dad gave me my first HO!
By the way, you are an exceptional poster, in that you're as thorough as anyone could ever hope for. You've left nothing to be misconstrued! ;)
 
Top