- Flashing the RPI OS in RPI-4
- SSH into RPI
user: raspberry password: pi
- Cloning the github repository
git clone url_of_repository
- Creating the virtual environment
python3 -m venv venv
- Activating the virtual environment
source /home/raspberry/venv/bin/activate
- Move into deployment folder
cd /home/raspberry/smart_bin/img_processing/deployment/
- Install the requirements
pip install -r requirements.txt
- Run the Main Script
python3 main_script.py
#!/bin/bash
# Bash Script to run the main script
which python3
cd /home/hexfuse/smart_bin/img_processing/deployment
pwd
activate() {
. /home/hexfuse/venv/bin/activate
}
activate
which python3
python3 main_script.py
- VCC pin -- 5V on the Raspberry Pi.
- GND pin -- GND on the Raspberry Pi.
- SDA pin -- SDA pin on the Raspberry Pi (GPIO2).
- SCL pin -- SCL pin on the Raspberry Pi (GPIO3).
- VCC pin -- 5V on the RPI.
- GND pin -- GND on the RPI.
- OUT pin -- GPIO-26
- Flashlight -- GPIO-17
- VCC pin -- 5V on the Raspberry Pi.
- GND pin -- GND on the Raspberry Pi.
- TRIG_PIN = GPIO-23
- ECHO_PIN = GPIO-24 [5v => 3.3v] need to stepped down.
- VCC pin -- 5V on the Raspberry Pi.
- GND pin -- GND on the Raspberry Pi.
- TRIG_PIN = GPIO-25
- ECHO_PIN = GPIO-8 [5v => 3.3v] need to stepped down.