

The Raspberry Pi 4, manufactured by Raspberry Pi, is a compact and affordable single-board computer designed for a wide range of applications. It features a powerful quad-core processor, multiple USB ports, dual micro-HDMI outputs, and GPIO pins for interfacing with various electronic components. This versatile device is ideal for projects in programming, robotics, IoT, media centers, and more. Its small form factor and robust capabilities make it a popular choice for both hobbyists and professionals.








| Specification | Details |
|---|---|
| Processor | Quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz |
| RAM Options | 2GB, 4GB, or 8GB LPDDR4-3200 SDRAM |
| Storage | MicroSD card slot for storage and operating system |
| USB Ports | 2 × USB 3.0, 2 × USB 2.0 |
| HDMI Output | 2 × micro-HDMI ports (supports up to 4K resolution) |
| Ethernet | Gigabit Ethernet |
| Wireless Connectivity | Dual-band 802.11ac Wi-Fi, Bluetooth 5.0 |
| GPIO Pins | 40-pin GPIO header (compatible with previous Raspberry Pi models) |
| Power Supply | 5V/3A via USB-C or GPIO header |
| Dimensions | 85.6mm × 56.5mm × 17mm |
| Operating System | Raspberry Pi OS (formerly Raspbian), supports other Linux-based OS options |
The Raspberry Pi 4 features a 40-pin GPIO header. Below is the pinout 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 (TXD0) | UART Transmit |
| 9 | Ground | Ground |
| 10 | GPIO15 (RXD0) | UART Receive |
| ... | ... | ... |
| 39 | Ground | Ground |
| 40 | GPIO21 | General-purpose I/O |
For the full GPIO pinout, refer to the official Raspberry Pi documentation.
Powering the Raspberry Pi 4:
Connecting Peripherals:
Using GPIO Pins:
RPi.GPIO or gpiozero in Python to control the pins.Networking:
Below is an example of how to blink an LED connected to GPIO pin 17 using Python:
import RPi.GPIO as GPIO # Library for GPIO control import time # Library for time delays
LED_PIN = 17 # GPIO pin where the LED is connected
GPIO.setmode(GPIO.BCM) # Use Broadcom pin numbering GPIO.setup(LED_PIN, GPIO.OUT) # Set the pin as an output
try: while True: GPIO.output(LED_PIN, GPIO.HIGH) # Turn the LED on time.sleep(1) # Wait for 1 second GPIO.output(LED_PIN, GPIO.LOW) # Turn the LED off time.sleep(1) # Wait for 1 second except KeyboardInterrupt: # Clean up GPIO settings on exit GPIO.cleanup()
---
The Raspberry Pi 4 does not boot:
Overheating:
No display on the monitor:
GPIO pins not working:
Can I use the Raspberry Pi 4 with a battery?
What operating systems are supported?
Can I connect multiple displays?
How do I reset the Raspberry Pi 4?
This documentation provides a comprehensive guide to using the Raspberry Pi 4 effectively in various projects. For additional resources, visit the official Raspberry Pi website.