Stufin
Home Quick Cart Profile

Raspberry Pi 4 Desktop Kit (without Raspberry Pi Board)

Buy Now on Stufin

Power Supply

15W, 5V, 3A

Keyboard

UK-layout, compact design, built-in USB hub with three ports

Mouse

Optical, high-precision, 1000 DPI

Micro-HDMI to HDMI Cable1.5m, high-quality, supports up to 4K resolution

Heat Sinks

Designed for Raspberry Pi 4, ensures optimal thermal performance

USB-C Power Cable1.5m, supports up to 3A current
Genuine Raspberry Pi 4 CaseHigh-quality, official Raspberry Pi case, designed for optimal airflow and protection

Applications

The Raspberry Pi 4 Desktop Kit (without Raspberry Pi Board) is suitable for a wide range of applications, including

Learning programming and computer science concepts

Building media centers and home automation systems

Creating retro game consoles and emulators

Developing IoT projects and prototypes

Setting up a home office or small business computer

Conclusion

The Raspberry Pi 4 Desktop Kit (without Raspberry Pi Board) provides a comprehensive bundle of accessories that enable you to get started with your Raspberry Pi 4 project. With its high-quality power supply, keyboard, mouse, and other peripherals, this kit is ideal for anyone looking to build a desktop computer or IoT project with the Raspberry Pi 4.

Pin Configuration

  • Raspberry Pi 4 Desktop Kit (without Raspberry Pi Board) Pinout Guide
  • The Raspberry Pi 4 Desktop Kit is a comprehensive bundle that includes all the necessary components to get started with your IoT projects, except for the Raspberry Pi board itself. This guide focuses on the pinout of the GPIO header on the Raspberry Pi board, which is a crucial aspect of working with this popular single-board computer.
  • GPIO Header Pinout (40 pins)
  • The GPIO header on the Raspberry Pi 4 board consists of 40 pins, arranged in two rows of 20 pins each. Here is a detailed explanation of each pin, grouped by functionality:
  • Power Pins (6 pins)
  • 1. Pin 1: 3V3 Power - Provides 3.3V power output
  • 2. Pin 2: 5V Power - Provides 5V power output
  • 3. Pin 4: 5V Power - Provides 5V power output
  • 4. Pin 6: GND - Ground pin
  • 5. Pin 9: GND - Ground pin
  • 6. Pin 17: 3V3 Power - Provides 3.3V power output
  • GPIO Pins (26 pins)
  • GPIO 0-5 (6 pins)
  • 1. Pin 3: GPIO 0 (SDA) - General-purpose input/output pin, also used as I2C clock (SCL)
  • 2. Pin 5: GPIO 1 (SCL) - General-purpose input/output pin, also used as I2C data (SDA)
  • 3. Pin 7: GPIO 4 (GPIO_GEN4) - General-purpose input/output pin
  • 4. Pin 10: GPIO 18 (GPIO_GEN18) - General-purpose input/output pin
  • 5. Pin 11: GPIO 17 (GPIO_GEN17) - General-purpose input/output pin
  • 6. Pin 12: GPIO 27 (GPIO_GEN27) - General-purpose input/output pin
  • GPIO 6-15 (10 pins)
  • 1. Pin 13: GPIO 6 (GPIO_GEN6) - General-purpose input/output pin
  • 2. Pin 14: GPIO 13 (GPIO_GEN13) - General-purpose input/output pin
  • 3. Pin 15: GPIO 19 (GPIO_GEN19) - General-purpose input/output pin
  • 4. Pin 16: GPIO 26 (GPIO_GEN26) - General-purpose input/output pin
  • 5. Pin 18: GPIO 20 (GPIO_GEN20) - General-purpose input/output pin
  • 6. Pin 19: GPIO 21 (GPIO_GEN21) - General-purpose input/output pin
  • 7. Pin 20: GPIO 5 (GPIO_GEN5) - General-purpose input/output pin
  • 8. Pin 21: GPIO 6 (GPIO_GEN6) - General-purpose input/output pin
  • 9. Pin 22: GPIO 12 (GPIO_GEN12) - General-purpose input/output pin
  • 10. Pin 23: GPIO 16 (GPIO_GEN16) - General-purpose input/output pin
  • Additional Pins (8 pins)
  • 1. Pin 24: UART Tx (GPIO 14) - UART transmit pin
  • 2. Pin 25: UART Rx (GPIO 15) - UART receive pin
  • 3. Pin 28: UART CTS (GPIO 30) - UART clear to send pin
  • 4. Pin 29: UART RTS (GPIO 31) - UART request to send pin
  • 5. Pin 30: SPI CE0 (GPIO 10) - SPI chip enable 0 pin
  • 6. Pin 31: SPI CE1 (GPIO 11) - SPI chip enable 1 pin
  • 7. Pin 32: SPI MOSI (GPIO 12) - SPI master out slave in pin
  • 8. Pin 33: SPI MISO (GPIO 13) - SPI master in slave out pin
  • How to Connect the Pins
  • When connecting peripherals or components to the Raspberry Pi 4 GPIO header, follow these guidelines:
  • 1. Use a breadboard or PCB: Connect your components to a breadboard or a custom PCB, ensuring each pin is connected correctly.
  • 2. Verify pin functions: Ensure you understand the function of each pin and its corresponding GPIO number.
  • 3. Use jumper wires: Connect the components to the GPIO header using jumper wires, making sure to match the pin numbers.
  • 4. Avoid voltage mismatch: Be cautious when connecting 3.3V and 5V devices to avoid voltage mismatch and potential damage to your Raspberry Pi.
  • 5. Grounding: Connect the GND pins (6, 9, and 17) to a common ground point to ensure proper circuit operation.
  • Remember to consult the official Raspberry Pi documentation and datasheets for specific peripheral devices to ensure correct connection and usage.

