Git Product home page Git Product logo

tracking-turret's Introduction

Tracking-Turret

A motion tracking turret for https://www.youtube.com/watch?v=HoRPWUl_sF8

Install Guide

Make sure pip is installed.

sudo apt-get install python pip

Setup I2C on your Raspberry Pi

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

Install the Adafruit stepper motor HAT library.

sudo pip install git+https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library

Install OpenCV 3. Follow all steps for python 2.7 instructions

http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/

Make sure to create your virtual environment with the extra flag.

mkvirtualenv cv --system-site-packages -p python2

Source your bash profile

source ~/.profile

Activate your virtual environment

workon cv

Clone this repository

git clone [email protected]:HackerHouseYT/Tracking-Turret.git

Navigate to the directory

cd Tracking-Turret

Install dependencies to your virtual environment

pip install imutils RPi.GPIO

Run the project!

python turret.py

Setting Parameters

turret.py has a couple parameters that you can set.

### User Parameters ###

MOTOR_X_REVERSED = False
MOTOR_Y_REVERSED = False

MAX_STEPS_X = 30
MAX_STEPS_Y = 15

RELAY_PIN = 22

#######################

These will be located at the top of the file. Use vim turret.py to open the file. Press i to edit. Once you've made your changes, press esc then ZZ to save.

tracking-turret's People

Contributors

atainter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.