Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Raspberry Pi Model B Revision 2: Examples, Pinouts, and Specs

Image of Raspberry Pi Model B Revision 2
Cirkit Designer LogoDesign with Raspberry Pi Model B Revision 2 in Cirkit Designer

Introduction

The Raspberry Pi Model B Revision 2, manufactured by Raspberry Pi Ltd, is a small, affordable single-board computer designed for a wide range of applications. It features a 700 MHz ARM processor, 512 MB of RAM, and multiple USB ports, making it an excellent choice for DIY projects, educational purposes, and prototyping. Its compact size and versatility have made it a popular tool among hobbyists, students, and professionals alike.

Explore Projects Built with Raspberry Pi Model B Revision 2

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi 4B-Based Smart Surveillance System with GPS and Ultrasonic Sensing
Image of VisionTool: A project utilizing Raspberry Pi Model B Revision 2 in a practical application
This circuit features a Raspberry Pi 4B as the central processing unit, interfacing with an Arducam camera module, an HC-SR04 ultrasonic sensor, a GPS NEO 6M module, and a speaker. The Raspberry Pi manages image capture, distance measurement, GPS data reception, and audio output. Power is supplied to the components from a 2000mAh battery, and the Raspberry Pi facilitates communication and control over the I2C, GPIO, and serial interfaces.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi and ESP32 CAM-Based Weather Station with I2C Display and Sensor Integration
Image of Image restoration : A project utilizing Raspberry Pi Model B Revision 2 in a practical application
This circuit integrates a Raspberry Pi 2B with various sensors and an ESP32 CAM module to create a comprehensive environmental monitoring system. The Raspberry Pi collects data from a DHT11 temperature and humidity sensor, an LDR for light intensity, a rain sensor, and an ADS1115 ADC for analog inputs, while the ESP32 CAM provides camera functionality. The data is displayed on an OLED screen connected via I2C.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 4B-Based IR Sensor and Servomotor Control System with Indicator LEDs
Image of RPI-MIDTERM_OUTPUT-EXAM: A project utilizing Raspberry Pi Model B Revision 2 in a practical application
This circuit features a Raspberry Pi 4B as the central controller, interfaced with two IR sensors and two servomotors. The IR sensors are powered by the Raspberry Pi's 3.3V output and their signal outputs are connected to GPIO pins for detection of IR signals. Additionally, two LEDs (one green, one red) are connected to GPIO pins through resistors, and the servomotors are powered by the Raspberry Pi's 5V output with control signals connected to separate GPIO pins.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 4B-Controlled Biometric Access System with Dual Stepper Motor Actuation
Image of wiring: A project utilizing Raspberry Pi Model B Revision 2 in a practical application
This circuit features a Raspberry Pi 4B as the central controller, interfacing with various sensors and modules. It includes a vl53l0xv2 time-of-flight sensor and an AS5600 magnetic encoder for position sensing, both connected via I2C (SDA/SCL lines). The circuit also controls two DRV8825 stepper motor drivers connected to NEMA 17 stepper motors, receives temperature data from a DS18B20 sensor, and communicates with a fingerprint scanner for biometric input. A TM1637 display module is included for user feedback. Power management is handled by a buck converter and a 12V power supply, with the Raspberry Pi and other 3.3V components powered through the buck converter's regulated output.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Raspberry Pi Model B Revision 2

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of VisionTool: A project utilizing Raspberry Pi Model B Revision 2 in a practical application
Raspberry Pi 4B-Based Smart Surveillance System with GPS and Ultrasonic Sensing
This circuit features a Raspberry Pi 4B as the central processing unit, interfacing with an Arducam camera module, an HC-SR04 ultrasonic sensor, a GPS NEO 6M module, and a speaker. The Raspberry Pi manages image capture, distance measurement, GPS data reception, and audio output. Power is supplied to the components from a 2000mAh battery, and the Raspberry Pi facilitates communication and control over the I2C, GPIO, and serial interfaces.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Image restoration : A project utilizing Raspberry Pi Model B Revision 2 in a practical application
Raspberry Pi and ESP32 CAM-Based Weather Station with I2C Display and Sensor Integration
This circuit integrates a Raspberry Pi 2B with various sensors and an ESP32 CAM module to create a comprehensive environmental monitoring system. The Raspberry Pi collects data from a DHT11 temperature and humidity sensor, an LDR for light intensity, a rain sensor, and an ADS1115 ADC for analog inputs, while the ESP32 CAM provides camera functionality. The data is displayed on an OLED screen connected via I2C.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of RPI-MIDTERM_OUTPUT-EXAM: A project utilizing Raspberry Pi Model B Revision 2 in a practical application
Raspberry Pi 4B-Based IR Sensor and Servomotor Control System with Indicator LEDs
This circuit features a Raspberry Pi 4B as the central controller, interfaced with two IR sensors and two servomotors. The IR sensors are powered by the Raspberry Pi's 3.3V output and their signal outputs are connected to GPIO pins for detection of IR signals. Additionally, two LEDs (one green, one red) are connected to GPIO pins through resistors, and the servomotors are powered by the Raspberry Pi's 5V output with control signals connected to separate GPIO pins.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wiring: A project utilizing Raspberry Pi Model B Revision 2 in a practical application
Raspberry Pi 4B-Controlled Biometric Access System with Dual Stepper Motor Actuation
This circuit features a Raspberry Pi 4B as the central controller, interfacing with various sensors and modules. It includes a vl53l0xv2 time-of-flight sensor and an AS5600 magnetic encoder for position sensing, both connected via I2C (SDA/SCL lines). The circuit also controls two DRV8825 stepper motor drivers connected to NEMA 17 stepper motors, receives temperature data from a DS18B20 sensor, and communicates with a fingerprint scanner for biometric input. A TM1637 display module is included for user feedback. Power management is handled by a buck converter and a 12V power supply, with the Raspberry Pi and other 3.3V components powered through the buck converter's regulated output.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Educational Projects: Teaching programming, electronics, and computer science.
  • DIY Electronics: Building home automation systems, IoT devices, and robotics.
  • Media Centers: Setting up a low-cost media streaming device.
  • Prototyping: Developing and testing hardware and software solutions.
  • Networking: Acting as a lightweight server or network monitoring tool.

