# Can I use a PIR sensor on a home made sonar?

I'm currently building a sonar running off an arduino. My radar includes an ultrasonic sensor that will detect the distance an object is sitting at, and a servo motor that the sensor will sit on top of. I was wondering if it was at all practical to use a PIR sensor with this setup so that the radar will be able to detect people instead of just inanimate objects. I'm worried that while rotating, the sensor might just constantly stay high if it sees any moving person.

I have no prior PIR sensor experience and that is why I was hoping someone with some experience could let me know if this is worth pursuing or if will be too much of a problem.

The range of this sonar isn't too important. Although I would like it if it could scan several meters, under 1 meter would still be fine.

• sonar!=radar... you can't rotate an ultrasonic distance sensor and measure with it at the same time; it needs to be still and have enough time for the sound reflections to arrive. the PIR should be independent. – dandavis Mar 25 '17 at 23:57
• Yes I mean sonar not radar, I will edit the post. And in the practical sense, ya I cant do that, but this thing only has a range of a couple of meters at most so as long as it is rotating slow enough, that shouldn't be an issue for the ultrasonic distance sensor. – Sheriff Mar 26 '17 at 0:37
• no, you have to stop stop until the bounce returns or accuracy will be way off or not working at all. you have a stepper, so that's not a problem. a pir or two might help to avoid the constant noisy pulse rotation. – dandavis Mar 26 '17 at 11:44
• @dandavis - yes you can. That's how a grown up radar works. It's just that you have to be careful regarding the angular speed and effective beam divergence angle. – Paul Uszak Apr 15 '17 at 20:37
• @PaulUszak yes well light moves pretty fast by comparasion. For OP: Instead of a PIR sensor you might consider a infrared distance sensor. Its much cheaper than a PIR sensor (you can get ones for 50 cents easily though better ones cost more) and is analogious to the ultrasonic sensor... only its more sensitive to surface reflectivity than the ultrasound. Or you can just get a lidar... – joojaa May 16 '17 at 16:02