putting a button 5-8 meters away from circuit

balkesli

New Member
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
 
Try adding a 100nF capacitor from the port to 0V.
 
If all else fails, gut a cheap r/c toy and use it to operate a relay.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…