Waste Watcher is an IoT based sensor module to help keep track of waste data metrics such as bin fullness, bin weight, images of waste, etc. This is intended to help quantify waste data and promote actionable solutions to lower the amount of waste people throw away.
You can view the original repo here. This repo is intended to store the changes of the MQTT Waste Watcher version, where the waste metrics are publishes to a MQTT broker, while still optimizing performance for low power consumption.
View the original repo for more thorough instructions
- ESP32-CAM
- HC-SR04 Ultrasonic Sensor
- FTDI Adapter
- Jumper Cap
Connect the following pins on the ESP32-CAM -> HC-SR04
- 5V -> 5V
- GND -> GND
- IO13 -> TRIG
- IO12 -> ECHO
Connect the following pins on the ESP32-CAM -> FTDI Adapter
- 5V -> 5V
- GND -> GND
- U0R -> TXD
- U0T -> RXD
Attach a jumper cap on the pins on the ESP32-CAM
- IO0 -> GND
- Visual Studio Code
- PlatformIO, a cross-platform VSCode-based IDE for embedded system development
- CP210x USB to UART Bridge VCP Drivers, only needed if proper FTDI Adapter drivers are not already installed
- First, clone the repo and its dependencies using the command
git clone --recursive https://github.com/zotbins/Waste-Watcher-AWS-IoT-Core.git
-
In the
include
directory, create a header file calledconfig.h
. -
Copy the contents of
config.h.txt
intoconfig.h
and fill out the header file with the relevant information. -
Build the project by clicking on the
Build
button in the PlatformIO tab in VSCode. -
IMPORTANT: Enter programming mode on the ESP32-CAM by attaching a jumper cap on the pins
IO0
andGND
and pressing on the reset push button on the back. -
Upload the application by clicking on the
Upload
Button in the PlatformIO tab. -
Remove the jumper cap from
IO0
andGND
and press on the reset push program to start the application.