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.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
AgroClient-1.0.3-py3-none-any.whl
(17.4 kB
view hashes)
Close
Hashes for AgroClient-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83e1d81c0c631f36cecd2b7e833455ae07d5cd66b24fa542373764a440773fe8 |
|
MD5 | 5a4765eb8d0446f61e198a7c9c6c2a24 |
|
BLAKE2b-256 | 51f7df2b4b32f9c6d06fef356dd1f44baf4fc3df3e5ff20908d8d5e18e52c8cb |