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:
    65
    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,763
    Likes:
    1,284
    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:
    65
    Likes:
    4
    thank you :)

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

    regards ;)
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. Colin

    Colin Active Member

    Joined:
    Sep 25, 2003
    Messages:
    502
    Likes:
    31
    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,763
    Likes:
    1,284
    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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice