Skip to content
Green Coin

Green Coin

Clean Campus, Earn Rewards

Created on 27th March 2026

•

Green Coin

Green Coin

Clean Campus, Earn Rewards

The problem Green Coin solves

Problem It Solves

Modern campuses generate a significant amount of waste daily, yet there is no effective system to track, incentivize, or reward responsible disposal behavior. Students often lack motivation to segregate or properly dispose of waste because:

  • No immediate benefit or feedback
  • No accountability for individual contribution
  • Existing systems rely on manual effort (QR scans, reporting, etc.)
  • Sustainability efforts feel invisible and unrewarding

How GreenCoin Solves This

GreenCoin transforms waste management into a smart, automated, and rewarding system using IoT and Blockchain.

Key Improvements

1. Eliminates Manual Effort

  • No need for QR scans or manual input

  • Students simply:

    • Tap RFID card
    • Drop waste
  • System automatically:

    • Identifies user
    • Measures weight
    • Logs data

2. Creates Accountability & Transparency

  • Every waste deposit is:

    • Tracked per user
    • Stored in database
  • Enables:

    • Individual contribution tracking
    • Fair measurement of impact

3. Introduces Gamification

  • Converts waste into points and tokens

  • Encourages:

    • Healthy competition
    • Consistent participation
  • Makes sustainability engaging and fun


4. Real Reward System (Token Economy)

  • Points are converted into GreenCoin tokens

  • Tokens can be:

    • Redeemed for food/items
    • Used in campus ecosystem
  • Adds real value to sustainable behavior


5. Secure & Trustless System (Blockchain)

  • Rewards are:

    • Transparent
    • Tamper-proof
  • Ensures:

    • No fake entries
    • Fair distribution

Impact

GreenCoin turns passive sustainability into an active, measurable, and rewarding experience.

Students are no longer just “throwing waste”
They are contributing, earning, and competing


“From Trash to Tokens — making sustainability visible, measurable, and rewarding.”

Challenges we ran into

Challenges I Ran Into

Building GreenCoin involved integrating hardware (IoT), backend systems, and blockchain, which introduced several real-world challenges.


1. Arduino Upload & Hardware Issues

Problem:
While setting up the Arduino Nano, I faced repeated errors like:

  • not in sync
  • unable to open port

Cause:

  • Wrong processor selection (ATmega168 vs ATmega328P)
  • Faulty USB cable / port conflicts

Solution:

  • Identified the correct processor (ATmega168)
  • Reinstalled Arduino IDE and drivers
  • Used proper reset timing during upload

2. Load Cell (HX711) Calibration & Inconsistent Readings

Problem:
The weight readings were inconsistent or not showing correctly.

Cause:

  • Raw values from HX711 without calibration
  • Wiring issues

Solution:

  • Verified wiring connections carefully
  • Switched to read_average() for stable readings
  • Treated raw values for hackathon demo instead of full calibration

3. Arduino → Backend Communication

Problem:
Arduino cannot directly send HTTP requests using Arduino Nano.

Cause:

  • No WiFi module on Arduino Nano

Solution:

  • Built a Serial → Node.js bridge
  • Used serialport in Node.js to read Arduino output
  • Sent data to backend API using Axios

4. Managing Real-Time IoT Logic

Problem:
Continuous RFID scanning caused multiple triggers and duplicate entries.

Cause:

  • No session control logic

Solution:

  • Implemented a state machine system:

    • RFID Scan → Timer → Weight → Send → Reset
  • Added cooldown period to prevent repeated scans


5. Backend Data Consistency

Problem:
Handling cases where:

  • User exists vs does not exist
  • Dustbin capacity overflow

Solution:

  • Added validation logic:

    • Check user by UID
    • Allow waste logging even if user not found
    • Prevent deposits if dustbin is full

6. Blockchain Integration Complexity

Problem:
Understanding how to:

  • Convert points → tokens
  • Send tokens via smart contract

Solution:

  • Simplified logic:

    • 1 Point = 1 Token
  • Used ethers.js to interact with contract

  • Created a backend function to call rewardStudent()


7. Token Transfer vs Approval Confusion

Problem:
Initially confused between:

  • transfer
  • transferFrom
  • approve

Solution:

  • For hackathon simplicity:

    • Used direct transfer approach
    • Avoided complex approval flow

Key Learning

Integrating hardware + backend + blockchain is not just about coding —
it requires debugging real-world systems, handling edge cases, and simplifying complex flows.


Despite multiple challenges, each issue helped improve the system’s reliability and design.
The result is a fully working end-to-end solution combining IoT, backend, and blockchain.


Tracks Applied (1)

GREEN & SUSTAINABLE EARTH

How GreenCoin Fits the Green Sustainability Track GreenCoin directly aligns with the Green Sustainability track by addr...Read More

Discussion

Builders also viewed

See more projects on Devfolio