Code Examples

Raspberry Pi 4 Desktop Kit (without Raspberry Pi Board) Documentation
Overview
The Raspberry Pi 4 Desktop Kit is a comprehensive bundle of accessories designed to complement the Raspberry Pi 4 single-board computer (not included). This kit provides everything you need to get started with your Raspberry Pi 4 project, minus the board itself. With this kit, you'll have a complete desktop setup, including a power supply, keyboard, mouse, HDMI cable, and more.
Kit Contents
Official Raspberry Pi 4 Power Supply (5V, 3A)
 Raspberry Pi Keyboard (UK layout)
 Raspberry Pi Mouse
 HDMI 2.0 Cable (1.5m)
 Micro USB Cable (1.5m)
 Official Raspberry Pi Beginner's Guide Book
Setup and Configuration
To set up your Raspberry Pi 4 Desktop Kit, follow these steps:
1. Insert the microSD card (not included) into the Raspberry Pi 4 board.
2. Connect the power supply to the Raspberry Pi 4 board.
3. Connect the keyboard and mouse to the Raspberry Pi 4 board using the provided USB cables.
4. Connect the HDMI cable to the Raspberry Pi 4 board and a HDMI-enabled monitor.
5. Power on your Raspberry Pi 4 board.
Example Code: Python Script for GPIO LED Blinking
The following example demonstrates how to use the Raspberry Pi 4 GPIO pins to blink an LED connected to GPIO 17.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Set up GPIO 17 as an output
GPIO.setup(17, GPIO.OUT)
try:
    while True:
        # Turn on LED
        GPIO.output(17, GPIO.HIGH)
        time.sleep(1)
        # Turn off LED
        GPIO.output(17, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    # Clean up GPIO on exit
    GPIO.cleanup()
```
Example Code: Python Script for Reading Temperature and Humidity using DHT11 Sensor
The following example demonstrates how to use the Raspberry Pi 4 to read temperature and humidity values from a DHT11 sensor connected to GPIO 4.
```python
import RPi.GPIO as GPIO
import dht11
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Set up DHT11 sensor on GPIO 4
dht_sensor = dht11.DHT11(pin=4)
try:
    while True:
        # Read temperature and humidity values
        result = dht_sensor.read()
        if result.is_valid():
            print("Temperature: {:.1f}C".format(result.temperature))
            print("Humidity: {:.1f}%".format(result.humidity))
        else:
            print("Error reading sensor data")
# Wait 1 second before taking the next reading
        time.sleep(1)
except KeyboardInterrupt:
    # Clean up GPIO on exit
    GPIO.cleanup()
```
Example Code: Python Script for Webcam Capture using OpenCV
The following example demonstrates how to use the Raspberry Pi 4 to capture images from a webcam connected to the USB port using OpenCV.
```python
import cv2
# Open the default camera (index 0)
cap = cv2.VideoCapture(0)
while True:
    # Capture frame-by-frame
    ret, frame = cap.read()
# Display the frame
    cv2.imshow('Webcam', frame)
# Press 'q' to quit
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
# Release the capture
cap.release()
cv2.destroyAllWindows()
```
These examples demonstrate the versatility of the Raspberry Pi 4 Desktop Kit, showcasing its potential for various applications, from GPIO control to sensor integration and computer vision.