V
V
Vladimir2015-09-06 16:55:34
Arduino
Vladimir, 2015-09-06 16:55:34

How to generate lighting control logic using arduino?

Good day. I thought about controlling the lighting at home with the help of arduino and rangefinders. (I don’t have an arduino yet, I don’t know how much and what to order yet)
Suppose there is a one-room apartment. Naturally, there is lighting in the hallway, bathroom (toilet + bath), kitchen, hall. how can I build the application logic so that the arduino itself understands where the light should be turned on.
A reed switch is hanging on the front door (if the readings on the other sensors do not change (logic "AND")), the light turns on in the hallway and, regardless of the readings of the sensors in the hallway (in this case and hereinafter, the sensor is understood as a rangefinder) remains on 4-5 minutes.
If after the allotted start time the readings of the sensors do not change -> the light turns off.
If the values ​​on the sensors change from the hallway to the hall, then the light in the hall turns on and after another couple of minutes the light goes out along the way.
If the values ​​​​on the sensors change from the hallway to the kitchen, then the light in the kitchen turns on and after another couple of minutes the light goes out along the way.
...
the sensors are supposed to be placed on the walls every meter in order to exclude erroneous responses.
from the kitchen to the front door 4 meters, from the hallway to the hall 3, from the kitchen to the bathroom 2 meters.
is such an implementation possible (there will be no web servers, screens and other notifications), which arduino would you recommend, how many rangefinders will be needed, ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Chernysh, 2015-10-08
@chernish2

I'm not sure I fully understand you, but why is everything so complicated?
If there is only one room, then several motion sensors should be enough.
Certainly not every meter.
Implementation is of course possible, any arduin can handle it (but one arduino will not be enough, more strapping will be required).
But I would suggest starting with a formalization of the criteria - for what and how exactly where do you need to turn on / off the light bulbs? For a cat/child/adult? What if an adult spends an hour on the couch? And in the bathroom? Etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question