-
Download the Raspberry Pi Imager (i used Etcher first but this one makes the process much easier and faster)
-
Download the Raspberry Pi OS (make sure to download the Raspberry Pi OS (64-bit) Lite ) this is a very important step, since at the time i did this, i only had raspberries B with very little memory, which is the main reason i suspect many installation attempts failed.
-
Connect your SD card to your computer and start te imager.
-
on the imager, select "operating system" ==> "custom" ==> (the image from step 2)
-
select the sd card for storage
-
BEFORE WRITING click on the settings and configure everything (this saves a lot of time)
-
Now you can flash😄
-
Turn the Raspberry pi on, since we used the lite version, it does not come with any sotware or graphics, so don't bother on connecting a monitor or keyboard. Because we already activated the ssh on step 4. we can do everything from our host computer.
-
open a terminal and run: ssh gary@TMRPI.local and that's it! 🥳
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
sudo apt install python3-pip
pip install --upgrade pip setuptools wheel
sudo shutdown -r now
pip install opencv-python-headless
sudo apt install -y python3-picamera2
test it with:
libcamera-hello
you should see a camera preview for about 5 seconds.(to see if it is connected and working)
pip install Pillow
this library is necesary for resizing the photos
pip3 install cyberpi
Clone this repository in the raspberry pi using:
git clone https://github.com/gary-vladimir/2023_T003
if you don't have git on your raspberry pi you can add it with: sudo apt-get install git
if you already had the Repo make sure it's updated with git pull origin main
Make sure you have python 3 installed and run:
python program.py
scp gary@TMRPI.local:/home/gary/2023_T003/test.jpg ./Downloads/