Technical Specifications

The following table outlines the key technical details of the Raspberry Pi Model B Revision 2:

Specification Details
Processor 700 MHz ARM1176JZF-S (ARMv6 architecture)
RAM 512 MB SDRAM
USB Ports 2 x USB 2.0
Ethernet 10/100 Mbps Ethernet port
GPIO Pins 26-pin GPIO header (17 GPIO pins available)
Video Output HDMI and composite video
Audio Output 3.5 mm audio jack and HDMI
Storage SD card slot for booting and storage
Power Supply 5V micro-USB (recommended 700 mA or higher)
Dimensions 85.6 mm x 56.5 mm x 21 mm
Weight 45 g

Pin Configuration and Descriptions

The Raspberry Pi Model B Revision 2 features a 26-pin GPIO header. Below is the pinout:

Pin Number Pin Name Description
1 3.3V 3.3V Power
2 5V 5V Power
3 GPIO 2 (SDA1) I2C Data
4 5V 5V Power
5 GPIO 3 (SCL1) I2C Clock
6 Ground Ground
7 GPIO 4 General Purpose I/O
8 GPIO 14 (TXD) UART Transmit
9 Ground Ground
10 GPIO 15 (RXD) UART Receive
11 GPIO 17 General Purpose I/O
12 GPIO 18 PWM Output
13 GPIO 27 General Purpose I/O
14 Ground Ground
15 GPIO 22 General Purpose I/O
16 GPIO 23 General Purpose I/O
17 3.3V 3.3V Power
18 GPIO 24 General Purpose I/O
19 GPIO 10 (MOSI) SPI MOSI
20 Ground Ground
21 GPIO 9 (MISO) SPI MISO
22 GPIO 25 General Purpose I/O
23 GPIO 11 (SCLK) SPI Clock
24 GPIO 8 (CE0) SPI Chip Enable 0
25 Ground Ground
26 GPIO 7 (CE1) SPI Chip Enable 1

