

The Raspberry Pi is a small, affordable single-board computer designed for a wide range of applications, including programming, electronics, and Internet of Things (IoT) projects. It is widely used in education, prototyping, and hobbyist projects due to its versatility, low cost, and extensive community support. The Raspberry Pi can run a variety of operating systems, with Raspberry Pi OS (formerly Raspbian) being the most popular.
Common applications of the Raspberry Pi include:








The Raspberry Pi comes in various models, such as the Raspberry Pi 4 Model B, Raspberry Pi 3 Model B+, and Raspberry Pi Zero. Below are the general technical specifications for the Raspberry Pi 4 Model B, one of the most popular models:
| Specification | Details |
|---|---|
| Processor | Quad-core ARM Cortex-A72, 64-bit, 1.5 GHz |
| RAM | 2 GB, 4 GB, or 8 GB LPDDR4 (depending on the model) |
| Storage | MicroSD card slot for OS and data storage |
| USB Ports | 2 × USB 3.0, 2 × USB 2.0 |
| HDMI Ports | 2 × Micro HDMI (supports up to 4K resolution) |
| Networking | Gigabit Ethernet, 802.11ac Wi-Fi, Bluetooth 5.0 |
| GPIO Pins | 40-pin header (3.3V logic, supports I2C, SPI, UART, and more) |
| Power Supply | 5V/3A via USB-C |
| Dimensions | 85.6 mm × 56.5 mm × 17 mm |
The Raspberry Pi features a 40-pin General Purpose Input/Output (GPIO) header. Below is a table summarizing the pin configuration:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | 3.3V Power | 3.3V power supply |
| 2 | 5V Power | 5V power supply |
| 3 | GPIO2 (SDA1) | I2C Data |
| 4 | 5V Power | 5V power supply |
| 5 | GPIO3 (SCL1) | I2C Clock |
| 6 | Ground | Ground |
| 7 | GPIO4 | General-purpose I/O |
| 8 | GPIO14 (TXD) | UART Transmit |
| 9 | Ground | Ground |
| 10 | GPIO15 (RXD) | UART Receive |
| ... | ... | ... |
| 39 | Ground | Ground |
| 40 | GPIO21 | General-purpose I/O |
For a complete GPIO pinout, refer to the official Raspberry Pi documentation.
Below is an example of how to blink an LED connected to GPIO pin 17 using Python:
import RPi.GPIO as GPIO # Library to control GPIO pins import time # Library for time delays
GPIO.setmode(GPIO.BCM) # Use Broadcom pin numbering GPIO.setup(17, GPIO.OUT) # Set GPIO pin 17 as an output
try: while True: GPIO.output(17, GPIO.HIGH) # Turn the LED on time.sleep(1) # Wait for 1 second GPIO.output(17, GPIO.LOW) # Turn the LED off time.sleep(1) # Wait for 1 second except KeyboardInterrupt: # Clean up GPIO settings when the program is interrupted GPIO.cleanup()
**Note**: Connect the LED's anode (long leg) to GPIO pin 17 and the cathode (short leg) to a resistor (e.g., 330 ohms), which is then connected to a ground pin.
The Raspberry Pi does not boot:
No display on the monitor:
GPIO pins not working:
Overheating:
Can I power the Raspberry Pi via GPIO pins? Yes, you can power the Raspberry Pi via the 5V and GND GPIO pins, but this bypasses the onboard voltage regulation and protection circuits. Use this method with caution.
What operating systems can I run on the Raspberry Pi? The Raspberry Pi supports Raspberry Pi OS, Ubuntu, and other Linux-based distributions. It can also run lightweight versions of Windows.
How do I enable SSH for remote access?
Create an empty file named ssh (no file extension) in the boot partition of the microSD card before booting the Raspberry Pi.
By following this documentation, you can effectively use the Raspberry Pi for a variety of projects and troubleshoot common issues.