i have a project called "room light controller with person counter"im using Atmel microcontroller. i dont really have idea/s how to start.can anybod help me?
That's a very broad project description. We will need more info to help.
those were really nice questions. i think i have to study the project again to anwers all those. ill be posting again. thanks JAX
im using infrared sensor to count visitors/persons going in and out.the more person inside the room, the more lights will be turned on.im using AT89S52 as my uC.
im actually a beginner in uC project. its just my 2nd time to do a uC-based project. so im not well-informed. but i love making and doing this kinds of things. i think its my passion
design limitations i think will come along the way. hahahaha thanks btw
It would be cool to have the room get brighter as more people come in lol. Just for fun
yeah! actually that's the main idea. when the last person leaves the room, the lights will automatically turn off
a person counter is simple.
use multiple ir sensors to determine which way people are going by what sensor is triggered first.
in terms of code you have to create a variable and have it changed by inputs from the sensors.then use that value as a condition for triggering the action on the lights.
woah. that is a real help. thanks.
You might take a look at my bird box gate
What sort of environment is it? Public space, home, office?
Personally, depending on how many doors are in the room, I'd do something like have two IR beams across the door, then the order in which they're triggered will tell you in what direction the person is walking.
Then some IF routines saying "if sensor says 'in' then people count goes up 1" and vice versa, and "if people count is zero then turn the light off"
Geir's bird box is a really good example, especially the error checking stuff :)
what you and DaveyJones are suggesting is like a horizontal quadrature encoder. The sensors will need to be close enough together to only allow one person to trip them and not close enough together that one person can trip both. Otherwise, the count will be off.