Light control via infrared?

I’m trying to setup a wireless system to turn on/off some battery operated lights that are hung up in various locations. Think those battery operated Halloween hanging lamps

I was trying to figure out a WiFi/bluetooth answer, then I stumbled across an infrared diode setup ( like what is in your TV remote ).

I’m thinking a nano with a relay board and I’d be set.

Am I in the right track?

I’m thinking I would operate around 4 of these lamps with a Raspberry PI? There would be a fair amount of if then statements to tell them to turn on and off , which is why I’m complicating such a simple thing!

Posted Dec 27, 2023, 1:57 PM UTC

210
ripred3:400K: :Arduino_500k: :600K: Knowledge is like a candle flame•

I’m thinking a nano with a relay board and I’d be set. Am I in the right track?

Yeah that would work as long as you had a relay for each set of lights you wanted to control. A Raspberry Pi isn't really needed here.

Cheers,

ripred

1
other_thoughts•

why do people ask rpi questions in r/arduino?

1
ripred3:400K: :Arduino_500k: :600K: Knowledge is like a candle flame•

both hobbies attract the same groups of people?

2
Whatdoes42meanOP•

Because I’ll be using about 4 ( that probably be closer to ten of them) nano’s and controlling them with the pi?

2
other_thoughts•

maybe this link will be useful to you. https://youtu.be/C4Iig2AL74s?si=wVHbQsdBYwRuje43

1
Whatdoes42meanOP•

Thanks for the link, however, I’m wanting a few conditions met, among them, overall light level, whether the room is occupied, time of day, etc. The lights will be an automatic thing. No button pushing after its setup.

1
Whatdoes42meanOP•

I was thinking that each light would have a ir receiver and relay mounted on a nano

I wasn’t sure if I could control 4-10 receivers with an Arduino, or if I had to go up to a pi.

Thanks!

1
ripred3:400K: :Arduino_500k: :600K: Knowledge is like a candle flame•

yeah that many might take more horsepower, or split it across multiple arduino's

1
Whatdoes42meanOP•

I figured, now I just have to figure out the pi thing, I’m merely dipped my toes into the arduino.

1