Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 29th October 2009, 02:06 PM   #1
Question PIC Input Wire Length

I have a problem with this arrangement.
The switch is placed 15M ahead. I used a CAT5 cable. The problem is sometimes it will make the PIC input low without pressing the switch.

Any other method to overcome this?
Attached Thumbnails
PIC Input Wire Length-input-length.png  
Suraj143 is offline  
Old 29th October 2009, 02:15 PM   #2
Default

Quote:
Originally Posted by Suraj143 View Post
I have a problem with this arrangement.
The switch is placed 15M ahead. I used a CAT5 cable. The problem is sometimes it will make the PIC input low without pressing the switch.

Any other method to overcome this?
hi,
Use a 1K resistor in place of the 10K.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 29th October 2009, 10:26 PM   #3
Default

Add a capacitor on the input of the PIC, or a debounce routine in the program.
Diver300 is online now  
Old 29th October 2009, 11:56 PM   #4
Default

Also make sure the two lead you are using are part of a twisted pair.
Russ Hensel is offline  
Old 30th October 2009, 11:26 AM   #5
Default

Hi I modified the circuit is this good?
Attached Thumbnails
PIC Input Wire Length-buffer.png  
Suraj143 is offline  
Old 30th October 2009, 08:39 PM   #6
Default

You need to add a resistor (10k to 100k) across the 1u to make sure it discharges. You don't really need the transistor. Just use a 1k to 10k and 1u in parallel.

Last edited by colin55; 30th October 2009 at 08:41 PM.
colin55 is offline  
Reply

Tags
input, length, pic, wire

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Pic Output - cable length Wp100 Micro Controllers 1 10th October 2009 12:21 PM
Noisy Long Wire effect my Microcontroller Digital input ksaomar Electronic Projects Design/Ideas/Reviews 12 3rd May 2009 07:07 AM
PIC instructions length french_student Micro Controllers 6 19th December 2003 01:58 PM
Approx. resistance, cap, inductance of length of wire bigdog General Electronics Chat 2 12th March 2003 11:16 PM
PIC through live wire communication etix6x2000 Micro Controllers 3 11th March 2003 05:18 PM



All times are GMT. The time now is 08:36 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker