

The Raspberry Pi 4 Model B, manufactured by Raspberry Pi, is a compact and affordable single-board computer designed for a wide range of applications. Equipped with a powerful quad-core processor, multiple USB ports, dual HDMI outputs, and GPIO pins, it is ideal for projects in computing, robotics, IoT, and more. Its versatility and performance make it a popular choice for hobbyists, educators, and professionals alike.








The Raspberry Pi 4 Model B offers a range of features and capabilities to suit various project requirements.
| Feature | Specification |
|---|---|
| Processor | Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz |
| Memory Options | 2GB, 4GB, or 8GB LPDDR4-3200 SDRAM |
| Storage | MicroSD card slot for OS and data storage |
| USB Ports | 2 × USB 3.0, 2 × USB 2.0 |
| Video Output | 2 × micro-HDMI ports, up to 4K resolution at 60fps |
| Networking | Gigabit Ethernet, 2.4GHz/5.0GHz IEEE 802.11ac Wi-Fi, Bluetooth 5.0 |
| GPIO Pins | 40-pin GPIO header, 3.3V logic level |
| Power Supply | 5V/3A via USB-C or GPIO header |
| Dimensions | 85.6mm × 56.5mm × 17mm |
| Operating System | Raspberry Pi OS (formerly Raspbian), Linux-based OS, or other compatible systems |
The Raspberry Pi 4 Model B features a 40-pin GPIO header for interfacing with external components.
| Pin Number | 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 a full GPIO pinout, refer to the official Raspberry Pi documentation.
The following example demonstrates how to blink an LED connected to GPIO pin 17 using Python.
import RPi.GPIO as GPIO import time
GPIO.setmode(GPIO.BCM) # Use Broadcom pin numbering GPIO.setup(17, GPIO.OUT) # Set GPIO17 as an output pin
try: while True: GPIO.output(17, GPIO.HIGH) # Turn on the LED time.sleep(1) # Wait for 1 second GPIO.output(17, GPIO.LOW) # Turn off the LED time.sleep(1) # Wait for 1 second except KeyboardInterrupt: # Clean up GPIO settings on exit GPIO.cleanup()
The Raspberry Pi does not boot:
No display on the monitor:
Wi-Fi connectivity issues:
GPIO pins not working:
dmesg command to view system logs for hardware-related errors.