Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

need a people counting circuit...urgent.

Status
Not open for further replies.

nistelrooy

New Member
i desperately need a simple/ relatively low cost people counting system to implement in my project.

Basically my PIC has to count the number of people in the room/and the temperature and adjust the speed of the fan.

There are plenty of temperature sensors i think...but i'm at a lost for a system to calculate the number of people..

it is an enclosed room with two exits.
 
You want to caculate on temperature how meany peapole are in the room?(its imposible)


Whats not hard to do!You make weals thru peapole go wean the weal rotates it hits a switch and the pic counts(a nother weal for out).
So it can know how much peapole are in.

And you conect a temperature sensitive resistor to his alnalog input.
To the ouputs a gegulator and its finished!

Or you nead a program?


PS:
Cocodile technology can write programs(graficly)!
You can use a PIC in your simulation and run program and thean upload it to a real PIC!
 
For counting number of people in the room, you need two IR-detectors and IR LED pairs attached to each door. So when the IR beam is interrupted in one sequence say Beam1 first and Beam2 second, it means that a person has entered the room. Increment the counter when this event occurs. And if its Beam2 first and Beam1 second, that means the person has left the room. This time decrement the counter.
 
What abaot in case two are walking togeter? its just comlicated and unificent!Its usefol in outomatic garage door openers so it detects if somthing is in the door frame wean closing/opening!
 
Then there is no other simple way of doing it.
 
thanks all..

the circuit has to detect the temperature, and calculate the number of people in the room.

Say for example the temperature is X and the number of people is Y..if the said figures are deemed uncomfortable, then the fan speed will be increased.

Thats the general idea. It should weigh the number of people and the temperature against each other and adjust the speed.

someone electro..do u have a circuit of that system you mentioned, i dont really understand what you said. complete with the program? or any useful links?
 
I didnt done anything whith PIC!

That program thing i made a "!" insted of "?".I fiksd that.

There is a simpler way to count is someone goes pas !Those rotating doors that let you go only one way(not motorised)

As for the regulator for the fan a have no idea!
 
Lots of ways to detect temperature with a pic
Since you want to use a 'F84, simplest way to do this (in my opinion) would be to get a **broken link removed** (other makes are available too). It uses a 2 wire serial bus connection to your pic.

I have to agree with the rest about counting the ppl in the room. The 2 sensor-beam idea is the simplest.

On the other hand, does it really matter how many ppl are in the room when you know the temperature? I mean, when you detect 35 degrees, you know its too hot, now mather how many ppl there are ...
 
good point exo..

i think i've adjusted the system so that the detector will automatically shut down the fan if it detects no one in the room.

Anybody know how to interface the IR sensor or photoelectric beam with a PIC?
 
You can also use DS1820 which has 1-wire interface and has accuracy of +-0.5 degree centigrade. Also it is available in extended TO-92 package which is easier to solder than SMD SOT-23 Package of TC74.


DS1821 is same as DS1820 but has in-built digital thermostat which you can use to change your fan spped or turn it on/off when threshold temperature is reached.
**broken link removed**
 
The build-up of CO2 in the room is just as important as temperature. This can cause the atmosphere to get very 'stuffy' and people get drowsy.
 
kinjalgp said:
Also it is available in extended TO-92 package which is easier to solder than SMD SOT-23 Package of TC74.

TC74 is available in TO220 package too.
 
Exo said:
kinjalgp said:
Also it is available in extended TO-92 package which is easier to solder than SMD SOT-23 Package of TC74.
TC74 is available in TO220 package too.

Oops sorry. I didn't notice that.
 
okay my supervisor as agreed on the IR detector method as mentioned by kingjalp.

I was adviced to purchase off the shelf products as much as i can...so where can i get my hands on 4 IR detectors which are reasonably affordable and how do i interface it with the PIC? (PIC16F84A)
 
IR Transmitter- Detector pairs are available...you can even buy them online. Do try and get them with datasheets, or you could land up in a fix with the ckt design!
 
Or the cheapest receivers you will get are these
1) TSOP1738 - 38Khz - Vishay Telefunken
2) SFH506-38 - 38KHz - Sony
These are used in TV's for remote singal reception and so are the most common.

With that you should use IR LEDs and an oscillator which drives these LEDs at 38kHz. Both these receivers, when detect a carrier signal of 38kHz pull its data output line low and in absence of cariier it is high.

You can use this method to avoid interference of ambient light on your system since it uses modulation.
 
if you want datasheets for components that you already have, u can search www.datasheetlocator.com

if you want to buy the products online, there are a host of sites, i can't give you many names offhand.

kinjalgp suggested TSOP1738 - 38Khz - Vishay Telefunken

u can get that on www.vishay.com

texas instruments has a homepage i don't remember the link i think its www.texasinstruments.com or www.focus.ti.com do try both!!

as for the rest, you can always do a google search, for eg. motorola components...something like that...you are sure to land up with a few good sites!

good luck on your search!!!
 
Just add a green button in the way in so each one press that putton when entering the room. Count up!
Another red button in the way out so each one press it when leaving the room. Count down.
Easy! :lol:

Nilo
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top