←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Notes

Raspberry Pi Architecture, Interfaces & Arduino Comparison

Study material and explanations for Unit 5

Raspberry Pi Architecture, Interfaces & Arduino Comparison

A Raspberry Pi can run a full operating system and host a camera dashboard. A small Arduino board can read a switch and drive an indicator with a simple repeated program. Pick the board by its timing, power and software needs.

1. What is Raspberry Pi? (Single Board Computer)

A Raspberry Pi is not just a microcontroller board like Arduino — it is a complete, credit-card-sized Single Board Computer (SBC)!

It packs an entire desktop computer motherboard onto a small palm-sized board:

  • Multi-core 64-bit ARM processor
  • 2 GB to 8 GB of RAM
  • USB ports for keyboard and mouse
  • HDMI ports to plug into a computer monitor or TV
  • Built-in Wi-Fi, Bluetooth, and Ethernet port

It runs a full-fledged operating system (like Raspberry Pi OS, based on Debian Linux). You can open a web browser, play videos, run a Python script, host a web server, and run a database all at the exact same time!

The processor and RAM run the operating system and applications. Storage and external interfaces complete the board’s role as a small computer.

  • Processor (SoC) — Broadcom BCM2711, Quad-core Cortex-A72 64-bit ARM CPU @ 1.5 GHz
  • System Memory (RAM) — 2 GB, 4 GB, or 8 GB LPDDR4 SDRAM
  • Storage Drive — MicroSD card slot used as the computer hard drive for OS and user files
  • Display Outputs — 2 × Micro-HDMI ports supporting dual 4K monitors

View diagram · Raspberry Pi (Model 4B) Hardware Highlights


2. Onboard Hardware Interfaces

The Pi connects displays, cameras, storage and network interfaces through different ports. Choose the port and software interface that match the peripheral.

Essential Hardware Ports:

  1. 40-Pin GPIO Header: Connects directly to electronic sensors, buttons, LEDs, and relays.
  2. CSI (Camera Serial Interface): Special ribbon cable port to connect the official Raspberry Pi high-definition camera module.
  3. DSI (Display Serial Interface): Ribbon cable port for small LCD touchscreens.
  4. USB Ports: 2 fast USB 3.0 ports (blue) for external hard drives, and 2 standard USB 2.0 ports (black) for mouse and keyboard.
  5. MicroSD Card Slot: Acts as the main hard drive holding the Linux OS, software, and files.

View diagram · Raspberry Pi 4 Hardware Interfaces & Peripherals


3. The 40-Pin GPIO Header Breakdown

The 40-pin header allows the Raspberry Pi to control physical circuits using 3.3V logic:

The header mixes power, ground and configurable signal pins. Identify the pin numbering scheme and respect the 3.3-volt GPIO logic level.

  • Power Pins — 2 × 5V power pins, 2 × 3.3V power pins, and 8 × Ground (GND) return pins.
  • Digital GPIO Pins — 26 programmable digital input/output pins running strictly at 3.3V.
  • I2C Bus Pins — Pin 3 (SDA) and Pin 5 (SCL) for two-wire digital sensors and displays.
  • SPI & UART Pins — Hardware SPI pins (MOSI, MISO, SCLK, CS) and UART serial pins (TX, RX).

⚠️ CRITICAL WARNING FOR STUDENTS:

  • Voltage Level: Arduino Uno uses 5V logic on its pins, but Raspberry Pi GPIO pins work strictly at 3.3V logic. If you connect a 5V sensor directly to a Raspberry Pi pin without a resistor voltage divider, you will permanently burn the Raspberry Pi processor!
  • No Built-In ADC: Raspberry Pi has NO analog input pins. To read analog sensors (like an LDR light sensor or analog moisture sensor), you must connect an external ADC chip (like the MCP3008).

View diagram · 40-Pin Header Capabilities (3.3V Logic)


4. Raspberry Pi vs. Arduino Uno: The Ultimate Comparison

This is one of the most frequently asked 10-mark questions in DAVV BCA exams:

Feature Arduino Uno Raspberry Pi (Model 4B)
Device Type Microcontroller Board (MCU) Single Board Computer (SBC)
Processor Chip Microchip ATmega328P (8-bit AVR RISC) Broadcom BCM2711 (Quad-Core 64-bit ARM CPU)
Clock Speed 16 MHz 1.5 GHz (Nearly 100 times faster!)
RAM (Memory) 2 KB 2 GB to 8 GB (Millions of times more memory)
Storage 32 KB Flash memory MicroSD Card (16 GB to 128+ GB)
Operating System No OS (Runs one single program in a loop) Full Linux OS (Multitasks many apps at once)
Analog Inputs 6 Built-in ADC channels (A0 to A5) No built-in ADC (Needs external ADC chip)
Logic Voltage 5V DC 3.3V DC (Damaged if given 5V!)
Main Language C / C++ (via Arduino IDE) Python, JavaScript (Node.js), C++, Java
Power Consumption Very low (~0.5 Watt; can run on a 9V battery) Moderate (~3 to 5 Watts; needs 5V 3A wall adapter)
Typical Cost Very Cheap (₹400 to ₹700 in India) Higher (₹4,000 to ₹7,000 in India)

5. When Should You Choose Which in an IoT Project?

A small controller suits simple, low-power repeated actions. A single-board computer suits work needing an operating system or richer peripherals.

  • Choose Arduino Uno When — • Your task is simple: read a sensor, turn on a relay. • Exact timing is required without OS delays. • The device runs on a small battery for months. • Reading direct analog voltage sensors. • Project budget is low.
  • Choose Raspberry Pi When — • Complex tasks: Computer vision, face recognition, or AI. • Running a local web server, database, or MQTT broker. • Video camera streaming or connecting a monitor. • Heavy internet networking and multitasking. • Acting as an IoT Central Edge Gateway.

View diagram · Selection Decision Matrix


💡 DAVV Exam Preparation Tips

5-Mark Question: “What is a Single Board Computer (SBC)? Give two examples.”

  • Definition: A complete computer built on a single small circuit board, containing a microprocessor, RAM, graphics, storage slot, and I/O pins.
  • Examples: Raspberry Pi 4B, BeagleBone Black.

5-Mark Question: “Why does Raspberry Pi require an external ADC to read analog sensors?”

  • Raspberry Pi’s processor only has digital GPIO pins (reads binary 1 or 0 at 3.3V).
  • It does not have an internal Analog-to-Digital Converter (ADC) circuit like Arduino does.
  • To read analog sensors, an external ADC chip (such as MCP3008) must be connected via SPI or I2C.

10-Mark Question: “Compare Raspberry Pi and Arduino Uno in detail across architecture, operating systems, hardware interfaces, power requirements, and ideal IoT use cases.”

  • Define both: Arduino is a Microcontroller Board; Raspberry Pi is a Single Board Computer.
  • Present the full 11-row comparison table (Processor, RAM, Storage, OS, Analog pins, Voltage, Price).
  • Explain voltage differences (Arduino = 5V, Raspberry Pi = 3.3V).
  • Conclude with the decision guide: Pick Arduino for simple sensor-relay tasks; pick Raspberry Pi for camera AI, databases, and IoT gateways.