← Crafts
Barter preview

Barter

Sustainability pilot Full-stack engineer

Reverse vending machine trading recyclables for Wi-Fi access — coin pulses from the acceptor unlock timed connectivity credits.

Problem

Campus sustainability programs struggle to tie recycling behavior to an immediate reward students actually use. Barter couples a physical reverse-vending acceptor with a Wi-Fi credit ledger so each validated deposit extends network access.

What it covers

  • Arduino coin-pulse simulator and production acceptor interfaces
  • FastAPI admin stack for session accounting and hardware simulation
  • Recyclable deposit events mapped to Wi-Fi time grants
  • PWA-facing flows for students checking remaining credits
coin accepted debounce weight OK anomaly ledger update Idle Pulses Validate Credit Reject WiFiGrant
Deposit to Wi-Fi credit
void sendCoinPulses(int pulses) {
  for (int i = 0; i < pulses; i++) {
    digitalWrite(COIN_SIGNAL_PIN, HIGH);
    delay(60);
    digitalWrite(COIN_SIGNAL_PIN, LOW);
    delay(60);
  }
  Serial.print(F("Sent "));
  Serial.print(pulses);
  Serial.println(F(" pulses"));
}
Barter reverse vending placeholder
Photo placeholder — swap for the acceptor unit and student Wi-Fi portal.