Yarana Iot Guru
Published © MIT

Raspberry Pi 5 Setup for Beginners πŸ”₯ | OS Install, Testing

A complete beginner-friendly Raspberry Pi 5 setup guide covering OS installation, real-time testing, and SSH remote access. Perfect foundati

BeginnerShowcase (no instructions)8 hours1,246
Raspberry Pi 5 Setup for Beginners πŸ”₯ | OS Install, Testing

Things used in this project

Software apps and online services

Picovoice AI resbery pi

Story

Read more

Code

Raspberry Pi 5 Beginner Setup – Sample Commands / Code

C/C++
1️⃣ Check OS & Kernel
# Check Raspberry Pi OS version and kernel
uname -a
lsb_release -a

2️⃣ Update System

C/C++
# Update and upgrade your Raspberry Pi OS
sudo apt update
sudo apt upgrade -y
sudo reboot

3️⃣ Enable SSH (if not using GUI)

C/C++
# Enable SSH via terminal
sudo systemctl enable ssh
sudo systemctl start ssh

# Check SSH status
sudo systemctl status ssh

4️⃣ Connect via SSH from another system

C/C++
# Replace 'username' with your Raspberry Pi username
# Replace 'raspberrypi_ip' with your Pi's IP address
ssh username@raspberrypi_ip

5️⃣ Test GPIO Pins (Optional)

C/C++
# Save this as gpio_test.py
import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)

print("Blinking LED on GPIO18")
for i in range(5):
    GPIO.output(18, GPIO.HIGH)
    time.sleep(1)
    GPIO.output(18, GPIO.LOW)
    time.sleep(1)

GPIO.cleanup()

Credits

Abhishek Maurya

Posted by Yarana Iot Guru
Thanks to Yarana IoT Guru.

Comments