

The Raspberry Pi 4B is a compact, affordable single-board computer designed for a wide range of applications. It features a powerful quad-core processor, up to 8GB of RAM, multiple USB ports, dual micro-HDMI outputs, and built-in Wi-Fi and Bluetooth connectivity. This versatile device is ideal for projects such as learning programming, building IoT devices, creating media centers, and more. Its small form factor and robust capabilities make it a popular choice for hobbyists, educators, and professionals alike.








| Specification | Details |
|---|---|
| Processor | Broadcom BCM2711, Quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz |
| RAM Options | 2GB, 4GB, or 8GB LPDDR4 |
| Storage | MicroSD card slot (supports up to 1TB) |
| USB Ports | 2x USB 3.0, 2x USB 2.0 |
| Video Output | 2x micro-HDMI ports (up to 4K resolution) |
| Networking | Gigabit Ethernet, 802.11ac Wi-Fi, Bluetooth 5.0 |
| GPIO Pins | 40-pin GPIO header (3.3V logic) |
| Power Supply | 5V/3A via USB-C or GPIO header |
| Dimensions | 85.6mm x 56.5mm x 17mm |
| Operating System | Raspberry Pi OS (Linux-based), supports other OS like Ubuntu and more |
The Raspberry Pi 4B features a 40-pin GPIO header for interfacing with external components. Below is a summary of the pin configuration:
| Pin Number | Pin Name | Function | Voltage Level |
|---|---|---|---|
| 1 | 3.3V Power | Power Output | 3.3V |
| 2 | 5V Power | Power Output | 5V |
| 3 | GPIO2 (SDA1) | I2C Data | 3.3V |
| 4 | 5V Power | Power Output | 5V |
| 5 | GPIO3 (SCL1) | I2C Clock | 3.3V |
| 6 | Ground | Ground | 0V |
| ... | ... | ... | ... |
| 39 | Ground | Ground | 0V |
| 40 | GPIO21 | General Purpose I/O | 3.3V |
For a complete GPIO pinout, refer to the official Raspberry Pi documentation.
Powering the Raspberry Pi:
Connecting Peripherals:
Using GPIO 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 to control GPIO pins 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 LED_PIN as an output pin
try: while True: GPIO.output(LED_PIN, GPIO.HIGH) # Turn LED on time.sleep(1) # Wait for 1 second GPIO.output(LED_PIN, GPIO.LOW) # Turn LED off time.sleep(1) # Wait for 1 second except KeyboardInterrupt: # Clean up GPIO settings on exit GPIO.cleanup()
blink.py on your Raspberry Pi.python3 blink.py.The Raspberry Pi does not boot:
Wi-Fi or Bluetooth is not working:
GPIO pins are not responding:
Overheating:
Can I power the Raspberry Pi 4B with a power bank? Yes, as long as the power bank provides a stable 5V/3A output.
What operating systems are supported? The Raspberry Pi 4B supports Raspberry Pi OS, Ubuntu, and other Linux-based distributions.
Can I connect multiple displays? Yes, the Raspberry Pi 4B supports dual displays via its two micro-HDMI ports.
How do I reset the Raspberry Pi? Simply unplug and replug the power supply. There is no dedicated reset button.
By following this documentation, you can effectively use the Raspberry Pi 4B for a variety of projects and applications.