Before more experience people chime in, here are my thoughts;
1) What do you mean by "double ping"? Do you have two US sensorsors, or one that you will attempt to ping twice? I assume you will be using two, since the latter option would introduce more complication.
2) What do you mean by "moving targets"? Will you have pre-set speeds, direction and distance? These are important factors.
If you have relatively slow moving objects (say less than 1 fps), a pre determined direction (so you kinda know where to "ping" first) AND a set distance (important when it comes to muzzle velocity and things like that), then you should have little problem using some trig functions to hit your target.
Even then, depending on the stability and design of your set-up, I suspect even a well calculated shot may miss every now and then. But, that would be part of the fun!
Please post your solutions and set-up! Sounds like fun.
An US sensor will give you limited range. They are really only good for less than 2 or 3 feet.
One option would be to have the set up as follows;
target moving ->.........US1..........US2.............Shooter
When the target passes US1 and US2, a timing calculation could be made at which point the shot is taken down the track. This would simplify things, and you could replace the US sensors with light sensors or maybe even touch sensors.
Also, some other reference information that appears to match these results;
I will take a look at it again...if I can get 250cms from it....will be great.
The NXT USS has a upper limit up to 255, each unit corresponds to 1cm.
The first 6~8cm are too short to be reliably detected, but then e.g. the range to 254 cm distant walls is trustworthy.
255 stands for "255 up to infinity", and often values of distances below 6cm also show 255 (that can be eliminated by a minimum filter, while values equal to 255 should be dropped for evaluation).
In my testing 8-100 cm seems fairly reliable, < 8 isn't usually any good, and > 100 will sometimes return 255 (unsuccessful measurement). The higher the supply voltage, the longer the range. The Ultrasonic sensor supply voltage is on pin 1, which is pulled up to the battery voltage (almost). The fresher the batteries, the stronger the ultrasonic signal, and the longer the range.
I'm all for gun control... that's why I use both hands when shooting
Users browsing this forum: No registered users and 4 guests