Motion tracking PIR and sound sensors...

Hey everyone, I am in the process of planning a new project and seem to have hit a wall, figured i would ask for some assistance/suggestions.

Essentially, I am trying to make a robot head, using two (or three) PIR sensors, two sound sensors, and two servo motors. I was thinking the PIR sensors would be for left, right, and above, and the sound sensors for left and right- upon being triggered, the head would rotate in the corresponding direction (left/right or up).

I wrote a more basic/crude version of this a while back, using only two PIR sensors and one servo motor (for left and right), but it would only turn to a set angle and wasn’t very effective at tracking, so if it moved in one direction and got triggered in the other direction, it would move too far in the other direction when it should have turned center, for example.

Any suggestions or help is appreciated, even if it requires additional hardware or some sort of feedback loops I am unaware of. Thanks!

Well, not Arduino, but I am planning a Halloween prop of a full-size skeleton that the head will follow people as they walk by. I would love to do it with Arduino hardware, but I am using OpenCV on a Raspberry Pi Zero. The OpenCV will do basic face-recognition using a camera on the Pi Zero, then the Pi will send servo signals to keep the person in the center. Don't ask me for code- it's still in the planning stage.

PIR sensors are not very directional and respond to the motion of a warm object anywhere in the field of view.

Thermal imaging sensors are directional, and can be used for tracking people or other warm objects.

Ooof, $40 though? Will have to start savin up

Actually I think I have an idea- I’ll try to use three PIR sensors for now, one for left, right, and center, and I’ll program it so if one on either side is triggered and the center sensor is NOT, it will rotate in that direction (so that once the center sensor is triggered it will stop).