2025-02-12 21:10:25 +01:00
# FilaMan - Filament Management System
2025-02-16 11:18:43 +01:00
[Deutsche Version ](README.de.md )
2025-02-13 08:29:02 +01:00
FilaMan is a filament management system for 3D printing. It uses ESP32 hardware for weight measurement and NFC tag management.
Users can manage filament spools, monitor the status of the Automatic Material System (AMS) and make settings via a web interface.
The system integrates seamlessly with [Bambulab ](https://bambulab.com/en-us ) 3D printers and [Spoolman ](https://github.com/Donkie/Spoolman ) filament management as well as the [Openspool ](https://github.com/spuder/OpenSpool ) NFC-TAG format.
2025-02-12 21:10:25 +01:00
2025-03-01 15:33:39 +01:00
2025-02-13 16:19:42 +01:00

2025-02-13 17:39:41 +01:00
2025-02-14 12:58:12 +01:00
More Images can be found in the [img Folder ](/img/ )
2025-03-01 15:33:39 +01:00
or my website: [FilaMan Website ](https://www.filaman.app )
german explanatory video: [Youtube ](https://youtu.be/uNDe2wh9SS8?si=b-jYx4I1w62zaOHU )
Discord Server: [https://discord.gg/vMAx2gf5 ](https://discord.gg/vMAx2gf5 )
2025-02-13 16:57:07 +01:00
2025-02-25 20:19:04 +01:00
### Now more detailed informations about the usage: [Wiki](https://github.com/ManuelW77/Filaman/wiki)
2025-02-12 21:10:25 +01:00
### ESP32 Hardware Features
- **Weight Measurement:** Using a load cell with HX711 amplifier for precise weight tracking.
- **NFC Tag Reading/Writing:** PN532 module for reading and writing filament data to NFC tags.
- **OLED Display:** Shows current weight, connection status (WiFi, Bambu Lab, Spoolman).
- **WiFi Connectivity:** WiFiManager for easy network configuration.
- **MQTT Integration:** Connects to Bambu Lab printer for AMS control.
2025-03-01 12:45:55 +01:00
- **NFC-Tag NTAG213 NTAG215:** Use NTAG213, better NTAG215 because of enaught space on the Tag
2025-02-12 21:10:25 +01:00
### Web Interface Features
- **Real-time Updates:** WebSocket connection for live data updates.
2025-02-13 08:29:02 +01:00
- **NFC Tag Management:**
- Write filament data to NFC tags.
- uses NFC-Tag Format of [Openspool ](https://github.com/spuder/OpenSpool )
- so you can use it with automatic Spool detection in AMS
- **Bambulab AMS Integration:**
2025-02-12 21:10:25 +01:00
- Display current AMS tray contents.
- Assign filaments to AMS slots.
- Support for external spool holder.
- **Spoolman Integration:**
- List available filament spools.
- Filter and select filaments.
- Update spool weights automatically.
- Track NFC tag assignments.
2025-03-01 12:33:26 +01:00
- Supports Spoolman Octoprint Plugin
2025-02-12 21:10:25 +01:00
2025-02-13 08:29:02 +01:00
### If you want to support my work, i would be happy to get a coffe
2025-02-13 16:22:52 +01:00
< a href = "https://www.buymeacoffee.com/manuelw" target = "_blank" > < img src = "https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt = "Buy Me A Coffee" style = "height: 30px !important;width: 108px !important;" > < / a >
2025-02-13 08:29:02 +01:00
2025-02-12 21:10:25 +01:00
## Detailed Functionality
### ESP32 Functionality
- **Control and Monitor Print Jobs:** The ESP32 communicates with the Bambu Lab printer to control and monitor print jobs.
- **Printer Communication:** Uses MQTT for real-time communication with the printer.
- **User Interactions:** The OLED display provides immediate feedback on the system status, including weight measurements and connection status.
### Web Interface Functionality
- **User Interactions:** The web interface allows users to interact with the system, select filaments, write NFC tags, and monitor AMS status.
- **UI Elements:** Includes dropdowns for selecting manufacturers and filaments, buttons for writing NFC tags, and real-time status indicators.
## Hardware Requirements
### Components
- **ESP32 Development Board:** Any ESP32 variant.
2025-02-13 21:40:41 +01:00
[Amazon Link ](https://amzn.eu/d/aXThslf )
2025-02-22 16:59:56 +01:00
- **HX711 5kg Load Cell Amplifier:** For weight measurement.
[Amazon Link ](https://amzn.eu/d/06A0DLb )
- **OLED 0.96 Zoll I2C white/yellow Display:** 128x64 SSD1306.
[Amazon Link ](https://amzn.eu/d/0AuBp2c )
- **PN532 NFC NXP RFID-Modul V3:** For NFC tag operations.
[Amazon Link ](https://amzn.eu/d/jfIuQXb )
2025-03-01 12:45:55 +01:00
- **NFC Tags NTAG213 NTAG215:** RFID Tag
2025-02-22 16:59:56 +01:00
[Amazon Link ](https://amzn.eu/d/9Z6mXc1 )
2025-02-13 08:29:02 +01:00
2025-02-12 21:10:25 +01:00
### Pin Configuration
| Component | ESP32 Pin |
|-------------------|-----------|
| HX711 DOUT | 16 |
| HX711 SCK | 17 |
| OLED SDA | 21 |
| OLED SCL | 22 |
| PN532 IRQ | 32 |
| PN532 RESET | 33 |
2025-02-24 09:36:28 +01:00
| PN532 SDA | 21 |
| PN532 SCL | 22 |
2025-02-12 21:10:25 +01:00
2025-02-24 09:36:28 +01:00
**Make sure that the DIP switches on the PN532 are set to I2C**
2025-02-23 20:12:35 +01:00
2025-02-24 10:10:15 +01:00



2025-02-12 21:10:25 +01:00
## Software Dependencies
### ESP32 Libraries
- `WiFiManager` : Network configuration
- `ESPAsyncWebServer` : Web server functionality
- `ArduinoJson` : JSON parsing and creation
- `PubSubClient` : MQTT communication
- `Adafruit_PN532` : NFC functionality
- `Adafruit_SSD1306` : OLED display control
- `HX711` : Load cell communication
2025-02-23 20:35:46 +01:00
### Installation
2025-02-13 08:29:02 +01:00
2025-02-23 20:35:46 +01:00
## Prerequisites
2025-02-13 08:29:02 +01:00
- **Software:**
- [PlatformIO ](https://platformio.org/ ) in VS Code
- [Spoolman ](https://github.com/Donkie/Spoolman ) instance
- **Hardware:**
- ESP32 Development Board
- HX711 Load Cell Amplifier
- Load Cell (weight sensor)
- OLED Display (128x64 SSD1306)
- PN532 NFC Module
- Connecting wires
2025-02-24 19:14:28 +01:00
## Important Note
You have to activate Spoolman in debug mode, because you are not able to set CORS Domains in Spoolman yet.
```
# Enable debug mode
# If enabled, the client will accept requests from any host
# This can be useful when developing, but is also a security risk
# Default: FALSE
#SPOOLMAN_DEBUG_MODE=TRUE
```
2025-02-23 20:35:46 +01:00
## Step-by-Step Installation
### Easy Installation
1. **Go to [FilaMan Installer](https://www.filaman.app/installer.html)**
2025-02-23 16:13:42 +01:00
2025-02-23 20:35:46 +01:00
2. **Plug you device in and push Connect button**
2025-02-23 16:13:42 +01:00
2025-02-23 20:35:46 +01:00
3. **Select your Device Port and push Intall**
2025-02-23 16:13:42 +01:00
4. **Initial Setup:**
- Connect to the "FilaMan" WiFi access point.
- Configure WiFi settings through the captive portal.
- Access the web interface at `http://filaman.local` or the IP address.
2025-02-23 20:35:46 +01:00
### Compile by yourself
2025-02-13 08:29:02 +01:00
1. **Clone the Repository:**
```bash
git clone https://github.com/ManuelW77/Filaman.git
cd FilaMan
```
2. **Install Dependencies:**
```bash
pio lib install
```
3. **Flash the ESP32:**
```bash
pio run --target upload
```
4. **Initial Setup:**
- Connect to the "FilaMan" WiFi access point.
- Configure WiFi settings through the captive portal.
- Access the web interface at `http://filaman.local` or the IP address.
2025-02-12 21:10:25 +01:00
## Documentation
### Relevant Links
- [PlatformIO Documentation ](https://docs.platformio.org/ )
- [Spoolman Documentation ](https://github.com/Donkie/Spoolman )
- [Bambu Lab Printer Documentation ](https://www.bambulab.com/ )
### Tutorials and Examples
- [PlatformIO Getting Started ](https://docs.platformio.org/en/latest/tutorials/espressif32/arduino_debugging_unit_testing.html )
- [ESP32 Web Server Tutorial ](https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ )
## License
This project is licensed under the MIT License. See the [LICENSE ](LICENSE ) file for details.
## Materials
### Useful Resources
- [ESP32 Official Documentation ](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/ )
- [Arduino Libraries ](https://www.arduino.cc/en/Reference/Libraries )
- [NFC Tag Information ](https://learn.adafruit.com/adafruit-pn532-rfid-nfc/overview )
### Community and Support
- [PlatformIO Community ](https://community.platformio.org/ )
- [Arduino Forum ](https://forum.arduino.cc/ )
- [ESP32 Forum ](https://www.esp32.com/ )
## Availability
2025-02-13 08:29:02 +01:00
The code can be tested and the application can be downloaded from the [GitHub repository ](https://github.com/ManuelW77/Filaman ).
### If you want to support my work, i would be happy to get a coffe
2025-02-13 16:22:52 +01:00
< a href = "https://www.buymeacoffee.com/manuelw" target = "_blank" > < img src = "https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt = "Buy Me A Coffee" style = "height: 30px !important;width: 108px !important;" > < / a >