Help with motion tracking
NosePicker
Posts: 54
I want to create something that will track motion around an area maybe 50' +/- in diameter. I invision having something like a 6 inch diameter by 2 foot long piece of plastic pipe standing/mounted on one end. The pipe would have some type of motion sensors all the way around it near the top. I could store the batteries and circut inside the pipe. Then I want to have a controller receiving feedback from the sensors so that it can control a servo to point a camera at the moving target. The camera would be attached to some type of rod coming out the top end of the pipe. This would be for outdoors. I do not need to worry about fast things such as a car riding by at 50 mph or a baseball being thrown. What I want to track would be someone walking by or pets or something like that. As phase two of the project I will want to be able to tell the camera to wake up and start recording or snap a photo depending on settings so I will need a control that can handle that but for now I just want to see how quickly I could get the motion tracking portion working.
I have no idea what parts would be needed for this project, all I know is I need sensors, a controller, a servo motor but I don't know actual parts. I was hoping someone could give me a list of parts I could buy so I could quickly get this phase of the project up and running. Thanks for any help and/or advice you can give.
Wayne
I have no idea what parts would be needed for this project, all I know is I need sensors, a controller, a servo motor but I don't know actual parts. I was hoping someone could give me a list of parts I could buy so I could quickly get this phase of the project up and running. Thanks for any help and/or advice you can give.
Wayne
Comments
http://www.irisys.co.uk/
We used a Kalman filter and development took several man-years.
Another thing you could do is to use a couple of sound sensors on 2 sides of this thing. That's assuming that your target is producing sound. The farther apart the sensors are the better. You could compare the intesity of the signal from both microphones and decide which way to turn. You'd keep trunning until the signals are at the same level. That would require some nice processing as well but that wouldn't be as complex as the image capture. More sensors would be required if you need 2D tracking.
Talking about DSPs and MIPS... I used TI DSPs in the past. The VLIW architecture? OMG! The peak MIPS on these puppies with 1GHz clock is 8000MIPS (8GIPS?)...
While here I may as well add I am thinking I would like a sensor that has a fairly narrow field of view. This would allow me to have more sensors and thus better at pin-pointing the direction. Also is the motor part really a servo motor or is that what would be called a stepper motor or are they one in the same?
Oh yeah and I don't want to use sound sensors... I really need to use motion sensors which I understand really detects a change in tempurture but none the less not sound.
I have a project using Hanno's method myself. (It's on hold for a bit.)
Duane
Can someone help me quickly build a circuit where I have a motion sensor and if someone walks by I turn on an LED?
Thats it .... thats all... nothing more,,, nothing less....
I need to know what part number(s) the sensor is (possibly how to determine the "field of view" for different sensors) and what would be the easiest way to get a prototype circuit for the controller as far as power regulation, etc... some type of starter board?
I am capable of writting code in C or Basic but not Assembler.
Then the next question would be... using the same circut from above instead of having the controller turn on an LED when someone walks by I want to turn a servo/stepper motor to point 180 degrees different than it is currently pointing. then the next time someone walks by it will turn back 180 degrees to where it was the first time.
Again, I need to know a part number for the motor and any reference to how to build the circuit and code sample to move the motor.
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/PIR/List/0/SortField/4/ProductID/83/Default.aspx
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/Motion/List/0/SortField/4/ProductID/606/Default.aspx
Servo? You have to size the servo based on the size/weight of the thing control. I would make a model first with just reqular $10 RC servos. The servos are usually controlled with PWM. You can find many examples on how to generate the 1.5ms +/- 0.5ms pulses to control servo movements... I said 'trivial' because you have to firgure out the motion sensor first which will be the hardest part...
Good question. I usually put the PIR at the back end of a PVC tube (3"-5") to narrow the field of view. I have been known to use paper towel tubes, painted back, for indoor applications.
But I think what the OP wants is to look at OpenCV
That would let you track shapes, blobs, or colors. Not going to be done on a Propeller though.
I wonder if you had several non-contact IR thermometer guns (like http://www.harborfreight.com/infrared-thermometer-93984.html ) and made a moving array, could pick out and track a 98-degree human against a cooler background?
Alternatively, you could have multiple PING sensors in an array. For use in a fixed environment, you could either have a dozen fixed PINGs facing outward radially, or maybe 3 PINGs on a turntable, indexed to a dozen locations 30 degrees apart. You could map & store the empty environment distance measurements, then compare those to live values to track a target big enough to be detected.
http://www.radioshack.com/product/index.jsp?productId=2906724
I don't understand what you are accomplishing with that motion. Do you want something to just track a moving object so you can take photos of it, or.... what's with the 180 degree movement? to store the camera? keep it hidden?
The only real issue is the maximum distance it can measure. According to the DS the limit is about 10 ft.
You might want to think about what happens if you detect more than one moving object in the field of view - does it track the first one, the second, or try and do both and burn-out!
Also here:
http://media.digikey.com/pdf/Data%20Sheets/Panasonic%20Electric%20Works%20PDFs/AMN%20Design%20Manual.pdf?cshift_ck=null&client_id=5042
The filter in front of the PIR sensor is called a Fresnel lens. That's usually there to make the motion detection angle really wide. Replacing it with a regular lens will drastically reduce this angle and that's what you want. Some experimenting will be required though with the lens placement.
Just my $0.02
Duane
Yes, when sunlight flickers through the leaves of trees, for example, it can sometimes set them off. So can distant heat sources, like campfires, etc. playing off the rippling of water.