Long Distance Input's to Pic


Closed Thread
Results 1 to 4 of 4
  1. #1
    GregK's Avatar
    GregK Guest

    Default Long Distance Input's to Pic

    Hi

    What's considered good design practice when you have 4 mechanical input switches that are located 8 ft away from the pic? The application is a kit car. I was going to run a shielded cable, or shielded cable with optical isolation. Any suggestions?

    Thanks

    Greg

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If you realy want to play safe choose opto coupler.. that's it.

    But a good resistor match and sufficient current on the line + simple noise filter do also a good job with or without any shielded cable.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    GregK's Avatar
    GregK Guest


    Did you find this post helpful? Yes | No

    Default Long distance inputs to Pic

    Hi Steve

    Thanks for your reply. Could you explain what you mean by "good resistor match and sufficient current on the line + simple noise filter".
    I thought you would always use the internal pullup resistors if available, otherwise, a 10K pullup resistor.

    Greg

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Greg,

    as Steve has already mentioned: Opto-Isolators are perfect.

    the internal PullUp is too weak for this.
    You should definitely use ane external one and this should be less than 10k, say 4k7 or 2k2 or even lower..
    You could use one resistor at ech end of the line.

    bear in mind that with resistors at both ends of the line
    you would have 8 resistors in parrallel between VSS and VDD, when all 4 switches are closed.
    For 2k2 Resistors this would mean 18mA. This could be an issue for a battery powered application.

    For a simple filter a 100nF Cap and a 10k Resistor (close to the PIC) would do.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



Similar Threads

  1. How long distance for RS232 ?
    By iugmoh in forum General
    Replies: 7
    Last Post: - 25th February 2008, 13:06
  2. Long distance Communicating between PICs
    By koossa in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th January 2008, 06:47
  3. inputs on 12F675 (or for that matter any PIC)
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th April 2007, 19:43
  4. Using portb as inputs PIC goes crazy
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th November 2005, 14:15
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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