Lab Detail


Sno Back Back Subject subject date title note
1 1 Back to subject EDGE COMPUTING LAB - 23A39605 (Lab) Dec. 1, 2025 1. Setup and Configuration of Edge Devices o Raspberry Pi/Jetson Nano installation, SSH, GPIO control

1. Setup and Configuration of Edge Devices 

   Raspberry Pi/Jetson Nano installation, SSH, GPIO control

1. Setup and Configuration of Edge Devices

Raspberry Pi / Jetson Nano Installation, SSH Access, and GPIO Control

A. Operating System Installation

Raspberry Pi

  • Download the Raspberry Pi OS using the Raspberry Pi Imager tool.

  • Flash the OS to an SD card (16GB+ recommended).

  • Enable SSH and configure Wi-Fi during flashing (optional using Imager advanced options).

  • Insert SD card → Power on → Device boots with default credentials.

B. Remote Access (SSH Configuration)

On Raspberry Pi

 

Enable SSH:

sudo systemctl enable ssh 
sudo systemctl start ssh

Connect from your laptop:

ssh pi@<device-ip> 

 

To find device IP:

ifconfig

 

C. GPIO (General Purpose Input/Output) Control

Raspberry Pi (Python – RPi.GPIO or GPIO Zero)

Example using RPi.GPIO:

import RPi.GPIO as GPIO
import time

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

while True:
    GPIO.output(18, True)
    time.sleep(1)
    GPIO.output(18, False)
    time.sleep(1)

 

D. Additional Recommended Setup

  • Setup VNC for GUI remote access.

  • Setup Docker for deploying applications.

  • Create virtual environments for Python projects.

  • Use systemd services to auto-run scripts on boot.

  • Configure I2C, SPI, UART interfaces as needed.

E. Typical Use Cases

  • AI object detection (Jetson Nano + camera).

  • IoT sensor hub (Raspberry Pi + GPIO sensors).

  • Edge inference for ML models.

  • Robotics and industrial automation.

  • Home automation systems.

 

pi@raspberrypi:~ $ pinout

,--------------------------------.
| oooooooooooooooooooo J8   +======
| 1ooooooooooooooooooo  PoE |   Net
|  Wi                    1o +======
|  Fi  Pi Model 4B  V1.4 oo      |
|        ,----. +---+         +====
| |D|    |SoC | |RAM|         |USB3
| |S|    |    | |   |         +====
| |I|    `----' +---+            |
|                   |C|       +====
|                   |S|       |USB2
| pwr   |hd|   |hd| |I||A|    +====
`-| |---|m0|---|m1|----|V|-------'

Revision           : d03114
SoC                : BCM2711
RAM                : 8GB
Storage            : MicroSD
USB ports          : 4 (of which 2 USB3)
Ethernet ports     : 1 (1000Mbps max. speed)
Wi-fi              : True
Bluetooth          : True
Camera ports (CSI) : 1
Display ports (DSI): 1

J8:
   3V3  (1) (2)  5V    
 GPIO2  (3) (4)  5V    
 GPIO3  (5) (6)  GND   
 GPIO4  (7) (8)  GPIO14
   GND  (9) (10) GPIO15
GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND   
GPIO22 (15) (16) GPIO23
   3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND   
 GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8 
   GND (25) (26) GPIO7 
 GPIO0 (27) (28) GPIO1 

Here Check Status Of GPIO Pins 

pi@raspberrypi:~ $ raspi-gpio get
BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT pull=UP
GPIO 1: level=1 fsel=0 func=INPUT pull=UP
GPIO 2: level=1 fsel=0 func=INPUT pull=UP
GPIO 3: level=1 fsel=0 func=INPUT pull=UP
GPIO 4: level=1 fsel=0 func=INPUT pull=UP
GPIO 5: level=1 fsel=0 func=INPUT pull=UP
GPIO 6: level=1 fsel=0 func=INPUT pull=UP
GPIO 7: level=1 fsel=0 func=INPUT pull=UP
GPIO 8: level=1 fsel=0 func=INPUT pull=UP
GPIO 9: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 10: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 11: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 12: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 13: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
GPIO 15: level=1 fsel=0 func=INPUT pull=UP
GPIO 16: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 17: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 18: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 19: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 20: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 21: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 22: level=0 fsel=0 func=INPUT pull=DOWN