How are you "tracking" the position/motion? The motion detector can detect motion & distance, but distance is only important to know if there is target and if it's in-range. Or it could tell you if the target crosses in front of the weapon and then you don't need pan & tilt servos.
A camera is better for tracking in 1 or 2 dimensions but it needs more powerful processing & programming.
And I don't understand what the laser is for... The laser could be useful if you are aiming with a joystick.
A solenoid is more "appropriate" for the trigger but a servo might be easer because it has a built-in driver circuit and a solenoid requires a separate MOSFET or transistor driver.
I thought a laser would be a good idea in order for the user to know where the turret is aiming. I’ve also decided to stick with a servo for the trigger even though it isn’t appropriate since I just want to keep the project simple and not complex unless a solenoid would be required.
Thank you for showing me the video. I was able to learn from it and realized stepper motors would be more ideal as they operate smoother and can rotate 360 degrees unlike the limited range of 180 & 270 degrees of servos.
Updated Materials:
1 Pixy 2 cam (Has object detection)
2 Stepper Motors & 1 Servo
2 NEMA Stepper Motor (Base and joint)
1 SG90 (trigger)
12V Battery 4.5A (Battery minimum 12V for Nema Stepper motors.1.8*2 for Each Stepper motor + 750mA for SG90 = 4.35 ~ 4.5 for safety margin.)
7805 5V Buck converter for SG90 servo
Dual DRV8825 stepper motor shield driver board (Motor control of Stepper Motors)