A Python package for Raspberry Pi
Project description
UVedor Hat
Software for the UVedora hat.
Getting started
to install the project consult the installation guide
Installation
Raspberry Pi
The python program can only be installed on the raspberry pi
Before you install the program please install the dependencies required for the program to run. these are described below
Installing uvraspy using pip
You can install uvraspy using pip by running the following command:
pip install uvedora
uvraspy is now installed on your raspberry pi and you can start the program by running the following command:
uvraspy
Installing uvraspy from source
You can also install uvraspy from source by running the following commands:
# Make sure you are in the desired directory
git init
git remote add -f origin https://gitlab.utwente.nl/computer-systems-project/2022-2023/student-projects/cs22-25/cs-22-25-assignments.git
git config core.sparseCheckout true
echo "RasPy/*" >> .git/info/sparse-checkout
git pull origin main
To run the program you can run the following command:
cd RasPy/
python3 -m uvraspy.main
Dependencies
You need to install the following dependencies before you can install the program:
sudo apt-get update
sudo apt install bluetooth bluez libbluetooth-dev libudev-dev
When installing from source you also need to install the python dependencies, these can be installed by running the following command:
pip install -r RasPy/requirements.txt
Sensors
Humidity-Temperature sensor (KY-015 DHT11)
(front-facing, connections downwards)
- connect left connection to GPIO 23 (pin 16)
- connect middle connection to 3V3 power (pin 1)
- connect right connection to Ground (pin 6)
Pressure sensor (BMP280)
- connect GND to Ground (pin 6)
- do not connect VCC
- connect SCL to GPIO 3 (SCL) (pin 5)
- connect SDA to GPIO 2 (SDA) (pin 3)
- do not connect CSB
- connect SDO to 3V3 power (pin 1)
UV Sensor (LTR390 ALS+UV Sensor)
- connect VIN to 3V3 power (pin 1)
- do not connect 3V0
- connect GND to Ground (pin 6)
- connect SCL to GPIO 3 (SCL) (pin 5)
- connect SDA to GPIO 2 (SDA) (pin 3)
- do not connect INT
Android
The android app can be installed on any android device running android 6.0 or higher.
Installing the app
You can install the app by downloading the apk file from the releases page and installing it on your android device
Building the app from source (only for developers)
To build the app from source you need to install the following tools:
- Android Studio (recommended)
- Android SDK (v33)
- Android build tools
- Android SDK Platform-Tools
- Android SDK Command-line Tools
- Flutter SDK
After installing the tools you can clone the repository and open the MobileApplication project in the terminal or in Android Studio
To build the app you can run the following command:
flutter build apk --release
The apk file can be found in build/app/outputs/flutter-apk/app-release.apk
Usage
Raspberry Pi
to run the program on the raspberry pi enter the following command:
uvraspy
Android
to run the program on android install the app from the releases page and run the app
when your hat is running you can connect to it using the app
Support and contact
if you have any questions or problems you can contact us by email or by creating an issue
Authors and acknowledgment
developed by:
special thanks to:
Contributing
if you want to contribute to the project you can create a merge request
make sure to read the contribution guidelines before you start contributing
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file uvraspy-1.0.5.tar.gz
.
File metadata
- Download URL: uvraspy-1.0.5.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df58649c740692a02caa8eb42a9b4bf3d67b18c3bdcfc6ebb90029859553bd4e |
|
MD5 | 5e624c137e753926eaa0adc6688b7b75 |
|
BLAKE2b-256 | b2e5edfa6963ce3b5ceb7be0087f4e5139877b245e321bf7a7e6394d12ca371f |
File details
Details for the file uvraspy-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: uvraspy-1.0.5-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e6db4c778e342fc7d1ea2bcfeb3fedb10e49ca783762c2472dfefcd8828797 |
|
MD5 | a7abcf6dabe61c404982ee6b2c6fea61 |
|
BLAKE2b-256 | 9c5a3daf1960e6cedcf1b5e7a2deff5eb7b7dd0a0ebaf67fb2e0c47a68cabc24 |