Offline
Newbie
Karma: 0
Posts: 3
|
 |
« on: December 09, 2012, 05:19:23 pm » |
Hello,
Obviously from my query; i am new at this. I need to have a PIR sensor, sensing a very general and rough count of people, then that count per a defined time interval (e.g 3 sec) will affect the output voltage. So the more people pass through a space, the higher the voltage (which in turn will activate another circuit). I can not seem to find a code that combines all those features, specially one that generates the output i need.
Thank you for your time.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
|
 |
« Reply #1 on: December 09, 2012, 05:21:12 pm » |
Hello,
Obviously from my query; i am new at this. I need to have a PIR sensor, sensing a very general and rough count of people, then that count per a defined time interval (e.g 3 sec) will affect the output voltage. So the more people pass through a space, the higher the voltage (which in turn will activate another circuit). I can not seem to find a code that combines all those features, specially one that generates the output i need.
Thank you for your time.
You should ask that at code forum.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #2 on: December 09, 2012, 05:29:42 pm » |
Hello,
Obviously from my query; i am new at this. I need to have a PIR sensor, sensing a very general and rough count of people, then that count per a defined time interval (e.g 3 sec) will affect the output voltage. So the more people pass through a space, the higher the voltage (which in turn will activate another circuit). I can not seem to find a code that combines all those features, specially one that generates the output i need. Is there any link for that or tutorials i've missed on the web?
Thank you for your time.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 314
Posts: 35518
Seattle, WA USA
|
 |
« Reply #3 on: December 09, 2012, 06:20:59 pm » |
I need to have a PIR sensor, sensing a very general and rough count of people, then that count per a defined time interval (e.g 3 sec) will affect the output voltage. That's not the way a PIR sensor works. It says "Yes, there is human body heat moving in my field of view" or "Nope, nobody's home". It does not say "97 people are here" or "22 people passed by in the last 12 seconds". You need a different sensor to count people, if 0 and not 0 are not enough.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6829
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #4 on: December 09, 2012, 07:48:40 pm » |
PIR sensors only tell you that there is something with a different temperature than the ambient in front of them. You cannot tell how many "somethings" there and IIRC they have binary outputs, 100 people or 1 person will give the same result.
If you are talking about reading the number of people in a room in very general terms, like "there are a lot" or "there aren't many" maybe you could use a thermal camera and count the hot bits.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #5 on: December 09, 2012, 07:50:49 pm » |
specially one that generates the output i need. You are welcome to use my patent-pending non-blind guy idea: hire a non-blind guy and whenever he sees someone, he punches a button on your arduino. At $12.75/hr, it is the best and most reliable people sensor money can buy.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6829
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #6 on: December 09, 2012, 08:14:46 pm » |
The last people-counter person didn't use that idea I think, maybe you should review your pricing.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6388
-
|
 |
« Reply #7 on: December 09, 2012, 08:28:16 pm » |
A PIR sensor can be used to detect movement, but unless you arrange things very carefully so that people are forced to move through 'turnstile' areas I don't see how it could be used to give any indication of how many people are moving into/through/out of an area. I would have thought that image recognition based on a webcam would be a more promising approach to try if you need to count people.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6388
-
|
 |
« Reply #8 on: December 09, 2012, 08:29:34 pm » |
Cross-posting is wrong.
|
|
|
|
|
Logged
|
|
|
|
|
UT
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #9 on: December 09, 2012, 08:33:25 pm » |
I know this isn't what you asked for, but GeoVision (ultra-kludgey but high tech & cool DVR, you'll pay hundreds for it though) has a function that does that. Maybe the video will help you with an idea, maybe not 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #10 on: December 09, 2012, 08:45:28 pm » |
Thank you all for your replies. I think i need to rethink this idea, perhaps have another component that counts how many 0 or 1 the PIR detects per a time frame.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6829
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #11 on: December 09, 2012, 08:50:01 pm » |
perhaps have another component that counts how many 0 or 1 the PIR detects per a time frame. I don't think that will help, you could have people in and out all day and numbers varying from 1 to 1000 and all you would know is that there was at least 1 person in the room for the entire day and that that person didn't stand still or fall asleep. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
California
Offline
Sr. Member
Karma: 2
Posts: 409
|
 |
« Reply #12 on: December 09, 2012, 09:28:26 pm » |
Simplest thing I can think of would be to use two trip beams to see people passing in front, and depending which one is first, see which way they are going like a rotary encoder. But this would require that only one person fit through the entry way at a time.
A PIR sensor is not going to count people well, even if you have more than one and set it up well. They trip whenever there is any change so you never know if it will trip just when someone walks by, or if it will trip again as they leave the range or if it will untrip/retrip while they are still in the range.
The conditions by which people will be able to enter/leave will be very crucial to this project if you want to accomplish it without video recognition.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
|
 |
« Reply #13 on: December 09, 2012, 09:41:19 pm » |
I don't think PIR will allow you to do this, my suggestion is to use openTSPS, it's an open source software that does video recognition, so you just use a webcam and it will do all the processing including counting number of person in front of the webcam. OpenTSPS uses OSC to communicate with other software, so you can use Processing to get this OSC value and transmit it to Arduino via serial or use the Firmata firmware so you can just do all the programming inside Processing. Seems to me that this is the easiest method. You'll need a computer for the installation though.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13897
Lua rocks!
|
 |
« Reply #14 on: December 09, 2012, 10:39:56 pm » |
Please do not cross-post. This wastes time and resources as people attempt to answer your question on multiple threads.
Threads merged.
- Moderator
|
|
|
|
|
Logged
|
|
|
|
|
|