Usage Instructions

How to Use the Raspberry Pi Model B Revision 2 in a Circuit

  1. Powering the Raspberry Pi:

    • Use a 5V micro-USB power supply capable of delivering at least 700 mA.
    • Ensure the power supply is stable to avoid unexpected shutdowns.
  2. Connecting Peripherals:

    • Attach a USB keyboard and mouse to the USB ports.
    • Connect an HDMI cable to a monitor or TV for video output.
    • Insert an SD card with a compatible operating system (e.g., Raspbian).
  3. Using GPIO Pins:

    • Use jumper wires to connect the GPIO pins to external components like LEDs, sensors, or motors.
    • Be cautious not to exceed the voltage and current limits of the GPIO pins (3.3V logic level).
  4. Networking:

    • Connect an Ethernet cable to the Ethernet port for internet access or local networking.

Important Considerations and Best Practices

  • Static Protection: Always handle the Raspberry Pi by its edges to avoid static damage to the components.
  • Cooling: While the Model B Revision 2 does not require active cooling, adding a heatsink can improve performance during intensive tasks.
  • GPIO Safety: Avoid connecting GPIO pins directly to 5V or high-current devices without proper resistors or level shifters.
  • Software Updates: Regularly update the operating system and software packages to ensure security and compatibility.

Example: Blinking an LED with GPIO and Python

Below is an example of how to blink an LED connected to GPIO pin 17 using Python:


Import the necessary library for GPIO control

import RPi.GPIO as GPIO import time

Set up GPIO mode and pin

GPIO.setmode(GPIO.BCM) # Use Broadcom pin numbering GPIO.setup(17, GPIO.OUT) # Set GPIO 17 as an output pin

try: while True: GPIO.output(17, GPIO.HIGH) # Turn on the LED time.sleep(1) # Wait for 1 second GPIO.output(17, GPIO.LOW) # Turn off the LED time.sleep(1) # Wait for 1 second except KeyboardInterrupt: # Clean up GPIO settings on exit GPIO.cleanup()


Troubleshooting and FAQs

Common Issues and Solutions

  1. The Raspberry Pi does not boot:

    • Ensure the SD card is properly inserted and contains a valid operating system image.
    • Check the power supply for sufficient voltage and current.
  2. No video output on the monitor:

    • Verify the HDMI cable is securely connected.
    • Ensure the monitor is set to the correct input source.
    • Edit the config.txt file on the SD card to force HDMI output if necessary.
  3. GPIO pins not working:

    • Double-check the pin connections and ensure the correct pin numbering is used in the code.
    • Verify that the GPIO pins are not damaged or shorted.
  4. Overheating:

    • Ensure the Raspberry Pi is placed in a well-ventilated area.
    • Consider adding a heatsink or fan for better cooling.

FAQs

  • Can I power the Raspberry Pi via GPIO pins?
    Yes, you can power the Raspberry Pi by supplying 5V to the 5V GPIO pin and connecting ground to a GND pin. However, this bypasses the onboard voltage protection, so proceed with caution.

  • What operating systems are compatible with the Raspberry Pi Model B Revision 2?
    The Raspberry Pi supports various operating systems, including Raspbian (now Raspberry Pi OS), Ubuntu, and other lightweight Linux distributions.

  • Can I use the Raspberry Pi Model B Revision 2 for modern applications?
    While it is suitable for basic tasks, its limited processing power and RAM may not handle resource-intensive applications effectively. For such tasks, consider newer Raspberry Pi models.