using a button from 5-8 meters

Status
Not open for further replies.

osmanpasali

Junior Member level 3
Joined
Jan 8, 2008
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,434
hi,
i want to use a button from 5-8 meters to the circuit. sometimes the button does not function properly. the button is connected to the pic's port and there is a pull-up resistor. when the button is pushed the port is pulled to GND
 

Jist put a capacitor, say 0.1uF between the PIC pin and ground.
 

your wire lenghth is so long ..... you have to induct opto at controller side
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…