Door entry program?
clovato
Posts: 3
Has anyone written a program that can detect people moving into a room, turn a light on if people are in the room and then detect people leaving the room and if the number of people in the room becomes 0 turn the light off?
We are having trouble working out the entire thing. We made a flowchart. We have written a program but it appears not to function as we expected it to.
Any already written programs out there we can look at to get some ideas?
·
We are having trouble working out the entire thing. We made a flowchart. We have written a program but it appears not to function as we expected it to.
Any already written programs out there we can look at to get some ideas?
·
Comments
You could also use a 'PIR' sensor to detect the IR of the people in the room -- that's the more classic approach.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
This is a learning project for two of my 8th grade students. We used GW Basic last year and they did very well, but the Basic Stamp has them somewhat puzzled.
I would really like to see the coding for such a system so I could stear them in the right direction.