Skip to content
forked from abhijit826/DEM

The Decentralized Energy Market (DEM) enables secure P2P energy trading using smart contracts, federated learning, and edge computing. It creates a transparent, scalable, and efficient marketplace for renewable energy integration.

Notifications You must be signed in to change notification settings

Amitreddy14/DEM

 
 

Repository files navigation

⚡ Decentralized Energy Market (DEM)

🚀 Overview

The Decentralized Energy Market (DEM) leverages smart contracts, federated learning, and edge computing to enable secure, peer-to-peer (P2P) energy trading. This system provides a transparent, scalable, and efficient marketplace for renewable energy integration, empowering prosumers, industries, and microgrid operators.

🎯 Key Features

  • 🔄 Multi-Agent Reinforcement Learning (MARL) – Optimizes energy trading dynamically.
  • 📊 Federated Learning – Privacy-preserving demand forecasting without data sharing.
  • 🔋 Vehicle-to-Grid (V2G) Integration – Allows EVs to sell excess power to the grid.
  • 🌱 AI-powered Carbon Tracking – Tracks energy consumption and rewards green behavior.

🏗️ Tech Stack

Software

  • Frontend: Next.js, Tailwind CSS, Zustand
  • Backend: Node.js, FastAPI
  • Database: PostgreSQL, MongoDB, IPFS
  • AI/ML: TensorFlow, Scikit-learn, Apache Kafka
  • Blockchain: Hyperledger Fabric, Solidity, Web3.js

Hardware

  • Edge Devices & Sensors: Raspberry Pi, ACS712, PZEM-004T
  • Data Transmission: ESP8266
  • IoT Integration: MQTT, Firebase
  • Cloud Server: Local PC for blockchain nodes and AI model

🎯 Target Users

  • 🏡 Residential Prosumers – Sell excess solar energy with instant payments & fair pricing.
  • 🏭 Commercial & Industrial Consumers – Buy cheaper renewable energy directly.
  • ⚡ Microgrid Operators – Enable seamless P2P energy trading for remote areas.

📦 Deployment Strategy

  • 🔌 Plug-and-play IoT API – Easily integrates with energy systems.
  • ⚡ Scalable Architecture – Supports micro to national grids with real-time edge computing.
  • 🌍 Open-source & Modular – Designed for global adoption and mobile-friendliness.

🔧 Installation & Setup

  1. Clone the repository
    git clone https://github.com/your-username/DEM.git
    cd DEM
  2. Install dependencies
    npm install  # For frontend
    pip install -r requirements.txt  # For backend
  3. Run the Blockchain Network
    cd blockchain
    ./start-network.sh  # Start Hyperledger Fabric
  4. Start the Backend
    cd backend
    uvicorn main:app --reload
  5. Run the Frontend
    cd frontend
    npm run dev

🤝 Contributing

We welcome contributions! Feel free to open issues and submit pull requests.

📞 Contact

For any queries, reach out via jsammureddy140804@gmail.com or create an issue in the repo.

🚀 Join us in revolutionizing energy markets with decentralization!

image

FOR RUNNING BLOCKAIN USE npx hardhat node AND THEN DO SEPERATE TERMINAL WORK

IN SEDCOND TERMIANL DO npx hardhat run scripts/deploy.js --network localhost

npx hardhat run scripts/interact.js --network localhost // for running script file

About

The Decentralized Energy Market (DEM) enables secure P2P energy trading using smart contracts, federated learning, and edge computing. It creates a transparent, scalable, and efficient marketplace for renewable energy integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.3%
  • Solidity 32.7%