- Prepare the necessary hardware:
- Raspberry Pi Zero W
- microSD card (at least 8GB, 16GB or more recommended)
- micro USB power adapter
- Download the necessary software:
- Raspberry Pi Imager: https://www.raspberrypi.org/software/
- Prepare the SD card:
- Download the latest version of Raspberry Pi Lite OS for the Raspberry Pi Zero W. Make sure to select the 32-bit version. Choose the Lite version from Raspberry Pi OS (other).
- After selecting your storage, click "Next" and then
EDIT SETTINGS. You'll need to fill in the following settings:- Username/Password
- WiFi credentials
- Timezone
- (Optional) You can set a hostname. You should be able to access your device via SSH using the hostname, depending on your local network configuration.
- Switch to the "Services" tab and enable SSH.
- Write the image to the SD card.
-
Insert the SD card into your Raspberry Pi and wait for it to connect to the WiFi.
-
Find the IP address of your Raspberry Pi on your router or remember the hostname.
-
Use your preferred tool to access SSH (e.g., PuTTY on Windows or SSH in the terminal).
-
Connect to your Raspberry Pi via SSH.
-
Set up the project:
sudo apt update sudo apt install git libopenjp2-7 python3 python3-pip git clone https://github.com/johniak/word-clock.git cd word-clock/raspberry-pi/ sudo pip3 install --break-system-packages -r requirements.txt -
Connect your Word Clock following the device build instructions.
-
To check if everything is working, run the following command (for testing purposes only):
sudo python3 src/wordclock/main.py --pin D12 --brightness 0.5 --gif ./heart_art_small.gif
-
To install it as a service (so it starts automatically on device startup), run the following command:
./install.sh