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 10th October 2009, 05:32 AM   #1
Default 6' wire to PIC ADC - any precautions?

I have 6' of 24 gauge wire that will be carrying my voltage signal to the PIC's ADC - should I use a 1uf capacitor on the ADC input pin close to the chip?

Thanks!
superflux is offline  
Old 10th October 2009, 08:28 AM   #2
Default

Quote:
Originally Posted by superflux View Post
I have 6' of 24 gauge wire that will be carrying my voltage signal to the PIC's ADC - should I use a 1uf capacitor on the ADC input pin close to the chip?

Thanks!
hi,
I would add a 1K in series with the 6ft lead, close to the PIC's input pin.
I dont know what common/ground/0V line for the Vsource is from the remote [6ft end], but it would be advisable to use at least a twisted pair of wires.

Thats the Vsignal and PIC 0V.

If the 6ft wire is running close to other high current switching lines, I would consider a 5.1V or 5.6V zener from the PIC adc pin to 0V.
__________________
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 10th October 2009, 01:55 PM   #3
Default

Quote:
Originally Posted by ericgibbs View Post
hi,
I would add a 1K in series with the 6ft lead, close to the PIC's input pin.
I dont know what common/ground/0V line for the Vsource is from the remote [6ft end], but it would be advisable to use at least a twisted pair of wires.

Thats the Vsignal and PIC 0V.

If the 6ft wire is running close to other high current switching lines, I would consider a 5.1V or 5.6V zener from the PIC adc pin to 0V.

I am using a 2k resistor, but it is closer to the beginning of the 6' line. I will move it closer to the PIC.

I have 3 24 gauge wires going to the PIC, ADC wire, Ground and a 5v supply wire - all have been twisted together and placed in a vinyl jacket.

Is the Zener some type of overload protection in this case or does it block some unwanted interference?
superflux is offline  
Old 10th October 2009, 01:58 PM   #4
Default

Quote:
Originally Posted by superflux View Post
I am using a 2k resistor, but it is closer to the beginning of the 6' line. I will move it closer to the PIC.

I have 3 24 gauge wires going to the PIC, ADC wire, Ground and a 5v supply wire - all have been twisted together and placed in a vinyl jacket.

Is the Zener some type of overload protection in this case or does it block some unwanted interference?
It's over voltage protection, but PIC pins are already protected internally anyway.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 10th October 2009, 02:02 PM   #5
Default

Quote:
Originally Posted by superflux View Post
I am using a 2k resistor, but it is closer to the beginning of the 6' line. I will move it closer to the PIC.

I have 3 24 gauge wires going to the PIC, ADC wire, Ground and a 5v supply wire - all have been twisted together and placed in a vinyl jacket.

Is the Zener some type of overload protection in this case or does it block some unwanted interference?
hi,
The PIC internal diodes are limited to about 20mA, I was concerned if the 6ft line picked up a low impedance source 'spike' the 5.1V zener would help to absorb the overvoltage current.
__________________
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 10th October 2009, 02:09 PM   #6
Default

Quote:
Originally Posted by ericgibbs View Post
hi,
The PIC internal diodes are limited to about 20mA, I was concerned if the 6ft line picked up a low impedance source 'spike' the 5.1V zener would help to absorb the overvoltage current.
With a 2K resistor (as he's using) you would need 25V continuous input to pass 20mA.

If you've ever fitted a PIC in the socket backwards, you'll know that the protection diodes happily pass a LOT more than 20mA without damage
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 10th October 2009, 02:15 PM   #7
Default

So there's no reason to use a small cap on that ADC line right before the input pin? The reason I ask is that it's done on the supply voltage due to the distance between the Power Supply and PIC.

On a slightly different note, can you recommend a cap size that would reduce the flucuations that I am getting? The ADC readings are on a motorcycle from a voltage dividing circuit. Currently, I'm using a 100uf, but that was just a stab in the dark.
superflux is offline  
Old 10th October 2009, 02:24 PM   #8
Default

Quote:
Originally Posted by Nigel Goodwin View Post
With a 2K resistor (as he's using) you would need 25V continuous input to pass 20mA.

If you've ever fitted a PIC in the socket backwards, you'll know that the protection diodes happily pass a LOT more than 20mA without damage
Problem is I'm not sure where the 6ft wire is routed, if its adjacent to HV switching circuits, it could pickup a lot more than 25V.

For the very small cost of a zener, I personally would fit it, again we dont know how critical it is that the PIC fails and the program stops.

Nigel, how could you ever possibly believe I would insert a PIC backwards...


EDIT: on the m/cycle which voltage are you dividing.??
Superflex, you posted while I was typing.
__________________
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/

Last edited by ericgibbs; 10th October 2009 at 02:28 PM.
ericgibbs is offline  
Old 10th October 2009, 02:28 PM   #9
Default

Quote:
Originally Posted by ericgibbs View Post
Problem is I'm not sure where the 6ft wire is routed, if its adjacent to HV switching circuits, it could pickup a lot more than 25V.
But not of a low source impedance, only a very high one.

Quote:

For the very small cost of a zener, I personally would fit it, again we dont know how critical it is that the PIC fails and the program stops.

Superflex, what is the actual project.?
As always, it depends on exactly what it's doing.

Quote:

Nigel, how could ever possibly believe I would insert a PIC backwards...
I've still got one with my fingerprint burnt in the top

And a finger with the MicroChip logo permanently displayed in it
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 10th October 2009, 02:33 PM   #10
Default

hi Nigel, My thumb print says 74LS07...[backwards]

I said low impedance source, because I was concerned about the 'energy' in any possible spike, not a high impedance, very low current source.

Anyway it appears the OP's project is a m/cycle which could be rampant with electrical noise..

EDIT:
Superflux you may find this pdf helpful, I know its written for motor car system, but the principles are the same.
Attached Files
File Type: pdf bo0464.pdf (613.9 KB, 8 views)
__________________
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/

Last edited by ericgibbs; 10th October 2009 at 02:44 PM.
ericgibbs is offline  
Reply

Tags
adc, pic, precautions, wire

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Adc Pic richiealex General Electronics Chat 1 16th July 2008 09:23 AM
1 or 2 Wire transmission and servo control (PIC) weegee Micro Controllers 3 21st January 2008 02:23 PM
HS1101 capacitive humidity sensor; need nearly linear voltage to feed to a 1-wire ADC FirefighterBlu3 Electronic Projects Design/Ideas/Reviews 5 20th October 2007 12:06 AM
PIC ADC Spectacular Butter Micro Controllers 9 11th March 2005 05:04 PM
PIC through live wire communication etix6x2000 Micro Controllers 3 11th March 2003 05:18 PM



All times are GMT. The time now is 05:46 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker