1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Can I connect reed switch with microcontroller using 15 meter cable ?

Discussion in 'General Electronics Chat' started by emb, Jan 13, 2018.

  1. emb

    emb Member

    Joined:
    Aug 18, 2017
    Messages:
    37
    Likes:
    4
    Hi all,

    I want to connect reed switch with Microcontroller .
    The distance between the switch and Mcu about 15 m .

    Can I connect the switch with pullup resistor to Mcu ?

    Regards :)
     
  2. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,377
    Likes:
    1,238
    Location:
    Cardiff, Wales
    Yes, but to reduce the effects of interference pickup it would be advisable to use twisted pair or screened cable and to connect a low-pass filter before the MCU input.
     
  3. emb

    emb Member

    Joined:
    Aug 18, 2017
    Messages:
    37
    Likes:
    4
    thank you :)

    could u post a schematic for the low pass filter ^.^

    regards ;)
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Colin

    Colin Member

    Joined:
    Sep 25, 2003
    Messages:
    438
    Likes:
    25
    Location:
    Australia

    The pull-up can be as low as 1k
     
  6. alec_t

    alec_t Well-Known Member Most Helpful Member

    Joined:
    Jul 10, 2011
    Messages:
    9,377
    Likes:
    1,238
    Location:
    Cardiff, Wales
    Here you go. Component values depend on the pull-up value and on the frequency of operation of the switch.
    LPF.PNG
     
    Last edited: Jan 14, 2018 at 8:46 AM

Share This Page