Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: nanotechopolis_gr on May 22, 2013, 06:27:26 AM

Title: help for my turret
Post by: nanotechopolis_gr on May 22, 2013, 06:27:26 AM
hi
 i am working on making a turret that can detect a person  with 3 servos and 3 IRs, but the problem is that i cant make the whole system targeting the person ! any suggestions on how i can overcome this problem? please make the solution  as cheap as possible!

thanks guys

(sorry for my bad english)
Title: Re: help for my turret
Post by: jwatte on May 22, 2013, 03:15:29 PM
What is an "IR" ? Is it an IR distance sensor? If so, what range does it have?
What are the three servos? To drive the turret, or to drive the sensor positions?

In general, what you want to do is have the three sensors point in a 30 degree fan: slight left, front, and slight right.
Then, check which sensor has the nearest distance-to-something. Turn the turret in that direction, if any. If it's straight ahead, fire!
Use a cut-off of readings beyond which you don't do anything.
Also, if you don't have any detection, you might want to scan the turrent left and right to see if you can pick something up.

Finally: IR distance sensors just pick up "what is the distance to <whatever> in front of me" which may or may not map to a person. It may map to a pillar, or an infant stroller, or a dog, or whatever.
Title: Re: help for my turret
Post by: nanotechopolis_gr on May 23, 2013, 08:10:25 AM
oh sorry , yes distance sensor! i bought 3 of this http://grobotronics.com/distance-sensor-gp2y0d810z0f-el.html#.UZ4blcomOFg (http://grobotronics.com/distance-sensor-gp2y0d810z0f-el.html#.UZ4blcomOFg)  and 3 http://grobotronics.com/servo-springrc-sm-s4303b-4kg-cm.html#.UZ4cRcomOFg (http://grobotronics.com/servo-springrc-sm-s4303b-4kg-cm.html#.UZ4cRcomOFg)
they arent good?
i cant sychronize the servos to turn all togethet to my target! you know what i mean? maybe i cant programm it right!
thanks for replying  :D


here is my project ( its quite oh my god what is this?)

the first servo rotates the whole system right or left
the second turns up or down
the third turns up or  down the 3 sensors
Title: Re: help for my turret
Post by: jwatte on May 23, 2013, 01:54:55 PM
You can make that system work with the algorithm I described.
If you have specific problems with that suggestion, please post specific answers, including what you've tried and what happens versus what you expect to happen.