Stufin
Home Quick Cart Profile

Raspberry Pi 400 Unit

Buy Now on Stufin

Processor

Broadcom BCM2711C0 quad-core Cortex-A72 (ARMv8) 64-bit SoC @ 1.8GHz

Memory

4GB LPDDR4-3200 SDRAM

Storage

MicroSD card slot for booting and storage

Graphics

Dual-display support, 4Kp60 hardware video decode, and H.265 (HEVC) decode

Networking

Dual-band 802.11ac wireless LAN, Bluetooth 5.0, and Gigabit Ethernet

USB

2x USB 3.0, 1x USB 2.0

GPIO

40-pin GPIO header with digital and analog I/O pins

Power

5V DC input, 3A recommended, supports PoE (Power over Ethernet)

Operating Temperature

0C to 50C

Dimensions

121mm x 65mm x 20mm

Additional Features

HDMI

1x HDMI 2.0a, supporting 4K resolutions at 60Hz

Audio

1x HDMI, 1x 3.5mm analog audio jack

Camera

1x MIPI camera interface

Display

1x DisplayPort (via USB-C)

Security

Onboard security features, including secure boot and trusted platform module (TPM)

Use Cases

The Raspberry Pi 400 Unit is an ideal choice for a wide range of applications, including

IoT development and prototyping

Robotics and automation

Home automation and smart home systems

Media centers and digital signage

Industrial control and monitoring systems

Education and learning platforms

DIY projects and maker communities

Software Support

The Raspberry Pi 400 Unit is supported by a wide range of operating systems and software platforms, including

Raspberry Pi OS (based on Linux)

Windows 10 IoT

Ubuntu Core

OpenWRT

Various Linux distributions

Benefits

The Raspberry Pi 400 Unit offers several benefits, including

Affordability

A cost-effective computing platform for IoT development and prototyping

Flexibility

Can run a variety of operating systems and software platforms

Ease of use

Accessible to developers of all skill levels, with a large community and extensive documentation

Customizability

Can be integrated with a wide range of sensors, peripherals, and accessories

Compact design

Ideal for embedded systems and IoT applications where space is limited

Pin Configuration

  • Raspberry Pi 400 Unit Pinout Guide
  • The Raspberry Pi 400 Unit is a compact, single-board computer that features a 40-pin GPIO (General Purpose Input/Output) header. This guide provides a detailed explanation of each pin, helping you understand their functions and how to connect them.
  • Pinout Structure:
  • The 40-pin GPIO header is divided into two rows of 20 pins each. The top row is labeled as 1-20 and the bottom row is labeled as 21-40.
  • Pin-by-Pin Explanation:
  • Top Row (1-20)
  • 1. 3.3V Power: Provides 3.3V power output.
  • 2. GPIO 2 (SDA): I2C (Inter-Integrated Circuit) bus data line.
  • 3. GPIO 3 (SCL): I2C bus clock line.
  • 4. GPIO 4 (GPCLK0): General-purpose clock output.
  • 5. GPIO 5: General-purpose input/output.
  • 6. GPIO 6: General-purpose input/output.
  • 7. GPIO 7: General-purpose input/output.
  • 8. TxD (Serial Transmit): Serial communication transmit data line.
  • 9. GPIO 8: General-purpose input/output.
  • 10. RxD (Serial Receive): Serial communication receive data line.
  • 11. GPIO 9: General-purpose input/output.
  • 12. GPIO 10: General-purpose input/output.
  • 13. GPIO 11: General-purpose input/output.
  • 14. GPIO 12: General-purpose input/output.
  • 15. GPIO 13: General-purpose input/output.
  • 16. GPIO 14: General-purpose input/output.
  • 17. GPIO 15: General-purpose input/output.
  • 18. GPIO 16: General-purpose input/output.
  • 19. GPIO 17: General-purpose input/output.
  • 20. GND (Ground): Ground connection.
  • Bottom Row (21-40)
  • 21. GPIO 18: General-purpose input/output.
  • 22. GPIO 19: General-purpose input/output.
  • 23. GPIO 20: General-purpose input/output.
  • 24. GPIO 21: General-purpose input/output.
  • 25. GPIO 22: General-purpose input/output.
  • 26. GPIO 23: General-purpose input/output.
  • 27. GPIO 24: General-purpose input/output.
  • 28. I2C EEPROM SDA: I2C bus data line for EEPROM (Electrically Erasable Programmable Read-Only Memory).
  • 29. I2C EEPROM SCL: I2C bus clock line for EEPROM.
  • 30. GPIO 25: General-purpose input/output.
  • 31. GPIO 26: General-purpose input/output.
  • 32. GPIO 27: General-purpose input/output.
  • 33. GPIO 28: General-purpose input/output.
  • 34. GND (Ground): Ground connection.
  • 35. GPIO 29: General-purpose input/output.
  • 36. GPIO 30: General-purpose input/output.
  • 37. GPIO 31: General-purpose input/output.
  • 38. GPIO 32: General-purpose input/output.
  • 39. GPIO 33: General-purpose input/output.
  • 40. 3.3V Power: Provides 3.3V power output.
  • Connecting the Pins:
  • When connecting components to the Raspberry Pi 400 Unit's GPIO header, ensure that:
  • Use male-female jumper wires or suitable connectors to connect the components to the GPIO pins.
  • Be mindful of the pinout structure and connect components to the correct pins to avoid damage or incorrect functionality.
  • Use a breadboard or a PCB (Printed Circuit Board) to connect components and wires neatly and securely.
  • Always double-check the connections before powering on the Raspberry Pi 400 Unit.
  • By understanding the functions of each pin, you can unlock the full potential of your Raspberry Pi 400 Unit and create innovative projects that integrate various sensors, actuators, and other IoT components.

