. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Irving, you are right, I just threw the drawing together on Paint and I have indeed got e and c crossed over. What would your plan be to make it failsafe ?

    Maybe this ? (sorry for poor drawing, no tools at hand on this pc)

    Click image for larger version. 

Name:	cprev2.jpg 
Views:	2782 
Size:	6.6 KB 
ID:	10832
    Last edited by EddyCurrent; 19-11-2013 at 10:45 AM.

  2. Quote Originally Posted by EddyCurrent View Post
    Irving, you are right, I just threw the drawing together on Paint and I have indeed got e and c crossed over. What would your plan be to make it failsafe ?

    Maybe this ? (sorry for poor drawing, no tools at hand on this pc)

    Click image for larger version. 

Name:	cprev2.jpg 
Views:	2782 
Size:	6.6 KB 
ID:	10832
    that'll do it. i'd put a series resistor between BOB and base of transistor, value depends on pull-up on BOB. If there is no pull-up (i.e. its an o/c output) use 10k to 5v rail.

    R needs to be something like 2k7 0.5W rating if connected to 24v, or 470R 0.125W if connected to 5v rail.

    BD679 is fine as output transistor if a bit of an overkill. Any small signal NPN with a gain >50, Vce >40v and Ic >200mA will do for the input transistor e.g 2N3904, BC337 or similar

  3. #3
    If the breakout board output is open collector, why not reduce the component count by using a PNP transistor to invert the signal?

    e.g:
    Click image for larger version. 

Name:	trswipnp.gif 
Views:	2855 
Size:	3.8 KB 
ID:	10834

    Edit: Also don't forget the back-emf protection diode!
    Last edited by Jonathan; 19-11-2013 at 01:04 PM.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  4. #4
    Quote Originally Posted by Jonathan View Post
    If the breakout board output is open collector, why not reduce the component count by using a PNP transistor to invert the signal?

    e.g:
    Click image for larger version. 

Name:	trswipnp.gif 
Views:	2855 
Size:	3.8 KB 
ID:	10834

    Edit: Also don't forget the back-emf protection diode!
    That would be a sensible solution Jonathan and one that I shall test, thank you

  5. Quote Originally Posted by EddyCurrent View Post
    That would be a sensible solution Jonathan and one that I shall test, thank you
    Be very, very sure the BOB output is truely open collector if Vs = 24v or at best it won't work (I'll leave it to the reader to explain why :) ) and at worst you could fry the BOB!

    Alternatively make Vs = 5v

    Rb for Vs = 5v is 1k
    Rb for Vs = 24v is 4k7

    1/4w resistors will be fine

  6. #6
    Quote Originally Posted by EddyCurrent View Post
    I'm thinking this is going to be my Charge Pump relay circuit. My BOB ENA signal is active low so the relay will be in the 'healthy' state when de-energised, this is not fail safe and I could have inverted the signal but it's going to do. The BOB is supplied by 24vdc and so GND is common to the 5v and the 24V.

    Click image for larger version. 

Name:	cpdiag.jpg 
Views:	2841 
Size:	18.1 KB 
ID:	10822
    Quote Originally Posted by EddyCurrent View Post
    Irving, you are right, I just threw the drawing together on Paint and I have indeed got e and c crossed over. What would your plan be to make it failsafe ?

    Maybe this ? (sorry for poor drawing, no tools at hand on this pc)

    Click image for larger version. 

