- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
Introduction
Set up a Raspberry Pi-powered automated pet feeder that runs a Python script to control a servo motor — scheduled to feed your cat daily.
? Table of Contents (Day-27)
1. Flashing Raspberry Pi OS to SD Card
Tool Used: Raspberry Pi Imager
Card Size: 32GB microSD
Status :
OS flashed and verified
2. Enabling SSH Access
Inserted SD card into MacBook → Mounted as:
Created the SSH file in boot partition:
SSH enabled successfully for headless access.
3. (Optional) Configure Wi-Fi for Headless Boot
Created wpa_supplicant.conf inside the boot partition (optional if using Ethernet):
? Replaced with real credentials, saved and ejected the SD card.
4. Booting the Raspberry Pi
Expected: Pi should connect to local network (via Wi-Fi or Ethernet)
5. Detecting Raspberry Pi on Local Network
Ran a network scan and see the ?️ Output (Filtered):
6. Attempting SSH Access
Tried to connect But
Error:
7. Verifying SSH Setup Again
Still, SSH failed. Possibly:
But
Error:
? 9.Diagnosis:
? Coming Up: Day-28
#DevOps #Linux #RHCSA #Opensource #AWS #CloudComputing
Catch out by My LinkedIn profile
? ObjectiveIn today’s guide (Day-27), we’ll walk through the complete process of setting up your own IoT-based pet feeder using a Raspberry Pi. Our goal is to automate the feeding process using a servo motor, Python, and scheduled cron jobs.
Set up a Raspberry Pi-powered automated pet feeder that runs a Python script to control a servo motor — scheduled to feed your cat daily.
? Table of Contents (Day-27)
- ? Flashing Raspberry Pi OS to SD Card
- ? Enabling SSH Access
- ? (Optional) Configure Wi-Fi for Headless Boot
- ? Booting the Raspberry Pi
- ? Detecting Raspberry Pi on Local Network
- ? Attempting SSH Access
- ? Verifying SSH Setup Again
- ?️ Tried Accessing via Hostname
- ? Diagnosis
Final Status (Day-27 Recap)
1. Flashing Raspberry Pi OS to SD Card
- Download Raspberry Pi OS (Lite) from the official website.
- Use Raspberry Pi Imager or Balena Etcher to flash it to a microSD card (32GB in our case).
Tool Used: Raspberry Pi Imager
Card Size: 32GB microSD
Status :
2. Enabling SSH Access
Inserted SD card into MacBook → Mounted as:
Created the SSH file in boot partition:
3. (Optional) Configure Wi-Fi for Headless Boot
Created wpa_supplicant.conf inside the boot partition (optional if using Ethernet):
? Replaced with real credentials, saved and ejected the SD card.
4. Booting the Raspberry Pi
- Inserted the SD card into Raspberry Pi
- Powered on via USB-C
- Waited ~2 minutes for the OS to boot
5. Detecting Raspberry Pi on Local Network
Ran a network scan and see the ?️ Output (Filtered):
6. Attempting SSH Access
Tried to connect But
7. Verifying SSH Setup Again
- Reinserted SD card into Mac
- Confirmed ssh file still exists in /Volumes/bootfs
- Reinserted back into Pi and rebooted
Still, SSH failed. Possibly:
- SSH service didn’t start properly
- Raspberry Pi didn’t boot fully
- Network issue
But
? 9.Diagnosis:
- .local resolution via mDNS might be missing on Mac
- Or Raspberry Pi never fully booted
| Task | Status |
|---|---|
| SD Card flashed | |
| SSH file added | |
| Wi-Fi config (optional) | |
| Booted Pi | |
| Detected IP via nmap | |
| SSH connection established | |
| Hostname access (.local) | |
| Next: Servo wiring + script | ? Pending |
#30DaysLinuxChallenge #CloudWhislerIn the next post, we’ll troubleshoot Raspberry Pi SSH issues step-by-step, verify if the OS is booting correctly, and check if the SSH service is running. Once resolved, we’ll test the Python servo script and complete our cat feeder automation.
#DevOps #Linux #RHCSA #Opensource #AWS #CloudComputing
Catch out by My LinkedIn profile