🌱 AzureFarming: Virtual Smart Farm

Inspiration

Smart farming today falls into two extremes:

  • 🏠 Home IoT kits – costly and impractical for casual users
  • 🌾 Industrial farms – built for large-scale professionals

AzureFarming makes real farming accessible by combining IoT, AI, and gamification into a platform for everyone.


What It Does

AzureFarming is a virtual farming platform that allows users to remotely manage real crops in a rental smart farm unit.

Key Features

  • 📡 Monitor plants in real time via IoT sensors
  • 🎭 Animated plant avatars show status and emotions
  • 📋 Receive personalized tips from an AI care guide
  • 🛠️ Remotely control watering, fertilization, and lighting
  • 🎖️ Complete tasks to earn points and unlock rewards
  • 🚚 Choose harvest delivery or on-site pickup (not implemented)

Tech Stack

Component Technology
Frontend React, Tailwind CSS, DaisyUI
Backend Node.js, Azure Functions
IoT Connectivity ESP32 + MicroPython, MQTT, Azure IoT Hub
Cloud & Storage Azure CosmosDB, Device Twin, Terraform
Simulation Wokwi (virtual circuit simulator), Proteus 8 (PCB Validation)

Challenges

  • ⚙️ Hardware bottlenecks due to remote collaboration and limited access
  • 🔄 Slow iterations with C++, improved by switching to MicroPython
  • ☁️ Adapting to Azure IoT services — implemented IoT Hub, Event Hub, and Functions
  • 📦 Balancing between 3D prototype design and real circuit building.
  • ⏳ Time limits led to virtual testing over physical deployment

Accomplishments

  • 🔗 Built a complete IoT-to-Cloud pipeline with MQTT and Azure IoT Hub
  • ⚙️ Deployed serverless APIs on Azure Functions for IoT backend API.
  • 🚀 Developed modular MicroPython firmware for ESP32
  • 🌐 Created a React-based frontend app for IoT integration
  • ☁️ Connected server logic to Azure IoT services for real-time device updates
  • 🔧 Provisioned and deployed Node.js backend using Terraform on Azure
  • 🧪 Simulated and validated devices using Wokwi virtual circuits
  • 🎨 Designed an interactive plant care system with gamified UI/UX

What We Learned

  • MicroPython enables fast, flexible IoT development
  • Azure's IoT architecture is powerful for real-time cloud integration
  • Virtual simulation tools were key for remote hardware projects
  • Learned to align gamification with user experience and service strategy

What's Next

  • 🤖 Add AI-powered automation for plant care with Camera support.
  • 🌱 Expand avatar expressions and growth animations
  • 🧩 Build admin tools for crop species tracking
  • 📦 Finalize real-world hardware enclosure designs
  • ⏰ Sync farming tasks with user calendars
  • 🔗 Connect full backend API to live device control

✔️ How GitHub Copilot is Used in This Project

GitHub Copilot in VSCode significantly accelerated frontend development by:

  • Generating responsive React templates.
  • Standardizing API structures and handlers.
  • Optimizing layouts based on design references.
  • Building reusable, parameterized UI components.

It enhanced multi-file context awareness, enabled precise targeted edits, and reduced development time while maintaining UI consistency.

(Related Image: Copilot-assisted code generation process and component standardization examples are attached.)


✔️ How Azure AI is Used in This Project

A custom machine-learning based AI model predicts optimal light levels based on healthy-condition sensor data.

  • The model will be deployed to Azure AI Studio and integrated with the IoT Function App through a Private API Gateway.
  • IoT devices (ESP32) already automate Ring-LED lighting based on server-assigned C2D MQTT messages.
  • Full AI API deployment and Azure integration are in progress as of April 4.
  • OpenAI-based chatbot features are actively considered for future expansion.

(Related Image: Azure AI Studio-based deployment plan, IoT-AI integration flow are attached.)

✔️ Azure Service Architecture

Component Purpose
Azure IoT Hub MQTT communication hub for D2C/C2D messaging with IoT devices.
Azure Function App Processes IoT data and (planned) calls the AI model through a private gateway.
Azure Cosmos DB Stores real-time sensor data and historical environment records.
Azure AI Studio (Planned) Hosts and serves the predictive model for light control.
Azure App Service Provides public APIs for frontend communication (React/Vite).
Private API Gateway (Planned) Secures internal communication between Function Apps and AI services.

Note: All Azure resources are managed and provisioned through Terraform scripts.


📄 Additional Reference Documents


🎥 IoT Virtual Simulation Demos

Built With

Share this project:

Updates