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
Hardware
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.5.tar.gz
(4.3 kB
view hashes)
Built Distribution
AgroClient-1.0.5-py3-none-any.whl
(17.5 kB
view hashes)
Close
Hashes for AgroClient-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14773f0bf5746b3551d2b92129bc985c67ba322e34b5fb11ebb847484f3a4767 |
|
MD5 | d2dba4fcd09c345baf98c1cad16ea6a6 |
|
BLAKE2b-256 | a532379a48a5ed1b3d74d25310c38cfbc63271911620ef965f48cb8c89fe4ed2 |