This repository contains the source code for a small RFID device designed to read RFID tags and send their contents to a Snapmaker U1 3D printer, so it acts as remote RFID antennas. On the printer side there is needed new GCODE to support remote RFID requests -> TODO: put link here
- ESP32-C3-OLED + RC522 - branch main
- RFID Tag Reading: Reads data from RFID tags.
- Printer Communication: Sends the tag data to the Snapmaker U1 3D printer.
- User Interface: Provides a simple display and state management for user interaction.
- ESP32 Device: The code is designed to run on an ESP32 microcontroller. A
- PN532 RFID Module: PN532 module for RFID tag reading.
Support for additional boards or modules will be added in the future.
Warning pins 5 and 6 are used by oled display
- MicroPython: The ESP32 device must be flashed with MicroPython firmware. You can download the firmware from the official MicroPython website.
- display:
- PN532 MicroPython PN532 driver for I2C source
-
Flash MicroPython to ESP32:
- Download the MicroPython firmware for your ESP32 device.
- Use choosen flashing tool, ex. esptool-js
- Flash Address: 0x0
-
Enable networking and webrepl:
- Use a serial tool
- PuTTY (connection type: Serial, Serial line: COM6, Speed: 115200)
- picocom (
picocom -b115200 /dev/ttyACM0)
- Enable networking
import network wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect('NETWORK NAME', 'password') wlan.ifconfig('addr4')
- You should get IP of ESP32
- Enable webrepl
import webrepl_setup - Perform reset (Ctrl-D)
- Use a serial tool
-
Upload code
- Open in browser url
http://[IP of EPS32]:8266/ - Use
Send a fileform to upload each file- make sure there is proper IP of Snampmaker U1 set in config.json
- Open in browser url
-
Connect Hardware:
- Connect the RC522 module to the ESP32 device according to the pinout configuration in the code.
-
Run the Code:
- Reboot or power up the ESP32
short press switches the state IDLE <> READ long press allows to do following actions
- in IDLE, changes channel of filament to sent rfid data
- in READ, sends data to printer after successfull read of rfid tag
- Add support for additional RFID modules.
- Add media (device, connection diagram, showcase video)
- Add stl for cases
- Enhance compatibility with other ESP32 variants.
- Improve user interface features.