Code Examples

Raspberry Pi 400 Unit Documentation
Overview
The Raspberry Pi 400 Unit is a compact, single-board computer designed for IoT and robotics applications. It is a powerful and affordable platform for prototyping and developing innovative projects.
Technical Specifications
Processor: Quad-core Cortex-A72 CPU
 Memory: 4GB RAM
 Storage: 16GB eMMC flash storage
 Operating System: Raspberry Pi OS (based on Linux)
 Connectivity: Wi-Fi, Bluetooth 5.0, Ethernet, USB 3.0, HDMI
 GPIO Pins: 40 pins for connecting sensors, actuators, and other peripherals
Programming Languages
The Raspberry Pi 400 Unit supports various programming languages, including:
Python
 Java
 C++
 Scratch
Code Examples
### Example 1: Blinking LED using Python
In this example, we will use the Raspberry Pi 400 Unit to control an LED connected to GPIO pin 17.
Hardware Requirements
Raspberry Pi 400 Unit
 LED
 1 k resistor
 Breadboard
 Jumper wires
Code
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define the GPIO pin for the LED
LED_PIN = 17
# Set up the LED pin as an output
GPIO.setup(LED_PIN, GPIO.OUT)
while True:
    # Turn the LED on
    GPIO.output(LED_PIN, GPIO.HIGH)
    time.sleep(1)
    # Turn the LED off
    GPIO.output(LED_PIN, GPIO.LOW)
    time.sleep(1)
```
Explanation
This code uses the RPi.GPIO library to control the GPIO pins on the Raspberry Pi 400 Unit. We set up the LED pin as an output and then use a while loop to toggle the LED on and off every second.
### Example 2: Reading Temperature with a DS18B20 Sensor using Java
In this example, we will use the Raspberry Pi 400 Unit to read the temperature from a DS18B20 sensor connected to GPIO pin 4.
Hardware Requirements
Raspberry Pi 400 Unit
 DS18B20 temperature sensor
 Breadboard
 Jumper wires
Code
```java
import java.io.FILE;
import java.io.FileNotFoundException;
import java.io.IOException;
public class TemperatureReader {
    public static void main(String[] args) {
        // Set up the DS18B20 sensor on GPIO pin 4
        String sensorPath = "/sys/bus/w1/devices/28-000004a6466d/temperature";
        try (File Reader = new FileReader(sensorPath)) {
            String temperature = reader.readLine();
            System.out.println("Temperature: " + temperature + "C");
        } catch (FileNotFoundException e) {
            System.err.println("Error: Sensor not found");
        } catch (IOException e) {
            System.err.println("Error: Unable to read temperature");
        }
    }
}
```
Explanation
This code uses Java to read the temperature from the DS18B20 sensor connected to GPIO pin 4. We use the `FileReader` class to read the temperature value from the sensor's device file. The temperature is then printed to the console.
### Example 3: Home Automation using Scratch
In this example, we will use the Raspberry Pi 400 Unit to control a relay module connected to GPIO pin 18, allowing us to turn a light on and off remotely using Scratch.
Hardware Requirements
Raspberry Pi 400 Unit
 Relay module
 Light bulb
 Breadboard
 Jumper wires
Code
Create a new Scratch project and add the following blocks:
`When FLAG clicked` block
 `Forever` block
 `If-Then` block
 `Digital Write` block (GPIO 18, High)
 `Digital Write` block (GPIO 18, Low)
Scratch Code
![Scratch Code](https://example.com/scratch_code.png)
Explanation
This code uses Scratch to control the relay module connected to GPIO pin 18. When the FLAG is clicked, the code checks the state of the relay and toggles it on or off accordingly. This allows us to remotely control the light bulb using Scratch.
Note: This documentation provides a brief overview of the Raspberry Pi 400 Unit and demonstrates its usage in various contexts. For more information on using the Raspberry Pi 400 Unit, refer to the official Raspberry Pi documentation and tutorials.