Skip to main content

gunrunnerjohn posted:

I have to think this is killing gnats with a sledgehammer.  Am I missing something?  Why not just remove the 120V power from the layout with a trip, why all the high current relays?  One big control relay on the input power and then any sensing you desire for the power districts.

I too may be missing something but isn't that a Catch-22 situation?  That is, if you remove 120V AC to all 4 bricks then obviously all 4 brick outputs immediately drop to 0V (including the brick that is already at 0V from its derailment trip).  Now there is no indication of which brick tripped in the first place.  I think it's kind of neat how there are 4 "micro pilot lights" that run to the top of the board that directly indicate the status of each brick/block.

OTOH, I suppose one could say it's obvious by looking at the layout to see which block caused the problem, feel each brick's reset button to see if popped out, etc..  

Then, after MOW clears the derailment and resets any brick breakers, how do you "restart" the safety circuit?  That is, all brick outputs are now 0V so the sensing devices are continuously trying to remove 120V AC.  I suppose it could be as simple as a momentary bypass switch...but, as they say, the devil's in the details.

PLCProf posted:
...

I'm guessing that the DC supplies were intended to permit the use of 12 VDC sense relays, but the filter caps in the supplies caused the sense relays to hold in for a while after the power was lost, so the 8.x volt setting was chosen to put the relays right on the edge of dropout to speed up the response to a power loss.

...

Just talking........

Agreed.  We are just talking.  

ly relay spec

So if these are indeed the LY series relays, note that for the 12V DC version it Must Operate at 9.6V and Must Release at 1.2V.  I think that would be walking quite the fine line (i.e., delicate balancing act) to trim the DC voltage to 8.7V, or 8.8V, or 8.9V, whatever to drive a 12V DC coil that will hold until the capacitor drops to what could be as low as 1.2V!

Practically speaking, other than ASAP, how quickly must a safety system respond to one brick tripping?  Given momentum, if you instantly remove power the consist might nevertheless coast several car lengths...and of course the prototypes much further without dynamic braking.  So for a model train setup, I'd think maybe 1 second is a reasonable goal?  That is, consider a human operator visually watching.  A derailment is detected.  Now, in a panic, find the E-stop button on the remote fob which was supposed to be hanging on your neck but in all likelihood left somewhere because you had meant to change the battery! .  

Attachments

Images (1)
  • ly relay spec
Last edited by stan2004
stan2004 posted:
gunrunnerjohn posted:

I have to think this is killing gnats with a sledgehammer.  Am I missing something?  Why not just remove the 120V power from the layout with a trip, why all the high current relays?  One big control relay on the input power and then any sensing you desire for the power districts.

I too may be missing something but isn't that a Catch-22 situation?  That is, if you remove 120V AC to all 4 bricks then obviously all 4 brick outputs immediately drop to 0V (including the brick that is already at 0V from its derailment trip).  Now there is no indication of which brick tripped in the first place.  I think it's kind of neat how there are 4 "micro pilot lights" that run to the top of the board that directly indicate the status of each brick/block.

I don't see this as a problem.  Your detection circuit could be independently powered and maintain the status of the trip, but the main layout would all be killed with a single power control.  I'm just at a loss why I need a ton of high current relays and the associated wiring and complexity if I want to shut the whole thing down anyway on a sensing circuit failure alert.

What I wanted to show is how the sense relays and relay logic* could be used for an interlock chain.   In logic terms it is and AND gate. Outputs are enabled if Brick 1 is on AND Brick 2 is on AND Brick 3 is on AND Brick 4 is on.

Since the control relays interrupt the power to the track, the bricks are still powered.  If you have a pilot light on the output of each brick you will see which ones that are on.

The sense relays could be replaced with simple sense circuits on each brick.  Optocouplers would allow the logic be done using low voltage DC that drives a single relay which in turn drives the power relays or with suitable output drive could control the power relays directly.  There are endless approaches here.

