Skip to content

cms66/rpi-iot

Repository files navigation

The rpi-iot project

The aim of this project is to provide a set of scripts and supporting files to help with initial setup and security of a Raspberry Pi (using the latest Raspbian image, with a focus on the lite version). After initial setup there is a menu based system for extending capabilities including additional hardware (GPIO hats, camera etc.), image processing and for users with multiple RPi's, network file sharing and setup of a cluster of RPi's for parallel processing (targeted at home/school use for IoT and AI projects).

More detailed instructions and information about the project are available here.

Quick instructions

These instructions assume:

  • OS version is bookworm
  • Following a naming convention of pinodeX (X = integer, unique for each RPi node in a cluster).
  • Windows computer used for preparation and connection to RPi.
  • Headless build (i.e no monitor/keyboard connected) so setup via ssh.

Prepare SD card

  • Use Raspberry Pi Imager
  • Download/extract this Repo
  • Copy folder "rpi-iot-master" to SD card drive labelled "bootfs"
  • (optional) right click on SD card drive labelled "bootfs" and rename to hostname (e.g.pinodeX)

First boot

  • Connect required hardware + boot (wait for power only LED)
    • USB devices (e.g. robotic Arm) should be powered off during boot
  • Scan network for new RPi with a network scanner
    • From Windows Command prompt run the following command before and after RPi is powered up, then compare results in arp.txt file (saved to Desktop) to get IP and MAC address (= Physical Address).
      arp -a >> %USERPROFILE%\Desktop\arp.txt
    If you want a GUI:
  • Login via ssh as the user created during imaging and run initial setup
sudo sh /boot/firmware/rpi-iot-master/rpi_setup_base.sh
  • Select option to apply changes
    • Poweroff (recommended for multiple RPi scenario) to setup a static/reserved IP address on router (using MAC address noted earlier) or
    • Reboot (simple setup for a single RPi)

Main setup

  • Login via ssh (created user/password) and run setup menu (an alias has been created so no need to sudo run)
mysetup
  • Run System setup (once) to update system + install system/development tools
  • Run Hardware setup and use sub menu to setup connected devices (multiple devices can be configured, but reboot will be needed to apply changes)
  • Run NFS setup to configure server or client (required for OpenMPI)

Testing

  • Hardware can be tested in various languages using the test menu
mytest
  • Not all device/language combinations will be available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages