This project provides C++ code for integrating various environmental sensors, such as ultrasonic, pH, and soil moisture sensors, to monitor conditions in applications like fish ponds and agricultural soil. The data collected from these sensors is sent to the Blynk platform, enabling remote monitoring and control through a cloud-based service.
- Features
- Hardware Requirements
- Software Requirements
- Installation
- Wiring Diagram
- Configuration
- Usage
- Troubleshooting
- Contributing
- License
- Contact
- Real-time monitoring of environmental parameters such as pH, soil moisture, and water levels.
- Integration with the Blynk platform for remote monitoring and control.
- Easy-to-use C++ code for sensor communication and data transmission.
- Applicable to smart agriculture, fish pond management, and other environmental monitoring projects.
- Microcontroller (ESP8266 or ESP32)
- Ultrasonic Sensor
- pH Sensor
- Soil Moisture Sensor
- Jumper Wires
- Breadboard (optional)
- Power Supply
- Arduino IDE
- Blynk Library - can be downloaded directly from the arduino IDE.
- Hardware Libraries - library for the microcontrollers. Also availabel in arduino IDE.
-
Clone this repository:
git clone https://github.com/jvc-byte/smartFarm.git cd smartFarm
-
Install Arduino IDE: Download and install the Arduino IDE.
-
Install required libraries: Open the Arduino IDE and install the following libraries via the Library Manager:
- Blynk
- Esp8266 0r Esp32
-
Open the project in Arduino IDE depending on your application.
Contact this email for detailed explanation on any connection.
-
Blynk Setup:
- Sign up for a Blynk account at Blynk.
- Create a new project in the Blynk app.
- Note down the Blynk Authentication Token provided.
-
Edit the code:
- Open the
.ino
file corresponding to your project. - Replace
YourAuthToken
with your Blynk Authentication Token. - Update the Wi-Fi credentials:
char ssid[] = "YourNetworkName"; char pass[] = "YourPassword";
- Open the
-
Upload the code:
- Connect your microcontroller to your computer.
- Upload the code to your microcontroller via the Arduino IDE.
- Power on your microcontroller: Ensure all sensors are correctly connected and powered.
- Open the Blynk app: Monitor real-time data from the sensors on your mobile device.
- Automate actions: Use the Blynk app to set up automation based on sensor data (e.g., trigger alarms, control actuators).
- No data in Blynk app: Double-check your Wi-Fi credentials and Blynk Authentication Token.
- Sensor readings are incorrect: Verify the sensor connections and calibrate if necessary.
- Compilation errors: Ensure all required libraries are installed in the Arduino IDE.
Feel free to submit issues or pull requests to improve this project. Contributions are always welcome!
This project is licensed under the MIT License. See the LICENSE file for details.