Controlling the 120V power only requires one control relay and it operates at lower current.  You do need to deal with 120V though.  There are prepackaged relays from controlling appliances so you don't have to deal with 120V - but I don't know if the right specs would be available.  Driving four fully loaded 180W bricks would be 720W.  That is 6 Amps on the AC side.  If you don't expect to use that much on average you could use a 5 Amp relay but you'd need a circuit breaker to protect the relay contacts.

With the 120V approach the system will latch in the off state when it shuts down.  Also it will power up in the off state so you do need a Start switch after power up or to reset.  If you have a power failure the system will be off when power returns until you press the Start switch - this is an added safety feature.

If you start using normally closed contacts you can avoid relays being constantly energized.  However you will lose the fail safe aspect of the relay power supply failing.  But if you stipulate the relay power supply will be on you can take the NC approach.

*Relay logic - I have an EM (electro-mechanical) Space Odyssey pinball machine from 1976.  EM pinball machines are all relays, switches and solenoids.  These machines have a score motor, essentially a washing machine timer switch on steroids, that turns until certain conditions are met.   The score motor is what makes the score roll up multiple steps on one switch closure.  Mine has a common problem where the score motor does not stop running.  Debugging this is no easy task.  The schematic is a ladder diagram (one way of showing relay logic) - it is 4 feet wide.

wmsmotor1

Attachments

Images (1)
  • wmsmotor1
Last edited by penn station

Tried to take photos of relays, but no luck. to much glare, tiny printing on clear background, I have extra relays so i took those out side still no luck with photos. Soon you have to trust my poor eye site, and and no short term memory to wright things down correctly. There is two different brands of relays, Taking a long time to type this, ill wright it down and take photo.

IMG_7957IMG_7958

     Well this message took over 45 minutes and still not sure of what I wrote and got the photo standing on end.   Sure wish you guys would just stop by and look at it.  There is some wiring diagrams on it also, good luck in copying that down.                                                                                            

Attachments

Images (2)
  • IMG_7957
  • IMG_7958

The circuit of for this type of relay is simple.  Looking at the base with the the two vertical terminals at the bottom: the vertical terminals are the coil.  The horizontal terminals are the contacts.  You can see how these directly exit the base of the relay.  The top terminals are Normally closed, the middle terminals are the normally open. then the movable contacts.  One pole is on each side.

This is an Omron part.  I have attached a datasheet.  The part number should be something like LY2N-xx where xx is the voltage.

I can find the LY2N-J part numbers on the web but haven't determined this significance of the suffix.

(Forgive all earlier versions of this post - not having a good day.)

 

 

Attachments

Files (1)
Last edited by penn station
penn station posted:

Since the control relays interrupt the power to the track, the bricks are still powered.  If you have a pilot light on the output of each brick you will see which ones that are on.

Depends on the brick, the Lionel PowerHouse 180 light doesn't go off when the breaker trips, for instance.  In any case, simply having the control logic remember the trip condition solves that problem.

penn station posted:

*Relay logic - I have an EM (electro-mechanical) Space Odyssey pinball machine from 1976.  EM pinball machines are all relays, switches and solenoids.  These machines have a score motor, essentially a washing machine timer switch on steroids, that turns until certain conditions are met.   The score motor is what makes the score roll up multiple steps on one switch closure.  Mine has a common problem where the score motor does not stop running.  Debugging this is no easy task.  The schematic is a ladder diagram (one way of showing relay logic) - it is 4 feet wide.

FWIW, I used to own a bunch of pinball machines and in high school I worked at a pinball and jukebox supplier fixing the machines.  I had to fix all the pinball machines I had later in life, that's how you get them cheap!  I had some of the relay models and a few of the electronic models.  There are tons of Internet sites dedicated to pinball repair, and you can get a bunch of expert help if you look around.  The fact that you have a a schematic of the logic is a huge plus, that should make it tons easier to track down your issue.

clem k posted:

….There is two different brands of relays, Taking a long time to type this, ill wright it down and take photo.

