Am I ready to build a motion Tracking Nerf sniper?

Project Description:

  • A nerf turret that tracks motion and shoots
  • 3 servos, one each for the base, the joint, and the trigger
  • HC-SR04 to detect motion
  • Laser light for accuracy and aim

Materials:

  • 1 HC-SR04
  • 3 Servos
    • 2 MG996R (Base and joint)
    • 1 SG90 (trigger)
  • Lipo Battery 7.4V 2.2Ah
  • 7805 5V Voltage regulator
  • 3.7V Li-ion battery
  • Nerf gun
  • Small Laser device

Schematic:

Is it all correct? Are there any missing components or am I using the wrong ones?

Any tips would be very much appreciated! Thank you.

Hello ej_salga

Check the power input supply of the Arduino Nano V3x.

grafik

1 Like

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.

1 Like

The servo power supply must be able to provide at least 6 Amperes (2x2.5A for the MG996R, 1A for the SG-90).

The 7805 regulator can supply only 1 Ampere.

1 Like

How?

Am I ready to build a motion Tracking Nerf sniper?

No, your hardware list does not allow that.

1 Like

@DVDDoug I decided to take your advice and use a PIXY 2 camera as it has object detection. I found it on a similar project on Hackster.io. (Autonomous Nerf Sentry Turret - Hackster.io)

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.

@Whandall

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)

Update schematic here:

The Pixy 2 Camera is not included in the schematic because in the videos I have watched, the Pixy 2 connects to the Arduino with a USB.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.