Continue to Site

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.

  • 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.

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

Status
Not open for further replies.

emb

Member
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 :)
 
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.
 
Here you go. Component values depend on the pull-up value and on the frequency of operation of the switch.
LPF.PNG
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top