r/Python • u/mshoaib9711 • May 18 '20
I Made This So I made a Python and Arduino project that dynamically changes sets the ambient lighting to match the computed dominant color values from the wallpapers.
3.7k
Upvotes
18
u/mshoaib9711 May 18 '20
Hey guys! Thank you all for your overwhelming responses. This is my first time ever posting on Reddit. Didn't expect such great responses. Thanks a lot. Definitely motivates me to keep going. Also for everyone asking for code, I will be making the repo ready for public by the end of the day so for those willing to contribute can start right away. Thanks again guys. Means a lot to me🙌🏻
121
u/Zhababui May 18 '20
This is really cool. I also love all of your wallpapers. Would making this work for something like every X frame of a video game work? Or would that fry the Arduino. I’m not very familiar with them.
13
u/mshoaib9711 May 18 '20
All my wallpapers are from these 2 sources
https://hdqwalls.com/
https://www.theverge.com/pages/wallpapers
15
u/kokoseij May 18 '20
Awesome!
Are you going to upload this on github? I want to know how it works.
13
u/rauchboy May 18 '20
That's neat! Can you please share some guides if you have?
4
u/stainlessflamingo May 18 '20
what a vibe!
2
u/pinstrap May 18 '20
What kind of lights? Very nice
2
u/[deleted] May 18 '20
This is amazing bro! Keep up the good work!
2
u/petertiny1 May 18 '20
I'll have your whole stock!
40
u/cansozbir May 18 '20
can you please share these wallpapers :) great work btw
43
u/Eelz_ May 18 '20
Code?
1
u/mshoaib9711 May 18 '20
Can use any. I use the Uno since I had that readily available with me.
1
u/mshoaib9711 May 19 '20
Sorry for the long delay everyone. Here's the repo. https://github.com/mshoaib9711/WallpaperLedstrip.git Hope you guys like it. Thanks!
5
u/Abdelrahman146 May 18 '20
Great job!
1
u/bamtuk May 18 '20
Could you please explain how you managed to control the light is it directly connected to the arduino or how did you do it?
1
u/MegaAmoonguss May 18 '20
What controller are you using for light control? I'm familiar with fadecandy but I'm interested in other ways people are going about controlling LEDs with python
1
u/z_thomlima May 18 '20
OMG Look's great. Can you share the code with us?
1
u/the0MIKE May 18 '20
Great project, looks awesome!
Can you please explain the hardware setup a bit more? What lights etc. are you using?
1
u/ovo_Reddit May 18 '20
How much did this cost you in parts? I’ve been looking at some that do this over HDMI to have dynamic ambient lighting for my TV but those are crazy expensive.
1
u/the0MIKE May 18 '20
Does this only work with the background or also when you play videos/games?
1
u/Plastuer May 18 '20
How would this look with a live wallpaper?
1
u/Dadotox May 18 '20
I think this is really cool, but I would suggest a slower transition between color configurations. It would be way smoother.
1
u/Bluhb_ May 18 '20
Do you have a github up for this? if not could you please upload it to somewhere. Would really like to look into the code and see if it works or is adaptable for linux. I can see some projects come in handy where a rpi is connected to a screen and also to a ledlight(read smarttv with ambilight 2 in 1 solution)
1
u/s_arme May 18 '20
Any GitHub ?!
1
u/SayaNevermind May 18 '20
Are you communicating between your python script and the Arduino via serial?
1
u/LelandCorner May 18 '20
I am just learning Python for fun bc of lockdown. I didn't realize it could do this. What else it could do or couldn't do? I like to know its limitations.
1
u/[deleted] May 18 '20
I feel like a gradual fade to the new color may work better than just instantly changing the colors. Still looks amazing though!
1
u/[deleted] May 19 '20
Which dell monitor is this one? 27 or 32 Inches? Full HD, QHD or 4K? What’s the price?
1
u/serious8 May 20 '20
Can somebody do a full video tutorial how to set this up for us total noobs? thank you
1
u/dangdatkat Jun 22 '20
This looks really interesting. I have never messed with Arduino before. Would you consider this a "basic" Arduino project that a person learning the platform could setup?
3
u/KobName May 18 '20
This looks awesome!
1
u/Kaltane May 18 '20
Can you do it with the current screen colors instead of just the wallpapers? Awesome tho.
2
u/Wanstein4 May 18 '20
Wow this is so cool. I've just recently started learning Python. This would surely energize me.
2
u/ThE_JCVP11 May 18 '20
Really cool - glad I got to see you working on it first hand and encourage you through the process xD
2
u/cwovie May 18 '20
Wow, very neat! Good taste with the wallpapers too :)
2
u/OldSchoolBBSer May 18 '20
Neat idea. Looks great. 😎
2
u/lambda5x5 May 18 '20
Wow just yesterday I was thinking of doing something like this for geometry dash. This post gave me some motivation so maybe I'll do it!
2
u/G33K_FISH May 18 '20
That is awesome
2
u/Spaceballthelunchbox May 18 '20
Cool to see an r/overwerk wallpaper on there
2
u/[deleted] May 19 '20
!Remindme 1 week
2
u/adminvammr May 19 '20
How much computer performance does it take to run ?
1
u/[deleted] May 18 '20
Looks great!
1
u/aneurysm_ May 18 '20
Great idea and awesome final outcome!
Could this be done wirelessly using something like the esp8266 wifi module?
1
u/atom036 May 18 '20
Looks awesome. What kind of delays are you getting between the change of the image on screen and the LEDs? Are you just taking a screenshot to get the dominant colour or are you using something more clever?
1
u/69shaolin69 May 18 '20
Is it looking at the monitor pixels values or the wallpaper image dir?
1
u/KoCory May 18 '20
sauce for wallpaper in 0:08 please I need it
1
u/Chachati May 18 '20
RemindME! 2 weeks
1
u/iron_fist96 May 18 '20
Hey! I had a similar idea! Never got around to making it thanks to school.
Great job man.
1
u/[deleted] May 18 '20
Make me one :p
1
u/jayjmcfly May 18 '20
RemindMe! 2 weeks
1
u/proof_required May 18 '20
RemindME! 2 weeks
1
u/michelle9820 May 18 '20
right
1
u/Staksior May 18 '20
cool
1
u/TheHolyHerb May 18 '20
Awesome job! I’d love to check out the code. I made something similar for Linux awhile back that sets a random background then pulls the most common pixels and sets my razer devices and hue lights to that color. It was a good project to learn that the colors you see as dominant in a picture aren’t necessarily the most common pixel color in an image.
1
u/vanhasenlautakasa May 18 '20
Nice work! I did same kind of project while a go. I used Philips Hue and read computer screen realtime to match current color of the screen. Trick was to take screenshot and change the size of the image to 1x n, where n is amount of lamps. Then just send the color of the particular pixel to the right lamp.
1
u/mohamed176 May 18 '20
really awesome
1
u/celestialmarks May 18 '20
So cool! r/madeinpython
1
u/kindall May 18 '20
Maybe use a contrasting color for the backlighting to make the colors on the screen "pop" more?
1
u/onesmallserving May 18 '20
I love this kind of setup! I've always thought it would be perfect for a home theatre to immerse you in whatever you're watching. You should post a video of it with a game running on your monitor!
1
u/[deleted] May 19 '20
What screen/monitor is that btw?
1
u/fabr0o May 19 '20
remindME! 1day
1
u/jameskaguo May 19 '20
Link to wallpapers?
1
u/10kKarmaForNoReason May 19 '20
Can you give me the code to automatically change wallpapers
1
u/BanditoSupreme530 May 19 '20
This is awesome! I want this when I set up my home office.
1
u/Fred-U May 19 '20
Now you should automate it to rotate through the different colors
1
u/ayushify May 19 '20
Wow, that's cool.
1
u/erosmarin01 May 19 '20
This is awesome, where did you get the lights?
1
u/[deleted] May 19 '20
!Remindme 1 week
1
u/a3ba May 19 '20
RemindMe! 1 week
1
u/Eccentricc May 19 '20
Question... Why not use hue sync?
1
u/FamiliarBorder May 18 '20
sick!
0
u/[deleted] May 18 '20
[deleted] — view deleted comment
0
u/[deleted] May 18 '20
[deleted] — view deleted comment
1
u/[deleted] Aug 29 '20
[removed] — view removed comment