Getting Started with Raspberry Pi
What is Raspberry Pi
Raspberry Pi is a single-board computer running Linux. Use it for edge computing, home servers, AI/ML, or any project needing a full OS.
Prerequisites
- Raspberry Pi (4B/5 recommended)
- microSD card (16 GB or larger, Class 10)
- Power supply (5V 3A)
Install
- Download Raspberry Pi Imager from raspberrypi.com/software
- Choose Raspberry Pi OS (64-bit) and your SD card, then click Write
- Insert SD into Pi, connect power — OS boots automatically
First Example: GPIO Blink in Python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM); GPIO.setup(17, GPIO.OUT)
for _ in range(10):
GPIO.output(17, GPIO.HIGH); time.sleep(1)
GPIO.output(17, GPIO.LOW); time.sleep(1)
GPIO.cleanup()