Your filament wants to be free
π OpenSpool.io
Checkout the ofifical documentation on https://openspool.io π
Adhere NFC stickers on all your filament. Build an ESP32 OpenSpool reader and place it next to your printer. Touching the filament to the reader will automatically update your Bambu Printer filament settings. Almost as seamlessly as if you were using Bambu filament with an AMS.
- Make it so easy to put RFID stickers on filament spools that your grandma could do it.
- 100% programable using just a modern iphone/android (no RFID programmer or scripting).
- Change filament in 10 seconds using 1 hand.
- 100% reliability so that filament can be changed with your eyes closed.
Protocol | Read | Write | Type |
---|---|---|---|
OpenSpool | β | β | NTAG 215/216 |
Bambu | π§ In progress | β | MiFare Classic |
OpenTag | π§ In progress | π§ In progress | TBD: Either MiFare or NTAG |
Creality | β | β | β |
PrusaRFID | β | β | β |
OpenSpool aims to use the simplest possible protocol for RFID tags. All you need is a 13.56Mhz RFID tag that supports NDEF records (NFC Tags) and has atleast 500 bytes of memory. NTAG 215/216 are a great choice. Purchasing links provided below.
Example record stored on NFC tag.
type = application/json
payload =
{
"protocol": "openspool",
"version": "1.0",
"type": "PLA",
"color_hex": "FFAABB",
"brand": "Generic",
"min_temp": "220",
"max_temp": "240"
}
By touching your phone to a spool tag, you can see information about the spool.
https://openspool.io/tag_info?color_hex=FFAABB&type=PLA&brand=Generic&min_temp=220&max_temp=240&protocol=openspool&version=1.0
Currently OpenSpool works with Bambu printers over mqtt. Other integrations are planned. Pull Requests welcome
Integration | Supported |
---|---|
Bambu | β |
OctoPrint | π§ In Progress |
Prusa Connect | ποΈ Planned |
SpoolMan | ποΈ Planned |
Klipper / Moonraker | ποΈ Planned |
Anker | β |
OpenSpool requires an ESP32-S3 and PN532 NFC Reader (SPI Mode).
Hardware | Link 1 | Link 2 | |
---|---|---|---|
Wemos D1 Mini s3 | Aliexpress | ||
PN532 (Large) (Beware of Fakes!) | Amazon | Aliexpress | |
PN532 (Small) | Amazon | Aliexpress | |
NTAG 215/216 (13.56Mhz NFC Tags >500 bytes) | Amazon | ||
WS2812B LED | Amazon | ||
2.54mm Headers | Amazon | ||
3.3v - 5v Logic Level Converter | Amazon | ||
female-female jumper wire) | Amazon |
If you are unable to find a Wemos D1 Mini s3
, you can stil buy an s2
, as it is pin compatable. However be advised the s2
has less memory and may expierence occassional disconnects from the printer
Hardware | Link 1 | Link 2 | |
---|---|---|---|
Wemos D1 Mini S2 (Beware of Fakes!) | Amazon | Aliexpress |
Tag | Bytes | Supported |
---|---|---|
NTAG 213 | 144 bytes | β |
NTAG 215 | 504 bytes | β |
NTAG 216 | 888 bytes | β |
There is a plethora of fake D1 Mini S2 microcontrollers and PN532 RFID readers in the market.
For the D1 Mini microcontroller, you need the ESP32-S2FN4R2
not the ESP32-S2FH4
.
For the PN532 RFID reader, you need the model that contains the silkscreen.
While temping to buy a fake/clone esp32 or PN5432 at a lower cost, they inevitibly cause headaches as they are less reliable at reading NFC tags. Purchasing at reputable vendors is highly recomended. If you do find a cheaper price and have verified reliablity, please let us know.
Be sure to put the PN532 into SPI
mode (not i2c
or UART
)
The recomended method to install firmware is by navigating to openspool.io in Chrome/Edge and using the web based programming tool.
Alternativly the firmware can be installed with make
commands as shown below.
brew install esphome
git clone https://github.com/spuder/OpenSpool
cd OpenSpool/firmware
Press and hold the D0 button while pressing the reset button on the Wemos D1 Mini.
A new usb serial device will appear.
ls /dev/cu*
Upload firmware and restart
USB_ADDRESS=/dev/cu.usbmodemXXXXX make run-usb-pcb-mini
A new wifi network will appear called OpenSpool
, join the network, navigate to 192.168.4.1, insert your wifi credentials and reboot.
You can then navigate to the web interface at openspool-xxxxxx.local
or ip address.
On first boot, you will need to specify your 3d printer IP Address, Serial Number and Lan Access Code.
Do not put your printer into LAN Only Mode, it is not required.
After changing these 3 settings, you will need to reboot the ESP32. Upon successful connection to the 3d printer, you will observe a checkmark next to MQTT in the web interface, and a blue LED will illuminate next to the USB port.
Press and hold the D0 button for 10 seconds. This will erase wifi credentials and bambu access credentials from OpenSpool.
This means the OpenSpool is hosting a wireless access point called 'OpenSpool'. Connect to it then navigate to 192.168.4.1 to configure wifi.
OpenSpool has succesfully joined the wifi network and is ready to scan for RFID tags
If using the red NP5332 reader (smaller model), it detects tags best on the corners of the antenna.
If using the blue PN532 reader (larger model), it detects tags best directly in the center of the antenna.
Be sure you aren't using a counterfit PN532
The A1/P1 have a limit of 4 mqtt connections. If more than 4 connections are reached clients may be asked to disconnect.
If a client attempts to write invalid data any mqtt topic, the printer will ask the client to disconnect.
All esphome resources must use state_topic:
with a null value to prevent esphome from broadcasting on any topic.
Reach out to the discord for help verifying that the Root Certificate is correct.
Use the MQTTX client to observe the messages that OpenSpool and Bambu Printer are sending.
mqttx sub -t 'device/$SERIAL_NUMBER/report' -u -P $LAN_ACCESS_CODE --mqtt-version 3.1.1 -h $IP_ADDRESS -p 8883 -l mqtts --insecure
Spencer Owen |
secprepper |
See ./LICENSE-Documentation.txt
Software, Hardware and 3d models are released under CC BY-SA 4.0