[{"data":1,"prerenderedAt":27},["ShallowReactive",2],{"content-pinout-reference-en":3},{"about":4,"steps":7,"faq":11},[5,6],"Which pin is SDA on the ESP32, where is GPIO18 on the Raspberry Pi, which Arduino pins do PWM? The pinout reference shows the headers of the Arduino Uno R3, Arduino Nano, ESP32-DevKitC (38 pins) and Raspberry Pi (40-pin header from model B+, including Pi 2 to 5 and Zero) with all functions: GPIO, analog, PWM, I²C, SPI, UART, interrupts, DAC and touch.","You can filter by function or search by name, GPIO number and alternative names – “21”, “SDA”, “MOSI” or “pin 12”. Clicking a pin shows details and important notes, such as the ESP32’s strapping pins, the input-only GPIO34–39 or the fixed pull-ups on the Raspberry Pi’s GPIO2\u002F3.",[8,9,10],"Choose the board.","Filter by a function such as I²C or PWM, or search for a pin name or GPIO number.","Tap a pin to see its physical position, GPIO number, functions and notes.",[12,15,18,21,24],{"q":13,"a":14},"Which ESP32 pins should I avoid?","GPIO6–11 are connected to the internal flash and off limits. GPIO0, 2, 5, 12 and 15 are strapping pins that set the boot mode at start-up – GPIO12 in particular must be low at power-up. GPIO34–39 are inputs only without pull-ups, and the ADC2 pins do not work as analog inputs while Wi-Fi is running.",{"q":16,"a":17},"Are the pins 5 V tolerant?","On the Arduino Uno and Nano yes, they run at 5 V. The ESP32 and Raspberry Pi use 3.3 V; 5 V on a GPIO can destroy the chip. For 5 V signals use a level shifter or a voltage divider, which you can design with the [[voltage-divider]] calculator.",{"q":19,"a":20},"How much current can a pin supply?","The ATmega328P of the Uno and Nano is rated 20 mA per pin (40 mA absolute maximum), the ESP32 about 20–40 mA depending on the setting, the Raspberry Pi only a few mA (8 mA by default, with a limit for all pins together). An LED therefore always needs a series resistor – work it out with the [[led-resistor]] calculator.",{"q":22,"a":23},"What do the pin numbers mean?","On the Raspberry Pi the number on the pin is the physical pin number (1–40) and the name is the BCM GPIO number you use in software. On the ESP32 the number is the position on the header and the name is the GPIO number. On the Arduino D13 is pin 13 in digitalWrite(); A0–A5 can also be addressed as 14–19.",{"q":25,"a":26},"Why are SDA and SCL on the Uno twice?","The SDA and SCL pins next to AREF are connected to A4 and A5 on the board. You can connect I²C at either place, but then cannot use A4 and A5 as analog inputs as well.",1794509136643]