A smart waste management solution that combines hardware automation with real-time monitoring capabilities. The system features an automated lid, fill-level monitoring, and a web-based dashboard for remote management.
Smart-Bin-comp.mp4
- Automated Lid Control: Touchless operation using ultrasonic sensors
- Real-time Monitoring: Track fill levels and bin status
- Web Dashboard: Built with React + Vite for real-time visualization
- Firebase Integration: Real-time data synchronization
- Component Status Tracking: Monitor the health of sensors and servo
- Configurable Settings: Adjustable bin height and status controls
- Arduino (with WiFi capability)
- Ultrasonic Sensors (HC-SR04)
- Servo Motor
- Power Supply Unit
- Frontend: React + Vite
- Backend: Firebase Realtime Database
- IoT: Arduino IDE
- Libraries:
- Firebase Arduino Library
- ArduinoJson
- Servo Library
- Connect the components according to the following pin configuration:
- Bin Lid Sensor: Trigger Pin 8, Echo Pin 12
- Bin Store Sensor: Trigger Pin 4, Echo Pin 7
- Servo Motor: Pin 9
- Install required libraries through Arduino IDE:
- Firebase Arduino Library - ArduinoJson - Servo
- Create a
secrets.h
file with your credentials:#define WIFI_SSID "your-wifi-ssid" #define WIFI_PASSWORD "your-wifi-password" #define REFERENCE_URL "your-firebase-url"
- Upload the code to your Arduino board
- Clone the repository
git clone [your-repository-url]
- Install dependencies
cd smart-bin-dashboard npm install
- Configure Firebase
- Create a
.env
file with your Firebase configuration
VITE_FIREBASE_API_KEY=your-api-key VITE_FIREBASE_AUTH_DOMAIN=your-auth-domain VITE_FIREBASE_DATABASE_URL=your-database-url VITE_FIREBASE_PROJECT_ID=your-project-id
- Create a
- Start the development server
npm run dev
- Detects hand movement within 5cm range
- Opens lid automatically for 4 seconds
- Updates status in real-time on dashboard
- Continuous monitoring of waste level
- Percentage-based fill indication
- Alert system for when bin is nearly full (95% threshold)
- Real-time status of sensors and servo
- Automatic failure detection
- Fault reporting through dashboard
- Real-time fill level visualization
- Component status indicators
- Bin height configuration
- Active/Inactive status toggle
- Responsive design for all devices
Feel free to fork this project and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.