The one obvious case that they didn't seem to cover is when two people are essentially one. What if two people are carrying a box into the room -- do they get counted as two or as one?What about something like this?
The one obvious case that they didn't seem to cover is when two people are essentially one. What if two people are carrying a box into the room -- do they get counted as two or as one?What about something like this?
You took what I said wrong."Stupid circuit"? Who said it's stupid?
Now we're back to waving arms like one of those blow up dancing banners at the automart.Go for a pir time sensor.
Not sure how complicated they are to wire up, but it looks like you can get the basic module for under ten bucks off Ebay. Hook it up to a Raspberry Pi Zero and you might be looking at $20 or less. Just a thought...Pretty cool. Probably more expensive than I'd want to go.
So having to get up and walk over to the door and bend down and get a hand out of the room without engaging the sensor and then swinging it back into the room being sure to engage the sensor is better than having to wave your arms from wherever you happen to be?Now we're back to waving arms like one of those blow up dancing banners at the automart.
Well sure, but then again, most of the sensor solutions in common use today for that matter can be pretty spotty. If you want a really robust solution, sensor fusion + AI would probably yield the best results.The one obvious case that they didn't seem to cover is when two people are essentially one. What if two people are carrying a box into the room -- do they get counted as two or as one?
Yes, but it acts as a toggle. The first AB sets Q, the next AB resets it. BA has no effect.Did you see the circuit I posted? (post #27)
Hmmm. Let's see. $20 at, say, $0.20/kWh would be 100 kWh of electricity that would have to be saved for breakeven. A 60 W equivalent LED bulb is usually about 8 W, so that's 12,500 hours that it would need to prevent the light from being on, or about 1.4 years. If it saves six hours of use per day (doubtful), then that's over five years before it pays for itself. If, as was stated at one point, the objective is to save money because even saving 15 cents important, then just give them the $20/unit once every four years and they are money ahead.Not sure how complicated they are to wire up, but it looks like you can get the basic module for under ten bucks off Ebay. Hook it up to a Raspberry Pi Zero and you might be looking at $20 or less. Just a thought...
Same here. Especially if I would just kick back for lunch and put my feet up.At one point I was the "guinea pig" for one of those devices in my office at work. It worked great, when I walked into my office the light came on automatically and when the office was unoccupied the light went off. However, when I was quietly sitting at my desk working, after its set time, the lights went off and I would have to wave my arm to get them to come back on. A real pain in the ass! Not to mention feeling like an idiot sitting in the dark waving my arms around. God Forbid anyone would have seen me doing it looking like some moron waving his arms in the dark.
Sensor array might be 18 inches off the ground. A child going through will trigger the switch.So having to get up and walk over to the door and bend down and get a hand out of the room without engaging the sensor and then swinging it back into the room being sure to engage the sensor is better than having to wave your arms from wherever you happen to be?
As I see it - when you block beam A you present D High. While beam A is still blocked and you continue into the room you block beam B and present Clock with a High. With data high when the clock signal occurs - you switch on. When leaving the room, the last state the flip flop (FF) was in was Q = High and /Q = Low. /Q is tied back to D (which is low). As you leave the room the first beam to be broken is B (clock). With D held low, when the clock signal comes - you turn the lights off. Now, suppose the first scenario where you walk into the room and the lights are on. A second person enters. Again, breaking beam A to force a high on D, then breaking beam B you present a clock pulse which, even though the light is already on you are again telling the switch you want the light on. Which it is already. When leaving, the first person out turns the light off. After they've exited, Q is low, making /Q high. However, with the right resistors, beam A is still holding D low. So when the second person exits, the first thing they do is present a clock (again, while D is low). The lights are reaffirmed to be off. A thousand people can exit the room and the light will be off with the first person to leave. And that doesn't mean the room will be pitch black. There's other light from other sources.Yes, but it acts as a toggle. The first AB sets Q, the next AB resets it. BA has no effect.
A single D FF, a couple IR sensors and an IR LED powered and pointed at a reflective surface will give two distinct beams. With just a few more pieces, a light can be connected. Perhaps through an AC Opto and Triac. Turning the opto on turns the triac on, which in turn turns the lights on.Let's see. $20
If on line A, the first resistor is a 10KΩ and the feedback resistor from /Q is 100KΩ then when A is low, D is at 90% low, which is equivalent of a hard low. When B is triggered, because A is effectively low then the clock signal will turn the lights off. The next person exiting will not set A high before the clock pulse (B). No toggling will happen.The first AB sets Q, the next AB resets it. BA has no effect.
If the sensors are close enough to the door the dog can't unbreak A when breaking B. And if the dog is going to be a problem and you don't have children under 30 inches tall, mounting at 30 inches above the ground will eliminate the dog or cat from triggering the lights.So the dog brushes against the closed door and the lights in the room go out when they walk away? Or perhaps more likely, an ongoing source of tricks being played on one child by the others.
I think this is going to give you all kinds of grief, or at least has the potential to.Yes, that would be a problem. If the lights are needed, the remaining child(ren) could simply wave their hand past the sensor to turn the lights back on. May be a pain for them, but so what?! They're kids. They can learn to live with adversity. Or jump over the beam so as to not turn the lights off on others. Make a game out of it.
And you KNOW kids are going to mess with each other, turning the lights on and off and being a general pain. The whole point is to turn the light off on the way out.
Using the flip flop idea, here's a basic drawing of what I think will work:
View attachment 212823
If you use a 10 kΩ and 100 kΩ resistors, then your /Q output is accomplishing nothing. You haven't said (that I've seen) what logic family you are using, but let's assume 5 V CMOS and that your PIR output is also 5 V logic (and let's assume that it is actually a solid 0 V and a solid 5 V).If on line A, the first resistor is a 10KΩ and the feedback resistor from /Q is 100KΩ then when A is low, D is at 90% low, which is equivalent of a hard low. When B is triggered, because A is effectively low then the clock signal will turn the lights off. The next person exiting will not set A high before the clock pulse (B). No toggling will happen.
There is something to be said for the point being made here.Hey Tony,
As father of three beautiful daughters and ten fantastic grandchildren (so far)*, I can't imagine making something that would make them think any less of me. It needs to work as proposed. The HF business model doesn't cut it. Not with my girls.
* I also have a son who is not married yet and has no children to speak of.
HOW is the key the feedback resistor from /Q???@WBahn That's why I'm here asking for assistance.
When Q is low /Q will be high. When you walk into A data D will be confirmed to be high. When you walk into B Q will be set high and /Q set low. With Q high the lights are on. As you exit, B reestablishes itself and there is no clock pulse. With Q high, /Q is held low. Upon exiting you walk into B. /Q is low, D is low. So the clock signal will drive Q low. Lights out.
Look! If I'm wrong - I'm wrong. Can someone present a better way without suggesting PIR's or counters or other things? I'm willing to listen. I haven't listened so far because it seems nobody sees what I believe I see. I think AB will turn lights on and BA will turn them off. The key is the feedback resistor from /Q. At least I think that's the way it will work.