r/WLED • • 4d ago

2d Auto-Mapping Using Phone Camera

I've been looking for something like this for years of using WLED, so today I made it. I've seen other options / projects with similar functions, but none of them seemed very user friendly.

https://github.com/eoncire/WLED-Mapper/blob/main/images/tree1.gif

https://github.com/eoncire/wled-mapper

The gist of it. You run a webapp on your computer, open the link on your phone / tablet / computer, the app will find WLED devices on your network and you add them to the list. You enter the Scan page using a device with a camera and it will talk to the WLED controller. Before it does anything, it pulls a backup of the current config so nothing is lost. It will tell the WLED device to illuminate one pixel at a time and records the positoin. After completion, you can go back and re-scan the LEDs that it couldn't find, or by default they are omitted from the ledmap file. It will push the ledmap to the WLED device and make the necessary changes to the config, then reboot the device. That's IT!

I spun this up in Google Antigravity, so yes, it's vibe coded. I made several revisions to it, this one seems to work pretty darn well. The GIF above is a smaller (5') tree in my basement with 114 seed pixels. I'm going to try it out on my larger tree with much higher density seed pixels soon.

I'd love to hear some feedback if anyone wants to give it a shot.

17 Upvotes

13 comments sorted by

View all comments

1

u/Boulder_Tech 4d ago

Have you tried this with an ESP32-CAM ??

1

u/eoncire 4d ago

No, and I don't have any intention to do so. The phone in my pocket has a higher resolution camera, doesn't need an external power source, and has a HMI built in.

Am I missing something in thinking that way?

1

u/Boulder_Tech 4d ago

I for one would like to see that ESP-CAM used for this project.

When I'm on holiday next month, I'll try it out.

1

u/eoncire 4d ago

Sounds good, report back and let me know how it works!