Magic LEDs: Self-Organizing with ESP32 CAM & Simple Image Processing!

  Рет қаралды 14,222

atomic14

atomic14

Күн бұрын

Пікірлер: 101
@atomic14
@atomic14 3 жыл бұрын
Interested in ESP32 Audio: kzbin.info/aero/PL5vDt5AALlRfGVUv2x7riDMIOX34udtKD Looking for all my ESP32 projects: kzbin.info/aero/PL5vDt5AALlRdN2KyL30l8j7kLCxhDUrNw
@icefire5555
@icefire5555 4 жыл бұрын
I came here from reddit! this is amazing!
@dynxt-_-3243
@dynxt-_-3243 4 жыл бұрын
Same
@jerkwagon
@jerkwagon 4 жыл бұрын
345 subs and your page is just like the other big channels! Great job, keep up the hard work, we appriciate people like you who are willing to help and show us noobs how these things work! Hopeflly you can read this to know i liked this video!
@atomic14
@atomic14 4 жыл бұрын
Thank you! It does really help to know that people enjoy watching.
@MagicAndReason
@MagicAndReason 3 жыл бұрын
Absolutely wonderful! Imagine never having to untangle your Xmas lights each year! My old man wouldn't be able to curse & cuss any more.
@torymblue2000
@torymblue2000 4 жыл бұрын
Very cool!!!!!!! I could see this being ideal for making bush nets, tree nets etc.
@atomic14
@atomic14 4 жыл бұрын
Yep, I'm going to use it on the Christmas tree this year.
@christianeaton
@christianeaton 4 жыл бұрын
@@atomic14 How are you thinking of dealing with the multidimensionalality? Multiple cameras?
@MikeKarliner
@MikeKarliner 3 жыл бұрын
Tried it, and it works brilliantly!
@atomic14
@atomic14 3 жыл бұрын
That's awesome! Would be great to see a video if you have one?
@HartWelles
@HartWelles 4 жыл бұрын
This is dope dude! This should make LED mapping a breeze!
@atomic14
@atomic14 4 жыл бұрын
Thanks!
@TheElectronicEngineer
@TheElectronicEngineer 2 жыл бұрын
Started watching this after seeing your XMas tree video...There is a lot of potential here...Want to play around with this. Will have to order a bunch of WS2811
@iZilly
@iZilly 4 жыл бұрын
is this not a similar thing that the christmas light kit you can buy for christmas trees? i been wanting to get the light kits but thought they were very expensive so could one do a kit like this, it might work out much cheaper
@atomic14
@atomic14 4 жыл бұрын
I'm looking forward to Christmas, I'll be getting some more lights and trying some 3D mapping!
@horace577
@horace577 2 жыл бұрын
This is like magic . . amazing beautiful app . . I hope to get it working . everyone will think I am a genius.
@peter-frankspierenburg9410
@peter-frankspierenburg9410 3 жыл бұрын
That is fantastic!
@trhosking
@trhosking 3 жыл бұрын
Love it! Of course, the next logical step is to use a second camera and map the LEDs into 3D space.
@atomic14
@atomic14 3 жыл бұрын
Have a look at this - it's quite a bit more advanced than what I've done - github.com/aaknitt/pixel_mapper
@trhosking
@trhosking 3 жыл бұрын
@@atomic14 Oh my God! I was looking at this video wondering if there was anything I could do to make it useable with XLights! :D
@trhosking
@trhosking 3 жыл бұрын
@@atomic14 If you have Discord, I'm Munger#5777. I think we have a common interest that may be worth some collaboration.
@marco4570
@marco4570 4 жыл бұрын
Great idea and amazing execution!
@atomic14
@atomic14 4 жыл бұрын
Thank you! Cheers!
@michaelkramer9014
@michaelkramer9014 4 жыл бұрын
This is really cool !
@udirt
@udirt 2 жыл бұрын
Really great application
@qualar
@qualar 3 жыл бұрын
This is excellent. Would be great if the capture element could be integrated into WLED.
@qualar
@qualar 3 жыл бұрын
Sorry. I see someone already made this comment.
@atomic14
@atomic14 3 жыл бұрын
I need to have a good look at WLED - I keep getting distracted by new shiny things :(
@ItsJustMJ3
@ItsJustMJ3 3 жыл бұрын
Thank you so much for your demo, this is exactly what i've been trying to find for ages for xmas light control. You've got my sub!!
@atomic14
@atomic14 3 жыл бұрын
Thanks! It was a fun project.
@nischal_mahadeshwar
@nischal_mahadeshwar 3 жыл бұрын
Most underrated channel.. hope you grow like the big guys
@atomic14
@atomic14 3 жыл бұрын
Thanks! Slowly getting there :)
@mikewurlitzer5217
@mikewurlitzer5217 4 жыл бұрын
BRILLIANT! KUDOS! A great lesson in machine learning.
@atomic14
@atomic14 4 жыл бұрын
Glad you liked it!
@Fifury161
@Fifury161 2 жыл бұрын
Nice work - thanks for sharing!
@alexcotton4658
@alexcotton4658 3 жыл бұрын
I found treasure today. Great videos here on this channel
@atomic14
@atomic14 3 жыл бұрын
Awesome! Thank you!
@bserking
@bserking 4 жыл бұрын
Super awesome! You already did what I was thinking about lasting time I hang our Christmas tree. There is a commercial product called Twinkly which gave me the thoughts....but yeah man great work! Many thank to you PS: came from reddit....
@atomic14
@atomic14 4 жыл бұрын
No worries - I've done a little bit of work to make it work with just a phone camera so all you need is an ESP32.
@LonchsThings
@LonchsThings 3 жыл бұрын
@@atomic14 hi atomic!! I am amazed with this work!! You mentioned you changed it to work with a phone camera?? I would really be interested in learning that!! I have been dreaming about doing something like this for years! Can you point me where to look?
@atomic14
@atomic14 3 жыл бұрын
@@LonchsThings Hi Jose - in the GitHub repo there's a folder called `frontend` - there's a Makefile that will build this and upload it to the ESP32 board. The firmware runs a little web server and will serve the front end. There is a bit of problem though as to access the phone's camera you need to be using https. I used a service called ngrok to proxy the requests which gives you an https connection. You can also serve the front end from your desktop computer - just run "yarn serve" in the frontend folder of the repo. You will still need to use ngrok to get an https address for your phone.
@LonchsThings
@LonchsThings 3 жыл бұрын
@@atomic14 many thanks!!! I will give it a try and let you know if it worked! Are you open for questions?
@atomic14
@atomic14 3 жыл бұрын
@@LonchsThings Sure - any issues just open them on the GitHub repo and I'll try and help. It may take me a day or so as I'm juggling a few things at the same time.
@tyandgigbuilds8836
@tyandgigbuilds8836 3 жыл бұрын
Very interesting this is giving me some ideas for potential builds. Thanks for sharing really love the thought process
@atomic14
@atomic14 3 жыл бұрын
Thanks! Good luck with the builds.
@bld86
@bld86 4 жыл бұрын
What a smart original project. Great job!
@atomic14
@atomic14 4 жыл бұрын
Thank you!
@ArtsyEngineering
@ArtsyEngineering 4 жыл бұрын
Damn this is great! Nice work!
@atomic14
@atomic14 4 жыл бұрын
Thanks, really like your videos as well.
@ArtsyEngineering
@ArtsyEngineering 4 жыл бұрын
atomic14 thank you so much! Maybe we can work together on something sometime? Looks like we have a lot of the same interests.
@AndresLeonSalas
@AndresLeonSalas 3 жыл бұрын
This is great, please keep up your amazing work. Subscribed!
@werneckpaiva
@werneckpaiva 4 жыл бұрын
Amazing work!! Congratz!!!
@atomic14
@atomic14 4 жыл бұрын
Thanks a lot!
@andycrask3531
@andycrask3531 2 жыл бұрын
Awesome project and just what I'm looking for, Thanks for sharing. New subscriber here 😁
@jone1jone145
@jone1jone145 4 жыл бұрын
Hope 2118 is 2811 and not a problem. Great work!
@atomic14
@atomic14 4 жыл бұрын
Yes - complete brain fart on my part!
@cwhiii
@cwhiii 4 жыл бұрын
Very fantastic!
@atomic14
@atomic14 4 жыл бұрын
Glad you like it!
@JasonWho
@JasonWho 3 жыл бұрын
Wow, adding my voice to the chorus of folks proposing 3D mapping. Maybe with manual depth adjustments but ideally using brightness of the light and maybe multiple perspectives? Maybe there are Halloween or Thanksgiving LED projects that could be practiced on ;)
@atomic14
@atomic14 3 жыл бұрын
I've been wondering if you know the underlying 3D shape - e.g. a Christmas tree could be modelled as a simple cone then you might be able to do something quite effective. Definitely something to think about.
@Synaesthesia99
@Synaesthesia99 2 жыл бұрын
True WIZARDRY! :-O
@ColmiYveul
@ColmiYveul 4 жыл бұрын
Oooooh that's clever !
@noahagnew6517
@noahagnew6517 4 жыл бұрын
This is awesome
@atomic14
@atomic14 4 жыл бұрын
Thank you - it works surprisingly well for such a simple algorithm.
@JWSmythe
@JWSmythe 4 жыл бұрын
That's an interesting way to do it.
@atomic14
@atomic14 4 жыл бұрын
Thanks - I'm glad you like it.
@ashutoshmohanty
@ashutoshmohanty 4 жыл бұрын
That's cool.
@woofcaptain8212
@woofcaptain8212 4 жыл бұрын
Pretty amazing!
@atomic14
@atomic14 4 жыл бұрын
Thanks!
@iSuperMC
@iSuperMC 3 жыл бұрын
This is amazing.
@neilc.633
@neilc.633 2 жыл бұрын
Very cool and exactly what I'm looking to do -- any chance this can be adapted to work with a smartphone camera for ease of access and use?
@forrestallison1879
@forrestallison1879 4 жыл бұрын
many of these LEDs don't actually need 5 volt logic to work, as long as you use a lower supply voltage as well. By supplying 4.2 volts max, I was able to control a massive string of LEDs on 3.3 volts
@atomic14
@atomic14 4 жыл бұрын
I think you are correct. I was having some really bad problems with the LEDs flickering or showing the wrong colours. I think in the end it may have just been the library I was using. I tried putting a diode in series with the LED power supply and it didn't seem to make much difference, Switching the library I was using to FastLeds, adding the level shifter and changing the pin I was using made the problem go away - by that point I'd changed quite a lot so pinpointing the exact problem felt like a lot of work and I was just glad to have it working stably!
@HartWelles
@HartWelles 4 жыл бұрын
@@atomic14 Yeah I just use a 3.7V LiPo for all of my projects and while it's not as bright as providing the full 5V it works fine for my application :)
@dudel7557
@dudel7557 4 жыл бұрын
Awesome :)
@atomic14
@atomic14 4 жыл бұрын
Thanks 😁
@ajilful
@ajilful 3 жыл бұрын
This is so amazing, thanks very much for tutorial, I am thinking of a mobile UI so that we can draw frames and animate after the scan similar to Twinkly, that's a commercial version I saw.
@atomic14
@atomic14 3 жыл бұрын
That's a great idea! I did build a very basic web UI for the project. One issue I had was speed of the webserver. It seemed to be quite slow updating the LEDs.
@tonib8352
@tonib8352 2 жыл бұрын
Uooooooouuuu....this is amaizing
@tonib8352
@tonib8352 2 жыл бұрын
How many leds can be controlled with this? project
@atomic14
@atomic14 2 жыл бұрын
@@tonib8352 You can chain the LED strings together, multiple times, but you might need to inject power every so often. My next project using this technique will have 200 LEDs. The main limits are RAM and how much time you have to write out all the data. There's an interesting discussion here: github.com/FastLED/FastLED/issues/288
@tonib8352
@tonib8352 2 жыл бұрын
@@atomic14 thank you so much
@tonib8352
@tonib8352 2 жыл бұрын
@@atomic14 Hello, your idea is amazing and I already told you in a previous post. I'm not very good at these things but the idea of ​​doing something like that on my home wall makes me excited. I wanted to ask you if you are willing to do the programming for me with my pc via team viewer or similar, obviously upon payment in advance if you want. i currently have an arduino r3 and 200 led ws2812b. I saw that you managed to make it work also through the phone camera so without esp32 cam. let me know please.
@tonib8352
@tonib8352 2 жыл бұрын
Hello, your idea is amazing and I already told you in a previous post. I'm not very good at these things but the idea of ​​doing something like that on my home wall makes me excited. I wanted to ask you if you are willing to do the programming for me with my pc via team viewer or similar, obviously upon payment in advance if you want. i currently have an arduino r3 and 200 led ws2812b. I saw that you managed to make it work also through the phone camera so without esp32 cam. let me know please.
@richms
@richms 4 жыл бұрын
How about 2 esp modules and hitting a 3d shape from 2 sides like a sphere or tree with them all over it?
@atomic14
@atomic14 4 жыл бұрын
I've been thinking about that for the Christmas tree - I think it should be possible to map the LEDs onto a cone shape. I think for simple shapes the mapping should be reasonably straightforward. There's probably a lot of work already been done by motion capture guys.
@Lampje83
@Lampje83 3 жыл бұрын
If you map the camera positions and target position into a 3D space, then you can construct a ray from the found 2D position and do a simple ray-ray intersection test. Because of measurement error and camera invariances, the rays would probably miss, but for this low-resolution application I think it's accurate enough when you find the nearest position between the two rays. I'm not an expert, but I think the mathematics aren't too complicated.
@MarioSalasEspinoza
@MarioSalasEspinoza Жыл бұрын
I am trying to replicate this project with 500 leds. Wish me luck, only waiting for the esp32 to arrive.
@sjude68
@sjude68 3 жыл бұрын
where do I get the working firmware. I complied for github but cannot get it working.
@atomic14
@atomic14 3 жыл бұрын
Can you raise an issue on GitHub? It's a while since I looked at the project so will need to refresh myself how it all works.
@leef_me8112
@leef_me8112 4 жыл бұрын
> All the code is on GitHub Where is the link?
@atomic14
@atomic14 4 жыл бұрын
Ooops - sorry - here you go - github.com/atomic14/self-organising-leds I've updated the description as well. Thanks for pointing it out!
@tstill1988
@tstill1988 4 жыл бұрын
Wow. Christmas will be fun this year! Are you aware of WLED? If there is a way to integrate this into wled would awesome
@atomic14
@atomic14 4 жыл бұрын
I’d not heard of WLED before - looks really interesting!
@dripdropdripping
@dripdropdripping 4 жыл бұрын
Awesome! would be amazing if it could work with WLED From Aircookie!
@atomic14
@atomic14 4 жыл бұрын
Planning on taking a look - got another project brewing that I need to get finished first...
@dripdropdripping
@dripdropdripping 4 жыл бұрын
@@atomic14 thank you so much, really appreciate it, i know alot of people will be happy to hear that! Are you making a video on your current project? You got me curious heh. Anyway keep up the good work 😊
@led_man
@led_man 3 жыл бұрын
@@atomic14 any updates?
@atomic14
@atomic14 3 жыл бұрын
@@led_man I've not had time to look properly - I was hoping someone might take the code and do it :)
@led_man
@led_man 3 жыл бұрын
@@atomic14 there is a section about 2D/3D mapping in the Wled Discord Server. Maybe you can join here if you want. I’d like to take the code but I’m a newbie in coding and don’t know how to do that. :(
Can You Spot the Problem?
9:37
atomic14
Рет қаралды 17 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Шок. Никокадо Авокадо похудел на 110 кг
00:44
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,5 МЛН
Most Interesting Addressable LEDs that I've Ever Seen
10:50
atomic14
Рет қаралды 13 М.
I wired my tree with 500 LED lights and calculated their 3D coordinates.
24:38
Ping Pong LED Wall v3
21:47
bitluni
Рет қаралды 889 М.
How to make a 16x16x16 LED CUBE at home with Arduino platform
20:09
Malt Whiskey
Рет қаралды 4,2 МЛН
Making the most EQUIPPED DIY Security Camera with ESP32-CAM
26:36
Max Imagination
Рет қаралды 357 М.
Build Your Own DIY Laser Show: Easy Steps & Amazing Results!
11:26
ESP32 Walkie-Talkie: DIY Audio Magic
8:50
atomic14
Рет қаралды 111 М.
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15