Children room lamp with remote control. Mini Pro + 12 x + relay card.

Children room lamp with remote control.
arduino Mini Pro + 12 x #WS2812 + relay card.

Code: GitHub - artur3/Lamp: Lamp for children room, Arduino Mini Pro, 12 x WS2812 (FastLED), IR remote control (IRLremote), relay card

That’s sweet, looks great! How does the photocell work with the setup?

@marmil Do you mean IR receiver? I’m using IRLremote and everything seems to be working OK. LEDs sometimes blink or randomly changes colour but I think this is not related to IR libs (adding 1000uF cap helped a lot).

Nice job making the wiring all fit, too!

I might be confused as to what I’m seeing. It looks like there’s a photocell on the opposite side of the board from the piezo buzzer.

@marmil There is a photo resistor on that board. You can zoom in on that picture to see it on the bottom right of the board.

Thanks Jon, I’m using the wrong term for the photo resistor. Yes, that’s what I’m asking about.
I’m wondering how is it integrated into Artur’s setup?

@marmil ​ I want to add some kind of motion detector (people counter, light barrier) and the photo resistor is for preventing switching on at day.
If somebody is interested I can upload the code.

Ah that’s a cool idea. Yes, I would be interested in having a look. Thanks @Artur_Koziol ​.

@marmil ​ link to the code is in the post.