➡️ ➡️ 💩 ➡️ ➡️ 💩 ➡️ ➡️
Tip
Be sure to check out the new web installer. https://t0nyz.com/flasher/index.html
For more detailed project information visit: https://t0nyz.com/projects/bambuconveyor
The Bambu Conveyor is an application designed to manage the waste output of a Bambu Labs printer. It utilizes the MQTT protocol (or Motion Detection) to monitor the printer's status and control a motor that moves waste material away from the printing area.
- Breakout board for ESP32: https://amzn.to/4dyjsx0
- ESP32 board: https://amzn.to/4fBjh5L
- 12 Volt power supply: https://amzn.to/3AfIm6a
- Motor Controller: https://amzn.to/3yBPqcM
- 12V 10RPM Motor: https://amzn.to/3M24VOd
- Resistors (I use 470Ω - you need 3 from this kit): https://amzn.to/4cqCi8e
- Wires: https://amzn.to/46EAtn3
- LED's sourced from this kit: https://amzn.to/4dH5Dw7
- Power connector: https://amzn.to/3T4xRsS
- I use these bearings on my conveyor for smoother action: https://amzn.to/4hjW0WD
- Motion sensor (For Motion Sensor mode): https://amzn.to/4gtN4gd
- Conveyor: https://makerworld.com/en/models/148083#profileId-161573
- ESP32 Housing: https://makerworld.com/en/models/1071359#profileId-1061316
- Conveyor Extension: https://makerworld.com/en/models/249714#profileId-359905
The Bambu Poop Conveyor supports two methods for triggering the conveyor, depending on your printer model and preference.
- Best suited for X1C printers due to their more powerful CPU, which handles MQTT updates more efficiently.
- Listens for printer status changes (Change Filament status and Clean nozzle status) and automatically activates the conveyor when needed.
- Requires a stable network connection and correct MQTT setup.
- Ideal for P1 and A1 series printers, where MQTT performance can be inconsistent due to CPU constraints.
- Uses the HiLetgo AM312 PIR sensor to detect movement and trigger the conveyor.
- Works independently of network conditions, making it a more reliable option for some setups.
To install the firmware, use one of the following methods:
- Open Google Chrome or Microsoft Edge.
- Go to Bambu ESP32 Installer.
- Click the "Install" button and follow the on-screen instructions.
- Install
esptool
using pip:pip install esptool
- Alternatively, download the precompiled ESPTool from the official Espressif GitHub.
- Download the latest firmware from the GitHub Releases.
- Plug your ESP32 into your computer using a USB cable.
- Ensure drivers for the USB-to-serial adapter are installed (CH340, CP210x, etc.).
- On macOS/Linux, run:
Look for something like
ls /dev/tty.*
/dev/tty.usbserial-1
. - On Windows, open Device Manager and check under Ports (COM & LPT).
- Replace
<PORT>
with your ESP32’s serial port (e.g.,/dev/tty.usbserial-1
):esptool.py --chip esp32 --port /dev/tty.usbserial-1 --baud 460800 write_flash \ 0x0 Bambu-Poop-Conveyor.v1.3.3-final.bin
- Once flashing completes, restart your ESP32 by unplugging/replugging it or pressing the EN or RST button.
Your ESP32 should now be running the updated firmware.
Once flashed, the ESP32 starts in AP Mode:
- Connect to the "BambuConveyor" WiFi network.
- Open a browser and go to 192.168.4.1/config.
- Enter your WiFi and MQTT credentials.
- Click Save. The ESP32 will reboot and connect to your WiFi.
For troubleshooting, open an issue on GitHub or check the discussions tab.
The application uses the following GPIO pins for motor and LED control:
const int greenLight = 19;
const int yellowLight = 18;
const int redLight = 4;
int motor1Pin1 = 23;
int motor1Pin2 = 21;
int enable1Pin = 15;
const int motionSensorPin = 22;
The application hosts a web server to provide manual control and configuration. Access the following URLs for different functionalities:
- Root URL: Opens Configuration page (
/
) - Control URL: Manual motor control page (
/control
) - Config URL: Configuration page to update settings (
/config
) - Logs URL: Log history page (
/logs
) - Manual Run URL: Opening this URL runs the motor manually (
/run
)
What do the flashing lights mean when its first turned on?
- Flashing yellow only = Connecting to WiFi
- Solid Green = We are connected to Wifi and MQTT printer
- Red Light on bootup = No Wifi / No MQTT (Solid red also when conveyor is running)
- Green light / Yellow flashing = Wifi connected / Attempting to connect to printer
- Green light / Yellow solid = Wifi conncted / Issue connecting to printer via MQTT / Will reattempt connection after 5 seconds
The ESP32 doesnt connect to the printer
- Double check that your printer is setup with Access Code and LAN only mode is OFF See Bambu Wiki
- Double check your SN matches the settings you put in
- Make sure your printer has good Wifi signal
- Make sure the ESP32 has good Wifi signal
- Reach out to me if you still have issues
This project is licensed under the MIT License. See the LICENSE file for details.
For more detailed project information visit: https://t0nyz.com/projects/bambuconveyor