clem 12V DC

Clem, the 2nd photo is exactly what I was looking for.  Note that the relay coil white wrapping (inside the plastic case) says 12VDC (upside down in photo).  

But when you say two different relays, I wondering if some of the coils are printed with something other than "12VDC" or just two different brands of the same 12V DC relay.   I appreciate the time you've spent scurrying around gathering photos and such!  

Again, getting back to the matter at hand.  You have a system that works and have been kind enough to share what you have in response to the OP.  Practically speaking, I think it's unlikely that the OP will be able to exactly duplicate your configuration. 

At some point "we" need to agree upon exactly what this gadget has to do and come up with a complete parts lists and wiring diagram.  Many different ways to solve the problem.  It's just that all ideas eventually degenerate into actual work, and Nothing is so easy as the job you imagine someone else doing.

Attachments

Images (1)
  • clem 12V DC

Well, Clem apparently has a buddy who built it off-site and it just showed up plug and play.  Doesn't get easier than that.  

As I see, there are 2 things going on here. 

Thing 1 is a general discussion about what features might be useful in a safety relay system and how one might go about implementing it...using Clem K's system as the proverbial dart board.

Thing 2 is the specific task of building a system for the OP where at this point there are still some TBD requirements and logistical unknowns.  Who exactly is building this?  Is soldering and working at the component level OK?  Budget?  And so on.

Last edited by stan2004

Stan........ he will need someone to build this.... or get all the correct parts and an excellent diagram. I could work with him on this so very clear simple directions are needed and the correct components.   Like I told him I could take mine off layout and copy it, but I would not bet it would work, or the original (mine) would work again. 

Stan same relays two different brands? Hard to read printing. Here is what I think s on the other one.

CLION

HHC68A-2Z

JDX-13F     LY2

THEN SOME WIRING DIAGRAMS I CANT MAKE OUT

10A 240VAC/28VDC

MORE STUFF I CANT MAKE OUT, I THINK BRAND NAMES ?

IMG_7959IMG_7960

Ps lighting seems better, I can read easier now.

Attachments

Images (2)
  • IMG_7959
  • IMG_7960
Last edited by clem k

safety relays for a couple bucks

If we're at the point of Thing 2 - actual implementation - then it's a matter of who exactly is going to do the work. 

Again, there have been several proposed alternatives in the Thing 1 category.  The actual material cost is quite modest.  The relays WITH socket are a couple bucks each (no soldering required).  Toggle switches with screw-terminals (no soldering required) are about $1.  Screw-terminal barrier strips (no soldering requried) are also modestly priced.  DC voltage regulator module with digital LED voltmeter are about $2 (no soldering required).

So taking a somewhat cynical view of the matter at hand, the material cost for all the proposed variations/alternatives will be small compared to "labor" even at minimum-wage whatever that is these days!

Attachments

Images (1)
  • safety relays for a couple bucks
Last edited by stan2004

One thing interesting that Dale M mentioned back awhile is that the wire tables for wire gauge are designed for 120 vac and 240 vac. The issue is that there is an allowable voltage drop as a percentage of the line voltage. When the line voltage is only 18 vac then that voltage drop which was ok for 120 vac is too much for an 18 vac circuit.

I searched for a packaged power control relay.  I found this controlled power strip.  The control input operates from 3-48VDC or 12-120VAC.   It has 2 normally open outlets, 1 nomally closed, and 1 always on.  It controls up to 12 Amps.  This avoid the need to work with high voltage wiring.

This could be used to control the power to the bricks.  The brick outputs could be monitored with optocouplers and a few other components, plus a reset switch.  The input resistance of the control terminals is not specified.  Based on examples it does not require much input current.

The price is $27 at site is https://dlidirect.com/products/iot-power-relay.  Could be useful for other applications.  It can be used with an Arduino for example.

At Digital Loggers

Attachments

Images (1)
  • Digital Loggers

Reminds me of those power outlets that turn ON at dusk and OFF at dawn.  About $10 at Home Depot:

dusk to dawn power output

The Thing 1 idea is to make a simple circuit that monitors the 4 brick outputs and turns ON a "fault" bulb or LED if one or more bricks trips its breaker.  This "fault" lamp would be placed against the outlet light sensor.  Ta da!  When the bricks are all working, the fault light is OFF and the outlet thinks it's night-time and turns on.  If any brick trips the fault light is ON and the outlet thinks it's day-time and turns off.   This widget only has 2 AC outlets so a 4-outlet power strip could be used to power 4 bricks.  Other similar light sensing strips have more outlets but I figure the existing bricks are probably already connected to a multi-outlet power strip.

 

Attachments

Images (1)
  • dusk to dawn power output

Yes.  The proposed method of cutting wall-outlet 120V AC voltage to all 4 bricks is another alternative.  These controllable power outlets usually have a relay inside but as pointed out, you don't have to mess with high-voltage wiring.

But again these controlled outlets are a Thing 1 discussion item...not a Thing 2 solution.

Anyway, along the lines of Thing 1 discussion, it may not be common knowledge that many of the DC-to-DC converter modules have a reverse-protection diode on the input.  Here is a close-up of what I believe is the DC-to-DC module that Clem has:

reverse protection diode

What this means is you can apply 18V AC brick voltage to these modules.  And for low power applications, then the half-wave rectification and modestly sized input capacitor (100 uF shown here) might just do the trick!  It might even turn out that ~9V DC (average) was all this module could put out when driving multiple 12V DC relays!  I was wondering where the diodes and/or bridge rectifiers for AC-to-DC conversion were in Clem's various photos and this is what I came up with.  Again, this is Thing 1 "just talking..." 

Attachments

Images (1)
  • reverse protection diode
Last edited by stan2004
stan2004 posted:

Not quite clear why 12 relays are used in the photo.  As Cam suggests, no doubt there's more going on than what's been posted.

Anyway, I like Cam's approach (8 relays).  Should meet the requirements that have been so-far described.

Here's a similar approach using 12V DC (instead of 24V AC) as the "control" voltage.  I don't suggest this unless you're a determined DIY'er since it requires working with and soldering small components.  But it can be done for about $10 out-of-pocket and only uses 4 relays.  Again, this is posted in the spirit of kicking around ideas being that OGR is a discussion forum...

4 block safety relay

This uses low-cost solid-state optocouplers (vs. electromechanical relays) to detect the presence of brick voltage.  The 4 optocoupler transistor outputs are connected in series so all 4 optocouplers must be triggered to present ~12V DC to the 4-channel relay module.  This relay module is about $1/relay and the relays are 10 Amps.  These are single-pole relays so this assumes the outer-rails of all the blocks are in common; Cam's diagram uses double-pole relays which switch both center and outer-rails.  As Cam suggests, you can bypass/over-ride one or more bricks by placing a toggle switch at the output of the respective optocoupler.

 

Hey Stan 2004 I like this and so does my son Likes this system. Can you send me a drawing from bricks to optocoupler? If its not to much trouble. Need to peel onion a little more, Thx for your help

Rick R posted:
...

Hey Stan 2004 I like this and so does my son Likes this system. Can you send me a drawing from bricks to optocoupler? If its not to much trouble. Need to peel onion a little more, Thx for your help

optocoupler

Are you saying you're going to dive into the deep-end of DIY component assembly, soldering, etc.?! 

The connection(s) from each brick to the optocoupler is thru a ~5-cent resistor and possibly a ~15-cent screw-terminal connector to make wiring neat.  I would mount the components on a ~50-cent prototyping board as illustrated above.  As mentioned above, if using the optocoupler it appears cheaper to buy 4 1-channel optocouplers (~25 cents each) than 1 4-channel optocoupler.  The behavior will be identical.

