How would you do this?


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    A voltage divider on the input will work fine. How about 5K from the input pin to GND and 7.5K from the input pin to your 12V source. If you need a little noise
    immunity, you can add a .1uF cap across the 5K resistor.
    Charles Linquist

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    I would suggest optocoupler as TLP504 or similar.

    Al.
    All progress began with an idea

  3. #3
    Join Date
    Jan 2010
    Posts
    88


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    Quote Originally Posted by aratti View Post
    I would suggest optocoupler as TLP504 or similar.

    Al.
    Hi Al,

    Just out of curiosity, why would you use the optocoupler?

    Tony

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    With optocoupler you will obtain Total isolation from the 5 volts rail and total immunity to noise.

    Cheers

    Al.
    All progress began with an idea

  5. #5
    Join Date
    Feb 2011
    Location
    Michigan, USA
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    Actually the picbasic pro manual shows under the serin command, you
    can input 12 volts directly through a current limiting resistor. (22k in example)

    But if you truly need a reliable trigger, without false triggers, I agree with aratti
    and use optocoupler and caps.

  6. #6
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    If the grounds are not isolated, can someone explain to me why an optocoupler is more reliable?
    Charles Linquist

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    If some kind of voltage spike comes along the circuits other than ground, less paths of that spike to the uP reduces chance of frying.


    Don
    Amgen

  8. #8
    Join Date
    Feb 2011
    Location
    Michigan, USA
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    Quote Originally Posted by Charles Linquis View Post
    If the grounds are not isolated, can someone explain to me why an optocoupler is more reliable?
    I agree Charles. Isolated grounds would be best. But if thats not practical, than keeping circuit neighborhoods isolated would be next best. At least thats the way I understand it and have seen in practice.

    Meaning of neighborhood. If you already know this than I apologize. One neighborhood would be the analog section. Another would be the digital. All neighborhoods should have their own ground that leads back to the point where power ground comes into the circuit. This point will have the lowest impeadance to power/earth ground. In other words, all neighborhoods share their ground at only one point. Doing this keeps noise created in one neighborhood from effecting another.

    This does not work for all applications but using an optocoupler will keep this idea in place.

    Also this idea relies on the use of the right capacitors in the right place. I still don't fully understand how caps fixed certain high speed trigger problems i had.
    ...maybe it was inductance or quantum interactions ... i don't know ???
    Last edited by MikeWinston; - 13th September 2011 at 19:51.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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