User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

GPIO protection - resistor values

Sun Jan 17, 2016 9:26 am

Hi;

Can anyone confirm what size resistors I should be using to protect the GPIO or is it dependent upon the rest of the circuit?
Some examples are:

1. Values for pull up resistors when connected to 3.3v?
2. Resistors connected between LED and Gnd?

Thanks
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
joan
Posts: 14959
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: GPIO protection - resistor values

Sun Jan 17, 2016 11:21 am

I have no electronics knowledge. From what I've seen on the forum.

1. The internal pull-ups/downs are circa 50k. I suggest something in the 5-20k range for external. I suppose it's best to use the highest value which works.

2. Depends on how bright you want your LEDs (modern ones seem too bright at maximum mA). I suggest something in the 330-1000 range. Suck it and see I'm afraid.

User avatar
rpdom
Posts: 17274
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: GPIO protection - resistor values

Sun Jan 17, 2016 11:35 am

People generally use 10K resistors for external pull-up/down as they are a very common value that most hobbyists have in their collection. It is worth getting a pack of those, and also 1K resistors, which can be used to protect the GPIO from overload if the GPIO is accidentally set as output while connected to ground or +V.

User avatar
mikronauts
Posts: 2794
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: GPIO protection - resistor values

Sun Jan 17, 2016 9:51 pm

what they said :)

I normally use:

10k for pullups or pulldowns
470R for LED's
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

Return to “Advanced users”