PupProof is a next-gen smart dog feeder that fuses IoT, AI, and Blockchain to ensure fair feeding, transparent proof storage, and gamified rewards.
- Arduino + Servo Motor vending prototype
- Azure Computer Vision → Puppy vs. Adult detection
- MongoDB → Prevents duplicate feeding within timeframe
- IPFS (Pinata) → Tamper-proof refill proofs
- MetaMask login → Wallet-based identity
- PupCoins → Reward system tokens
- Arduino Nano + Servo Motor for food dispensing
- Azure CV validates uploaded dog images
- MongoDB prevents repeated feeding attempts
- Logs every request with userId, timestamp, machineId
- IPFS + Pinata → Immutable refill proofs
- MetaMask → Decentralized login & wallet mapping
- PupCoins → Gamified rewards → tokens
- PupCoins credited for verified refills
- User dashboard shows activity & rewards
- Admin verifies proofs before rewarding
-
🐕 Dog Approaches System
- Current: User uploads a noseprint image
- Future: Sensors/camera will capture noseprint automatically
-
🤖 Dog Identification
- Azure CV classifies →
- Puppy → 3 sec feed / 3 hr cooldown
- Adult → 5 sec feed / 5 hr cooldown
- MongoDB checks last feed record → If dog already fed, cooldown time is shown
- Azure CV classifies →
-
⚙️ Feeding via IoT
- If eligible → Node.js communicates with Arduino (serial port)
- Servo motor dispenses food for required duration
-
🔒 Proof Generation
- Captured noseprint → Uploaded to IPFS via Pinata
- CID stored in MongoDB → Immutable & tamper-proof record
-
🌍 Community Refill Action
- Users nearby can refill the food machine
- Upload before/after images → Stored on IPFS
- CID logged in database
-
🛡️ Admin Verification
- Admin reviews refill proofs
- ✅ If valid → Approves refill & rewards user
- ❌ If invalid → Penalty applied (-0.5 PupCoins)
-
🎮 Rewards (Blockchain Simulation)
- Users log in via MetaMask wallet
- PupCoins (simulated tokens) credited to balance
- Real-time balance & activity visible on user dashboard
- Frontend: HTML, CSS, EJS, JavaScript
- Backend: Node.js, Express.js
- Database: MongoDB
- AI: Azure Computer Vision API
- IoT: Arduino Nano, Servo Motor, LED
- Blockchain: IPFS (Pinata), MetaMask with simulated tokens
# Clone the repo
git clone https://github.com/yourusername/pupproof.git
cd pupproofnpm install
node server.js

