First, install Raspberry Pi OS (Bullseye lite) onto a 16MB microSD card.
If using Raspberry Pi Imager use the configure cog to set SSH ON and set your default user/password.
If flashing the OS manually, you will need to add a couple of configuration files to setup SSH and configure the username / password:
- Insert the microSD card containing the Raspberry Pi OS installation into a Mac or PC.
- Open the 'BOOT' volume in My Computer (Windows), Files (Ubuntu) or Finder (macOS).
- Create a new text file and name it "ssh". On Windows, don't forget to remove the file extension (.txt).
- Alternatively in Linux or macOS cd to the 'BOOT' volume and run
touch ssh
- Add a file named
userconf.txt
containing a single line with username:encrypted-password - for more details seehttps://www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-headless-raspberry-pi
- Unmount the microSD card and insert it into the Raspberry Pi.
- Plug the Raspberry Pi into your router using an Ethernet cable and power it on.
- Allow it time to fully boot up. Once it has booted, open an SSH session on your PC. (You can use cmd on Windows, or a terminal on MacOS or Linux) run
ssh [email protected]
(replaceusername
with your default user andraspberrypi
with your hostname if you changed it).
Once you are in the SSH session update the system and perform a reboot before installing the RadioGlobe software. Fix any issues before proceeding.
- Run
sudo apt update
- Run
sudo apt upgrade
- Run
sudo reboot
Now SSH in again.
For initial tests we recommend connecting to your network with an Ethernet cable. WiFi can be configured once everything is tested.
The install script no longer relies on username pi. It will install the Python scripts into your default users home directory and configure the systemd services according to your chosen username.
From an SSH terminal:
- Run
sudo raspi-config
- In 'Interfacing Options' enable SPI and I2C.
- Install git:
sudo apt install git
- Make sure you are in your home home directory:
cd ~
- Clone the software by running
git clone https://github.com/DesignSparkrs/RadioGlobe.git
- Change into the RadioGlobe dir
cd RadioGlobe
- Run the install script to install dependencies and setup the services
./install.sh
At this point the RadioGlobe should start automatically.
- When starting for the first time the RadioGlobe encoders need to be calibrated. Set the reticule cross-hairs to the intersection of the 0 latitude and 0 longitude lines then press and hold the middle button until the LED flashes Green and the display shows "Calibrated".
The system will retain the calibration for future reboots or you can calibrate it at any time.
Use raspi-config
from an SSH session to configure WiFi once everything is working.
- If you want to use WiFi, go to 'Localisation Options', then 'Enter WLAN Country' where you can select your country. HINT: United Kingdom is GB! Press Esc to return to the main menu then go to 'Network Options' > 'Wireless LAN' and enter your SSID (network name) and WiFi password.