⚙️ 1) Install Raspberry Pi OS
Install a lightweight Raspberry Pi OS (Bookworm or Trixie). Then we update the system and enable the required interfaces.
Base
💾 Image & first boot
Write Raspberry Pi OS to the SD card and enable SSH right away. Then boot the Pi and verify the basics.
- Open Raspberry Pi Imager
- Select Raspberry Pi OS (Bookworm or Trixie)
- Select SD card & write (enable SSH in the settings)
🔄 Updates
First: update the system.
sudo apt update && sudo apt upgrade -y
🔌 Enable interfaces (required)
Several interfaces must be enabled on the Raspberry Pi in order to use sensors and extensions.
Option 1: Enable via raspi-config (recommended)
sudo raspi-config
- Interface Options → SSH → Enable
- Interface Options → I2C → Enable
- Interface Options → 1-Wire → Enable
Option 2: Enable via command line
sudo raspi-config nonint do_i2c 0
sudo raspi-config nonint do_onewire 0
sudo systemctl enable ssh
sudo systemctl start ssh
sudo reboot
Tip: After rebooting, use “i2cdetect -y 1” to verify that I²C devices are detected correctly.