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 -
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
Most Probably the Value will bels /dev/tty*
/dev/ttyUSB0
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.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
AgroClient-1.0.2-py3-none-any.whl
(17.2 kB
view hashes)
Close
Hashes for AgroClient-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b3f29b9d9cde4364a45fdf464c00e992e6ce4c0f985a4a87b3114e8ecd0f2a |
|
MD5 | e346270f83cd61bbcd3075531b0fe925 |
|
BLAKE2b-256 | a930bc5129b5dd1a82743b672a56352ff6c6f5a23d2c8604ac04977fff3b6326 |