Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to sample an analog voltage from a sensor (0-12v) in an environment where large voltage spikes may be induced in the transmission line, what's the best (simple and cheap) method of protecting the ADC input pin of a PICAXE?

FYI: I'm thinking of using a simple voltage divider to reduce voltage range of the sensor, and a TVS to protect the ADC input.

share|improve this question

A simple pair of diodes is all you need. One from the ADC input to \$V_{CC}\$, anode on \$V_{CC}\$. One from the ADC input to GND, cathode to GND.

enter image description here

If \$V_{in}\$ goes above \$V_{CC}\$ then the excess will go through the upper diode. If it falls below GND then it will flow through the lower diode. The input to the ADC will be just the range between \$V_{CC}\$ and GND.

Most ADC inputs will have these diodes in them already - check the data sheet - but it can't hurt to have your own extra ones.

Shottky diodes would be best as they switch faster than normal silicon ones.

share|improve this answer
Relying on the integral diodes is generally a bad idea. They're there for ESD protection, not regular surge use. Also, you really should use Schottky diodes for the protection network, because their \$V_{TH}\$ is guaranteed to be lower then the IC's integrated diodes. Lastly, this system is reliant on your system having enough capacitance across the rails to absorb the energy from the spikes. If there is too little capacitance, the spikes will cause \$V_{CC}\$ to increase. – Connor Wolf Nov 26 '11 at 11:12

A great app note from TI on op-amp buffers for ADC depending on application and input variables: http://www.ti.com/lit/an/sloa098/sloa098.pdf

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.