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 Ethernet connectivity. This versatile device is ideal for projects such as programming, media centers, IoT applications, robotics, and more. Its small form factor and robust performance make it a popular choice for both hobbyists and professionals.
Below are the key technical details of the Raspberry Pi 4B:
The Raspberry Pi 4B features a 40-pin GPIO header. Below is a table summarizing the pin configuration:
Pin Number | Pin Name | Functionality |
---|---|---|
1 | 3.3V Power | 3.3V power output |
2 | 5V Power | 5V power output |
3 | GPIO2 (SDA1) | I2C Data |
4 | 5V Power | 5V power output |
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 |
... | ... | ... (Refer to full GPIO pinout) |
For a complete GPIO pinout, refer to the official Raspberry Pi documentation.
The GPIO pins can be used to interface with external components like LEDs, sensors, and motors. Below is an example of controlling an LED using Python and the GPIO library.
import RPi.GPIO as GPIO import time
GPIO.setmode(GPIO.BCM)
LED_PIN = 18
GPIO.setup(LED_PIN, GPIO.OUT)
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 when the program is interrupted GPIO.cleanup()
This concludes the documentation for the Raspberry Pi 4B. For further details, refer to the official Raspberry Pi website.