Warning:
It is not recommended to use the RPi Zero 2 for the Lightning ATM. However, if you already have one, you can use this guide to get it working.
The Raspberry Pi Zero 2 is not supported in the Raspberry "Stretch" version. The tried and tested "2019-04-08-raspbian-stretch-lightningatm.gz" image does not run on the Zero 2. Accordingly, a new image must be created that supports the Zero 2. The current Bullseye version (32-bit) does this. This image can be used for this, but still needs to be modified so that it can be used for the Lightning ATM.
Unfortunately, the new version does not support all components directly. The Waveshare displays are direct compatible and for the PaPiRus displays you have to install the library.
This guide to creating a compatible version is only a guide. Deviations are possible and maybe even necessary. For the best result, however, it is recommended to stick to the procedure. Otherwise, troubleshooting support will be difficult. Since this is an experimental setting, any guarantee or warranty is excluded.
- Creation of the raw image
- Write the raw image with SSH and Wifi data
- First start and first settings
- Option: Install PaPiRus display library
- Carry out updates and installations
- Install and test the display
- Create and edit the config.ini
- Postprocessing
Find the appropriate Raspberry Pi OS (32-bit) image from the raspberrypi.org Archive and download it. You can use a newer version, but the "2022-01-28-raspios-bullseye-armhf.zip" version was tested for this tutorial. Unpack the file and write the image with balenaEtcher. When done, remove the microSD.
- Create an empty file named "SSH" in preparation. Make sure that the file has no file extension such as ".txt". It is just called SSH and will later activate the SSH connection on the Raspberry Pi.
- Create a "wpa_supplicant.conf" file as described in chapter sd card and wifi. This gives the Raspberry Pi the necessary information about your Wifi.
- Put the newly written microSD back into the computer slot and copy both files into the "boot" directory.
- Remove the microSD. It is now ready for the Raspberry Pi Zero.
After starting the Zero 2 and waiting a few minutes. Then you can log in as described in the sd card and wifi chapter.
-
Change the password and remember it!
$ passwd
-
Activate the SPI interface for the display.
$ sudo raspi-config
- Exit with "Finish".
If you use a PaPiRus Display, you have to install the PaPiRus display library. If you have a Waveshare or other, you can cancel this step.
$ curl -sSL https://pisupp.ly/papiruscode | sudo bash
Set it to Python 3
Choose your display size
It's the same like described in chapter sdcard_and_wifi. Run the following commands one by one.
$ sudo apt update && sudo apt upgrade
$ git clone https://github.com/21isenough/LightningATM.git
$ cd ~/LightningATM/
$ pip3 install -r requirements.txt
Note: When updating, you sometimes have to confirm with y
.
As described in the display chapter.
Start the app.py once.
The program is immediately aborted with "Exiting..." because the wrong display is still stored in the basic setting. But the config.ini was created in the background and you can open and edit it as described in chapter edit config.ini.
Everything else is as usual and listed in the README.
Look at: