Overview - GPIO pin numbering (BCM vs BOARD)
What is it?
GPIO pin numbering refers to the way we identify the pins on a Raspberry Pi's GPIO (General Purpose Input/Output) header. There are two main numbering systems: BCM and BOARD. BCM numbers refer to the Broadcom chip's internal pin numbers, while BOARD numbers refer to the physical pin positions on the Raspberry Pi's header. Understanding these helps you connect and control hardware correctly.
Why it matters
Without knowing the difference between BCM and BOARD numbering, you might connect wires to the wrong pins, causing your hardware to malfunction or even damage your Raspberry Pi. Clear pin numbering ensures your programs control the right pins, making your projects safe and reliable.
Where it fits
Before learning GPIO pin numbering, you should understand basic electronics and Raspberry Pi hardware layout. After this, you can learn how to write code to control GPIO pins and connect sensors or devices safely.