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.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…