Small clarification
This commit is contained in:
parent
377b76ea0d
commit
5228b17e7a
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ If outside was the initial trigger direction, and inside the last, no matter wha
|
|||
|
||||
Most importantly, the sensor should be in the door frame, pointing down. The orientation of the sensor is also important, since you want it to increase the count for people walking into your room, and decrease the count for people walking out.
|
||||
|
||||
In the photos below you can see my current setup. The piece of cardboard is supposed to block sunlight from interfering with the sensor. Before the cardboard piece was attached, I had more issues with the sensors, especially in the morning, when sun was shining through a nearby window.
|
||||
In the photos below you can see my current setup. The piece of cardboard is supposed to block sunlight from interfering with the sensor. Before the cardboard piece was attached, I had more issues with the sensor, especially in the morning, when sun was shining through a nearby window.
|
||||
|
||||
The piece of cardboard is on the side of my room, which might help you to orient the sensor properly.
|
||||
|
||||
|
@ -99,7 +99,7 @@ If you walk in, it will increase the counter. If the counter is >0, the lights w
|
|||
|
||||
If you walk out, it will decrease the counter. The counter does not go below 0. If the counter reaches 0, the lights will turn off, otherwise will stay on.
|
||||
|
||||
Everytime someone triggers an event, the current state of the lights is checked. If the count should be 0, but the lights were on, it will be adjusted to 1, before applying the corresponding count (-1 for walking out, +1 for walking in).
|
||||
Everytime someone triggers the sensor, the current state of the lights is checked. If the count should be 0, but the lights were on, it will be adjusted to 1, before applying the corresponding count (-1 for walking out, +1 for walking in).
|
||||
|
||||
If the count should be >0, but the lights were off, it will be adjusted to 0, before applying the corresponding count.
|
||||
|
||||
|
|
Loading…
Reference in a new issue