![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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! | |
| |
| | #2 | |
| Quote:
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/ | ||
| |
| | #3 | |
| Quote:
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? | ||
| |
| | #4 | |
| Quote:
| ||
| |
| | #5 | |
| Quote:
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/ | ||
| |
| | #6 | |
| Quote:
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 | ||
| |
| | #7 |
|
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. | |
| |
| | #8 | |
| 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. 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. | ||
| |
| | #9 | |||
| Quote:
Quote:
Quote:
![]() And a finger with the MicroChip logo permanently displayed in it | ||||
| |
| | #10 |
|
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.
__________________ 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. | |
| |
|
| 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 |