Name:	cprev2.jpg 
Views:	2782 
Size:	6.6 KB 
ID:	10832
    Quote Originally Posted by irving2008 View Post
    that'll do it. i'd put a series resistor between BOB and base of transistor, value depends on pull-up on BOB. If there is no pull-up (i.e. its an o/c output) use 10k to 5v rail.

    R needs to be something like 2k7 0.5W rating if connected to 24v, or 470R 0.125W if connected to 5v rail.

    BD679 is fine as output transistor if a bit of an overkill. Any small signal NPN with a gain >50, Vce >40v and Ic >200mA will do for the input transistor e.g 2N3904, BC337 or similar

    R needse 2k7 0.5W rating if connected to 24v, or 470R 0.125W if connected to 5v rail.

    BD679 is fine as output transistor if a bit of an overkill. Any small signal NPN with a gain >50, Vce >40v and Ic >200mA will do for the input transistor e.g 2N3904, BC337 or similar
    Please forgive my ignorance but could someone explain how this will work in basic terms? Why is Eddy's first circuit not fail safe and how does the next circuit achieve that?

    Sorry, I've not had a lot of sleep over the past few nights (babies all have colds....) and I think my brain may be turning to mush.

  7. #7
    Quote Originally Posted by cncJim View Post
    Please forgive my ignorance but could someone explain how this will work in basic terms? Why is Eddy's first circuit not fail safe and how does the next circuit achieve that?
    The transistor is used as a switch. When positive current is applied to the base of an NPN it switches on. In the original circuit, the transistor is simply connected in series with the relay, so when the current is applied the transistor switches on and so does the relay. The problem is, if the signal to the base is broken (e.g. wire accidently cut), the transistor and thus the relay will switch on. We want the relay to be off in this situation, so another transistor is used to invert the signal. When the current is applied to 'new' transistor, it switches on so connects the base of the second transistor to ground, which in turn switches it off - hence the signal is inverted.
    Old router build log here. New router build log here. Lathe build log here.
    Electric motorbike project here.

  8. #8
    Quote Originally Posted by Jonathan View Post
    The transistor is used as a switch. When positive current is applied to the base of an NPN it switches on. In the original circuit, the transistor is simply connected in series with the relay, so when the current is applied the transistor switches on and so does the relay. The problem is, if the signal to the base is broken (e.g. wire accidently cut), the transistor and thus the relay will switch on. We want the relay to be off in this situation, so another transistor is used to invert the signal. When the current is applied to 'new' transistor, it switches on so connects the base of the second transistor to ground, which in turn switches it off - hence the signal is inverted.
    Thanks for taking the time to reply Jonathan. Very helpful. I was also having hard time understanding/visualising the "active low" part of the puzzle.

    This also helped me understand:-
    Click image for larger version. 

Name:	KntFP.jpg 
Views:	1839 
Size:	4.5 KB 
ID:	10837
    "If the input signal is high there will flow current through R2 and the transistor's base-emitter junction (base, not gate). This current will be amplified, and the collector current through R1 will cause a voltage drop so that the output will be low. Input high, output low.
    If the input signal is low there won't be any base current, and no collector current. No current through R1 means no voltage drop, so that the output will be at +V. Input low, output high."

  9. Just to clarify Jonathan's answer, the BOB ENable signal is Active Low i.e. enabled = 0v, disabled = 5v. In Eddy's original circuit the relay would be OFF when the BOB says Enabled and ON when disabled. But a BOB failure, a supply voltage failure, or burn out of the transistor would all turn the relay OFF, an enabled state, so not fail safe. As J says, the addition of the second transistor inverts the logic so relay is ON only when system is enabled and voltages are present.

    J's later solution achieves the same result by using a PNP transistor to invert the logic.

    [edit] typed this ages ago but forgot to hit submit.... :roll: and now its out of date lol


    Quote Originally Posted by Jonathan View Post
    The transistor is used as a switch. When positive current is applied to the base of an NPN it switches on. In the original circuit, the transistor is simply connected in series with the relay, so when the current is applied the transistor switches on and so does the relay. The problem is, if the signal to the base is broken (e.g. wire accidently cut), the transistor and thus the relay will switch on. We want the relay to be off in this situation, so another transistor is used to invert the signal. When the current is applied to 'new' transistor, it switches on so connects the base of the second transistor to ground, which in turn switches it off - hence the signal is inverted.
    Last edited by irving2008; 19-11-2013 at 11:38 PM.

  10. #10
    Quote Originally Posted by irving2008 View Post
    BD679 is fine as output transistor if a bit of an overkill.
    Thank's for info on component sizes.
    That is correct, it's just that I have some and they have a high gain because I need to keep the load on ENA as low as possible as it's also supplying 4 x stepper drivers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. traveling steady, turning 1/2 bar down over 10".
    By graffian in forum Metalwork Discussion
    Replies: 3
    Last Post: 08-05-2013, 07:59 PM
  2. NEW MEMBER: Hello all, finally ready to start a build log.
    By Iwant1 in forum New Member Introductions
    Replies: 11
    Last Post: 25-12-2012, 06:03 PM
  3. eBay: Boxford 125 TCL Mach3 Ready
    By rnr107 in forum Items On eBay UK
    Replies: 1
    Last Post: 25-07-2012, 07:29 AM
  4. Anyone have experience of ready made machines
    By bogstandard in forum Milling Machines, Builds & Conversions
    Replies: 9
    Last Post: 07-04-2010, 07:44 PM
  5. Windows 7 RTM Confirmed & Ready !
    By Lee Roberts in forum Computer Software
    Replies: 8
    Last Post: 29-07-2009, 03:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •