I want to se a RFID-RC522 Reader on the same ESP32 where WLED is running. I just want to send the code presented RFID-Card to a URL via REST (so it’s a simple GET request). Target is the Simple API of iobroker (setting a datapoint to the code of the card).
Can I add this functionality without changing the firmware of WLED? Is there a prepared scenario for this?
There’s lots of code out there to interface RC522 readers, but I’m pretty sure it hasn’t been tested to co-exist live with WLED (I could be wrong). On the face of it that sounds like a pretty specific use.
Is there some reason you don’t want to dedicate an ESP board to the reader?
What’s your actual application, exactly how do you see this working?
I have a lamp that’s using WLED to have effects. It interacts with other lamps and overall room lighting. It would be really cool to have multiple rfid-cards which can be placed in front of the reader of this specific lamp to get different effects for the whole room.
I’ve used rfid readers in multiple scenarios (for example music box for kids & automatic shopping list). I like this idea more, than using a smartphone to activate something. RFID cards can be used by every person. I can add as many cards as I want to have different effects or other purposes.
May be I have to ask in the usermod subforum? The task is really simple I think. But I don’t know where to start or create a usermod.
You can ask anywhere you’d like as the forum is pretty open for everyone.
I’d guess you’ll find that this is something you’ll have to try to build yourself, haven’t seen any traffic on building this into WLED.
One idea, you might explore is to build a separate ESP32 device that does the RFID scan and sends data via WiFi or even serial to your WLED controller(s) to trigger a preset or playlist. That lets you separate out the tasks WLED is probably not great at (RFID code) from the stuff where it shines (pun intended).
Yes a second device is the only choice I’ll have, when there is no way to integrate this task into WLED itself. I really do not want to make a change to WLED itself, because I do not want to maintain the merging. I searched the whole web and did not find anything for this.
A few people have looked at serial/Web/udp communications with WLED for various projects.
Once you get your RFID device generating requests, it should be reasonable to make this work.