Smart Agriculture Project for Cyber Physical Systems course.
- Arduino Uno Board - Main Microcontroller for sensor integration and processing
- Ultrasonic Sensor - For distance measurements particulary water level of the tank
- PH Sensor - For measuring the PH Level of the soil
- Temperature/Humidity Sensor - For measuring the temperature and humidity of the surrounding
- Ambient Light Sensor - For detecting ambient light of the surrounding
- Solonoid Valve - For controlling the water flow
- GSM Module - For integrating the SIM card and sending messages
- ESP8266 Module - For WiFi connectivity and making RESTful API calls
- Arduino IDE - For developing arduino firmware
- Git Bash - For version control of this project
-
Install Git Bash
-
Once installed, search Git bash in Windows search and run the application
-
Clone the repository to get the project files into your local system by running the following command:
>> git clone https://github.com/Dheeraj22/smart-agriculture.git
-
Navigate to the project directory by running the command:
>> cd smart-agriculture
-
You are now ready to use the project
-
Before you start, always check if there was any recent update from your teamates by pulling the latest code:
>> git pull
If there is any change, it will be pulled into your local system. If not, you should see the message "Already up to date" as shown above.
-
You can add file/folders and absolutely any change you want to this repository. But to not thread or affect other's code, create a folder with your name in this directory. Then add corresponding files into that.
-
Once all the code is tested and you are ready to push the changes for everyone to see, run the following commands:
-
Pull latest changes if any from teammates
>> git pull
-
Run a status check to see what all files and folders you have added/modified:
>> git status
-
Add the new/modified files into staging area (use the dot at the end of the command to include all files/folders automatically):
>> git add .
-
Commit the changes by adding a message with what changes were done.
>> git commit -m "Added sample code"
-
Push the code to the public server for all your teammates to view and access.
>> git push
-
-
Check online by refreshing the page to see if your project changes reflect.