Stufin
Home Quick Cart Profile

Raspberry Pi 3B

Buy Now on Stufin

Memory and Storage

The board comes with 1 GB of LPDDR2 RAM and a microSD card slot for storing the operating system and data.

Wireless Connectivity

802.11b/g/n Wi-Fi, Bluetooth 4.1

GPIO Pins

40

Multimedia Capabilities

The Raspberry Pi 3B has a built-in HDMI port, supporting resolutions up to 4K at 30 Hz, as well as a 3.5 mm audio jack and composite video output.

Power Management

The board can be powered via a micro-USB port or a GPIO header, and it has a power consumption of around 2.5 watts when idle.

Operating System

The Raspberry Pi 3B supports a wide range of operating systems, including Raspbian, Ubuntu, Windows 10 IoT, and more.

Camera Interface

The board has a CSI (Camera Serial Interface) connector, which allows users to connect a camera module for computer vision applications.

Dimensions

The Raspberry Pi 3B measures 85 mm x 56 mm x 17 mm, making it compact and easy to integrate into projects.

Technical Specifications

CPU

Broadcom BCM2837 quad-core Cortex-A53 CPU

Clock Speed

1.4 GHz

Memory

1 GB LPDDR2 RAM

Storage

MicroSD card slot

HDMI Port

1 x HDMI 1.4

Audio Jack

1 x 3.5 mm

Composite Video Output

1 x RCA

CSI Connector

1 x CSI

Power Consumption

around 2.5 watts (idle)

Power Input

micro-USB port or GPIO header

Operating Temperature

0C to 50C

Conclusion

The Raspberry Pi 3B is a powerful, versatile, and affordable single-board computer that is ideal for a wide range of applications, from IoT projects to home automation systems and artificial intelligence developments. Its ease of use, extensive community support, and comprehensive documentation make it an excellent choice for both beginners and experienced developers.

Pin Configuration

  • Raspberry Pi 3B Pinout Guide
  • The Raspberry Pi 3B is a popular single-board computer widely used in IoT projects. It has a 40-pin GPIO header that allows users to connect various peripherals and devices. Here is a detailed explanation of each pin, categorized by their functions:
  • Power Pins (1-6)
  • 1. 3.3V Power (Pin 1): Provides 3.3V power output for peripheral devices.
  • 2. 5V Power (Pin 2): Provides 5V power output for peripheral devices.
  • 3. 5V Power (Pin 4): Provides 5V power output for peripheral devices.
  • 4. Ground (Pin 6): Provides a ground connection for peripheral devices.
  • GPIO Pins (7-26)
  • GPIO Group 1 (7-10)
  • 7. GPIO 2 (Pin 7): General-purpose input/output pin.
  • 8. GPIO 3 (Pin 8): General-purpose input/output pin.
  • 9. GPIO 4 (Pin 9): General-purpose input/output pin.
  • 10. GPIO 5 (Pin 10): General-purpose input/output pin.
  • GPIO Group 2 (11-14)
  • 11. GPIO 6 (Pin 11): General-purpose input/output pin.
  • 12. GPIO 12 (Pin 12): General-purpose input/output pin.
  • 13. GPIO 13 (Pin 13): General-purpose input/output pin.
  • 14. GPIO 14 (Pin 14): General-purpose input/output pin.
  • GPIO Group 3 (15-18)
  • 15. GPIO 15 (Pin 15): General-purpose input/output pin.
  • 16. GPIO 16 (Pin 16): General-purpose input/output pin.
  • 17. GPIO 17 (Pin 17): General-purpose input/output pin.
  • 18. GPIO 18 (Pin 18): General-purpose input/output pin.
  • UART Pins (19-21)
  • 19. TXD (Pin 19): UART transmit data pin.
  • 20. RXD (Pin 20): UART receive data pin.
  • 21. GPIO 21 (Pin 21): General-purpose input/output pin or UART RTS pin.
  • SPI Pins (22-24)
  • 22. SCLK (Pin 22): SPI clock pin.
  • 23. MOSI (Pin 23): SPI master output/slave input pin.
  • 24. MISO (Pin 24): SPI master input/slave output pin.
  • I2C Pins (25-26)
  • 25. SCL (Pin 25): I2C clock pin.
  • 26. SDA (Pin 26): I2C data pin.
  • Other Pins (27-40)
  • 27. GPIO 22 (Pin 27): General-purpose input/output pin.
  • 28. GPIO 23 (Pin 28): General-purpose input/output pin.
  • 29. GPIO 24 (Pin 29): General-purpose input/output pin.
  • 30. GPIO 25 (Pin 30): General-purpose input/output pin.
  • 31. GPIO 26 (Pin 31): General-purpose input/output pin.
  • 32. GPIO 27 (Pin 32): General-purpose input/output pin.
  • 33. GPIO 28 (Pin 33): General-purpose input/output pin.
  • 34. GPIO 29 (Pin 34): General-purpose input/output pin.
  • 35. GPIO 30 (Pin 35): General-purpose input/output pin.
  • 36. GPIO 31 (Pin 36): General-purpose input/output pin.
  • 37. GPIO 32 (Pin 37): General-purpose input/output pin.
  • 38. GPIO 33 (Pin 38): General-purpose input/output pin.
  • 39. GPIO 34 (Pin 39): General-purpose input/output pin.
  • 40. Ground (Pin 40): Provides a ground connection for peripheral devices.
  • Pin Connection Structure:
  • When connecting pins, ensure that you use the correct pin number and orientation to avoid damage to the Raspberry Pi or peripheral devices.
  • Use male-to-male jumper wires or female-to-female jumper wires to connect pins.
  • Make sure to match the pin numbers on both the Raspberry Pi and the peripheral device.
  • Use a breadboard or PCB to connect multiple devices and keep the connections organized.
  • Always double-check the pin connections before powering on the Raspberry Pi.
  • Remember to consult the Raspberry Pi documentation and relevant peripheral device datasheets for specific pin usage guidelines and safety precautions.