Note that you can use this optocoupler method to drive the IOT relay widget you bought too.  As I've mentioned before it all comes down to EXACTLY what features you want - for example over-ride switches, status lights, and so on.  You said you want what Clem has; I appreciate that but we really don't know exactly what Clem has and I'm not the guy that will ask him to dis-assemble his system, take photos, etc.

Attachments

Images (1)
  • optocoupler
stan2004 posted:
Rick R posted:
...

Hey Stan 2004 I like this and so does my son Likes this system. Can you send me a drawing from bricks to optocoupler? If its not to much trouble. Need to peel onion a little more, Thx for your help

optocoupler

Are you saying you're going to dive into the deep-end of DIY component assembly, soldering, etc.?! 

The connection(s) from each brick to the optocoupler is thru a ~5-cent resistor and possibly a ~15-cent screw-terminal connector to make wiring neat.  I would mount the components on a ~50-cent prototyping board as illustrated above.  As mentioned above, if using the optocoupler it appears cheaper to buy 4 1-channel optocouplers (~25 cents each) than 1 4-channel optocoupler.  The behavior will be identical.

Note that you can use this optocoupler method to drive the IOT relay widget you bought too.  As I've mentioned before it all comes down to EXACTLY what features you want - for example over-ride switches, status lights, and so on.  You said you want what Clem has; I appreciate that but we really don't know exactly what Clem has and I'm not the guy that will ask him to dis-assemble his system, take photos, etc.

Yes My son and I are going to try. I sent the Iot relay back thx for help My son is going to school for controls engineering So we need diaghrams to go by, The optocouplers are new 2 him. and me.So Me, Erick my son and Clem are on a learning project

I don't know if this is what you mean by a "diagram" but see if this helps.

4 block safety relay

To be clear this uses the method of switching the "hot" brick power.  It is assumed that all the brick commons and track block outer-rails are tied together.   

I found the following items available now on eBay though these have the 2-3 week delay from Asia.  I'm sure all these items are available domestically (Amazon,  eBay U.S. sellers) though my experience is this double or triples the cost.  As shown it looks like between $10-15 not including wire.

safety relay electrical parts

The electronics operates on 12V DC supplied by a wall-wart so you obviously need an available wall outlet.  IF this is a nuisance, an option is a ~$3 AC-to-DC converter module that would convert 18V AC from one of the AC bricks into 12V DC.  For example:

lm2596 ac to dc module

Everyone has there favorite way to assemble electronic circuits so to each his own.  One way is to use so-called prototyping board which has solder-able holes on a 0.1" (2.54mm) grid.  I show below the use of an IC socket for the optocouplers.  This way you solder the interconnection wires to the socket and not to the IC terminals.  The current flowing within the board is very small so something like #30 gauge solid would work fine.  It's also negligible current flowing between the bricks and this board, and this board to the relay module so thin wire can be used too.  Practically speaking these interconnections would use, say, #24 or #26 gauge or whatever you have lying around for hook-up wire.

safety relay mechanical parts

I suggest using 2-pin screw terminal blocks on the board: (4) on the input side from the 4 AC bricks, (1) to provide DC+ and DC-, and (1) for the trigger signal to the relay module.

I also don't show the use of terminal blocks, wire nuts, or whatever hookup method to distribute brick power as that's dependent on your layout and what you use today.

If you're using Clem's system as a model, I see he has some indicator/status lights and toggle switches to bypass/over-ride the safety shutdown function.  We can explore exactly how those would integrate or if you even need/want them.  First though, I suggest contemplating the above to re-affirm your decision to jump in.

But to your point, if your son is going into Controls Engineering, he and optocouplers will soon become BFFs.  

Attachments

Images (4)
  • safety relay mechanical parts
  • 4 block safety relay
  • safety relay electrical parts
  • lm2596 ac to dc module
Last edited by stan2004

Add Reply

Post

OGR Publishing, Inc., 1310 Eastside Centre Ct, Ste 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
Link copied to your clipboard.
×
×