Skip to content

PUT-PTM/2019_VisionNerfGun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisionNerfGun

Table of Contents

Overview

We created VisionNerfGun, the vision based Nerf sentry gun, with the automatic aim, and controll panel to use it with keyboard. Plus basic camera calibration software.

Description

Equipment we used:

  • STM32F407VG microcontroller
  • 1x Servo motor sg90
  • 2x Servo motors mg996r
  • Creative hd 720p camera
  • NerfGun Stryfe (in fact, any electric NerfGun will do)

Tools

How to use?

  • Download VisionNerfGun
  • Download and install needed plugins listed in setup.py into your Python environment.
  • Plug-in device and load the C program on it.
  • Connect servos to power source, and connect pan servo to PD12 pin, tilt servo to PD14 pin, and trigger servo to PD15
  • Check on what port you are using Virtual ComPort, and change it in the Python project
  • Use the objdetection.py program, and select:
    • (c) for calibrating your camera via saved chessboard images in chessboards directory,
    • (v) for calibrating your camera via live stream from camera,
    • (m) for controll panel for steering manualy,
    • (a) for automatic use,
    • (q) to quit.

Notice!

The image resolution and FOV can vary between cameras, this may cause rifle in real space misaligned. Also chessboard fields can be different in lenght (in project 1,3mm) and in amount of fields, this may cause calibration to be incorrect or impossible. Data after calibration is saved on disk as calib.npz and can later be used.

Future improvements

  • Custom NerfGun
  • Stronger servo to improve the action with trigger

License

MIT License

Credits

The project was conducted during the Microprocessor Lab course held by the Institute of Control and Information Engineering, Poznan University of Technology. Supervisor: Tomasz Mańkowski

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages