Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. 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

Will I damage a GPIO (set to input) if introduced to 10V 1mA? I read somewhere that the GPIO ports can tolerate maximum of 16mA

I need to detect on/off ( 10V/0V ). Could I possibly use voltage divider?

share|improve this question
up vote 5 down vote accepted

The 1mA is not a problem, but the 10V is a problem. Like you suggested correctly yourself, a simple voltage divider using a couple of resistors will do the job.

enter image description here

If you make R1 1k and R2 470 Ohm, you should get a nice 3.2v on the output with an input of 10v. If the 1mA is a hard constraint, multiply all resistor values by 10, because using the given resistor values this divider will dissipate 6.8mA on the 10V side.

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.