A Client module for Agrothon
Project description
Installation
-
First Install the dependencies
sudo apt-get update sudo apt-get install python3-opencv python3-rpi.gpio
-
from Pypi
pip3 install AgroClient
-
From git
pip3 install git+https://github.com/viswanathbalusu/Agrothon-Client
Usage
usage: AgroClient [-h] [-y HOSTNAME] [-a APIKEY] [-u USB]
optional arguments:
-h, --help show this help message and exit
-y, --hostname HOSTNAME API Server host name
-a, --apikey APIKEY API Key of host
-u, --usb USB USB Port of Arduino
Circuit Diagram
Pin Configuration
-
Raspberry Pi
GPIO Device Use Mode 12
Relay To Switch on/off Relay OUT 25
PIR1 Motion Detection IN 8
PIR2 Motion Detection IN 7
PIR3 Motion Detection IN 1
PIR3 Motion Detection IN -
Arduino nano
Pin Device Device pin Mode A0
Moisture Sensor* Analog Out IN D12
DHT11 Signal IN * For multiple sensors use differnet Analog pins
-
Connect the Pi camera accordingly
-
Use SSH to access the terminal and run the Python Code
-
Connect all the
Vdd's
andGND's
Accordingly
Note
-
To get the USB Device ID, Use
ls /dev/tty*
Most Probably the Value will be
/dev/ttyUSB0
-
Sensor data should be sent in the following pattern
mositure1,moisture2,moisture3, .... ,moistureN, Temperature,Humidity
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
AgroClient-1.0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
AgroClient-1.0.4-py3-none-any.whl
(17.4 kB
view hashes)
Close
Hashes for AgroClient-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb7f724fdff5f5ea74e13a3d7c2c7cc3128bad485ffd0e4641794a6f5c061686 |
|
MD5 | 54a40dc3c27f545b051a56f2cb16ac5e |
|
BLAKE2b-256 | 1cde0af08cd632b3041b0397931286076d9511d11be5ae156e8f6133f00504dc |