Simple recipes for Raspberry pi + python examples
Raspberry PI is a cheap computer that runs Linux based OS & allows you to interact with Physical world via GPIO (General Purpose Input & Output pins) using which you can connect Sensors & Accuators. Given its computational ability it can be used for various purposes, including IoT, ML and many more.
Navigate to https://www.raspberrypi.com/software/ and download the Raspberry Pi Imager software for your system, this allows you to select the flavour of raspberrypi OS & pre-configure the wifi, enable remote connectivity using SSH.
- This instruction is written for Raspberry Pi imager V1.8.4_
- Open the Imager Software and select "Raspberry Pi Zero W" Or the device that you own
- Select your SD Card (Make sure to format it using the Erase option from OS Menu)
- Select the OS, Go to "Raspberry Pi OS (Other)" --> Select "Raspberry Pi OS Lite (32-bit)" that has no Desktop Environment.
- Click Next and Click "Edit Settings" and use the below config
- Hostname = raspberrypi
- set username and password
- username = pi
- password = raspberry
- Enable WiFi & provide the Wifi Credentials, Set the Wifi country you are connecting from
- Set Locale Settings and select your TimeZone & select US Keyboard layout
- Go to the Services Tab and Enable SSH & leave Use Password Authenticaion method selected.
- Click Save and Select Yes to apply customization & click Yes again on the prompt.
- Hostname = raspberrypi
- Click Next and enter your system's password if prompted and wait for the OS to burn on SD Card.
- Now you can Eject the SD Card from system and insert it on to Raspberry Pi and boot it up.
- Open the Imager Software and select "Raspberry Pi Zero W" Or the device that you own
Power ON your Raspberry PI and wait for atleast 5 minutes for the initial boot process to complete, your Raspberry PI might reboot 2 times to resize your SD Card
- If you have enabled the SSH & Hostname you can access your RPI with its hostname via Terminal, For Windows OS, download & run PUTTY Click here
- If for some reason if you are not able to access RPI with its hostname, you need to find its IP address. The simplest way to do so, is to scan your network using some Network Scanners like Advanced IP Scanner, Angry IP Scanner. Locate the IP using Hostname "raspberrypi" or MAC Vendor as "Raspberry PI Org"
- Inorder to ensure your RPI gets its updates, run the below commands
- sudo apt-get update
- sudo apt-get upgrade -y