Code Examples

Raspberry Pi 3B Documentation
Overview
The Raspberry Pi 3B is a credit-card sized, low-cost, and highly capable single-board computer (SBC) designed for IoT, robotics, and automation projects. It is a popular choice among DIY enthusiasts, students, and professionals due to its ease of use, flexibility, and versatility.
Features
Broadcom BCM2837 quad-core Cortex-A53 CPU (64-bit)
 1GB RAM
 802.11n Wi-Fi
 Bluetooth 4.1
 HDMI output
 4x USB 2.0 ports
 40-pin GPIO header
 MicroSD card slot
Programming Languages
The Raspberry Pi 3B supports a variety of programming languages, including Python, Java, C++, and Node.js.
Example 1: Python Example - Blinking LED
This example demonstrates how to use the Raspberry Pi 3B's GPIO pins to blink an LED.
Hardware Requirements:
Raspberry Pi 3B
 Breadboard
 LED
 Resistor (220)
 Jumper wires
Software Requirements:
Raspbian OS (latest version)
 Python 3 (pre-installed)
Code:
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Set up LED pin as output
LED_PIN = 17
GPIO.setup(LED_PIN, GPIO.OUT)
try:
    while True:
        # Turn LED on
        GPIO.output(LED_PIN, GPIO.HIGH)
        time.sleep(1)
        
        # Turn LED off
        GPIO.output(LED_PIN, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    GPIO.cleanup()
```
Example 2: Node.js Example - Web Interface for Temperature Reading
This example demonstrates how to use the Raspberry Pi 3B to create a web interface for reading temperature data from a DS18B20 sensor.
Hardware Requirements:
Raspberry Pi 3B
 DS18B20 temperature sensor
 Breadboard
 Jumper wires
Software Requirements:
Raspbian OS (latest version)
 Node.js (installed via npm)
 express.js (installed via npm)
Code:
```javascript
const express = require('express');
const app = express();
const fs = require('fs');
const path = require('path');
const gpio = require('rpi-gpio');
const sensorPin = 4; // Pin for DS18B20 sensor
app.use(express.static(path.join(__dirname, 'public')));
app.get('/temperature', (req, res) => {
  gpio.setup(sensorPin, gpio.DIR_IN);
  const temperature = fs.readFileSync('/sys/bus/w1/devices/28-000007123456/temperature', 'utf8');
  res.send(`Temperature: ${temperature}C`);
});
app.listen(3000, () => {
  console.log('Server started on port 3000');
});
```
Example 3: C++ Example - GPIO Input/Output
This example demonstrates how to use the Raspberry Pi 3B's GPIO pins for input and output operations using C++.
Hardware Requirements:
Raspberry Pi 3B
 Breadboard
 Button (push-button switch)
 LED
 Jumper wires
Software Requirements:
Raspbian OS (latest version)
 GCC compiler (pre-installed)
Code:
```c
#include <iostream>
#include <wiringPi.h>
#define BUTTON_PIN 23
#define LED_PIN 17
int main() {
  wiringPiSetup();
pinMode(BUTTON_PIN, INPUT);
  pinMode(LED_PIN, OUTPUT);
while (1) {
    if (digitalRead(BUTTON_PIN) == HIGH) {
      digitalWrite(LED_PIN, HIGH);
    } else {
      digitalWrite(LED_PIN, LOW);
    }
    delay(100);
  }
return 0;
}
```
These examples demonstrate the versatility of the Raspberry Pi 3B in various contexts, from simple GPIO operations to web-based interfaces and C++ programming.