+ Post New Thread
Page 2 of 2 FirstFirst 1 2
Results 21 to 26 of 26
  1. #21
    Super Moderator
    Points: 70,746, Level: 64
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    14,465
    Helped
    3292 / 3292
    Points
    70,746
    Level
    64

    Re: Interfacing interlocks with pic controller

    Hi,

    the circuit is correct now.
    Hint: instead of 2 x BAT54 you may use one BAT54S

    The circuit will protect the input.
    But it will not suppress contact bouncing.

    Both informations are already given in this thread:
    * contact bouncing time
    * how to calculate tau

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisment

        
       

  2. #22
    Super Moderator
    Points: 77,353, Level: 67
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    12,659
    Helped
    4222 / 4222
    Points
    77,353
    Level
    67

    Re: Interfacing interlocks with pic controller

    That is correct.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



    •   AltAdvertisment

        
       

  3. #23
    Full Member level 5
    Points: 1,666, Level: 9

    Join Date
    Sep 2016
    Posts
    261
    Helped
    1 / 1
    Points
    1,666
    Level
    9

    Re: Interfacing interlocks with pic controller

    Quote Originally Posted by KlausST View Post
    Hi,

    the circuit is correct now.
    Hint: instead of 2 x BAT54 you may use one BAT54S

    The circuit will protect the input.
    But it will not suppress contact bouncing.

    Both informations are already given in this thread:
    * contact bouncing time
    * how to calculate tau

    Klaus
    For Tau,

    10K X 100nF,then it have to divide by 1000 for milliseconds..?

    - - - Updated - - -

    Click image for larger version. 

Name:	img_5.jpg 
Views:	5 
Size:	23.0 KB 
ID:	151595

    Pull up resistor is placed in right position..?
    If we using an interlock signal as +5VDC instead of GND means also shall we use this same circuit expect pullup resistor..?



    •   AltAdvertisment

        
       

  4. #24
    Super Moderator
    Points: 77,353, Level: 67
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    12,659
    Helped
    4222 / 4222
    Points
    77,353
    Level
    67

    Re: Interfacing interlocks with pic controller

    Yes, all correct. The protection is against voltages outside of VSS and VDD so it will work when the interlock is active low or active high, just swap the pull-up resistor for a pull-down instead.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



  5. #25
    Super Moderator
    Points: 70,746, Level: 64
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    14,465
    Helped
    3292 / 3292
    Points
    70,746
    Level
    64

    Re: Interfacing interlocks with pic controller

    Hi,

    No, I don't think this is correct.
    There are two series resistors, one for overvoltage protection, the other as filter.
    Both corrupt V_IL to the microcontroller input, as they act as resistor divider in combination with the pullup resistor.

    Use the pullup resistor at the most left side, then you are safe.
    Btw: I'd go more low ohmic with the pullup. I'd say 10mA as switch current is not too much.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisment

        
       

  6. #26
    Super Moderator
    Points: 77,353, Level: 67
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    12,659
    Helped
    4222 / 4222
    Points
    77,353
    Level
    67

    Re: Interfacing interlocks with pic controller

    22K pull up/down with 2K total series resistance to the switch should give a low of 0.4V or a high of 4.4V. Most 5V PICs have a low guaranteed at 0.8V and a high at 2V so technically it should be OK.

    As this is an interlock and therefore not driven, I think I would drop the 1K series resistors to say 470 Ohms if there were worries about logic levels not being reached. If in doubt, move the pull up/down resistor to the interlock input instead of the PIC input. The circuit should function exactly the same.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.



--[[ ]]--