Giter Site home page Giter Site logo

giordyb / azeltracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ajohns1288/azeltracker

0.0 1.0 0.0 51 KB

Arduino firmware to control https://www.thingiverse.com/thing:4664558

License: GNU General Public License v3.0

C++ 90.82% C 9.18%

azeltracker's Introduction

AzElTracker

Arduino firmware to control https://www.thingiverse.com/thing:4664558, designed by jbyrns

This project started as a class project and was designed to be compatible (enough) to work with gPredict/rotctrld. It seems to run pretty well.

Items Needed

1x Arduino Nano or equivalent

2x A4988 Stepper Boards

2x Stepper Motors

1x Small Magnet

1x Hall effect switch

How it works

1: At startup, the azimuth is assumed to be due north (0deg) and the elevation runs a homing routine

2: Once homed, serial port is polled for commands from external program.

3: Rotors can be moved indepentently as well as together. Each can rotate continously or to a set position.

See section below for implemented commands

Commands

Command enumerations based on GS232 Protocol; works with 'rotctld -m 606 -r /dev/xxx' on RaspPi

CMD_R 'R' - Move right continously

CMD_L 'L' - Move left continously

CMD_U 'U' - Move up continously

CMD_D 'D' - Move down continously

CMD_STOP 'S' - Stop all axes

CMD_STOP_AZ 'A' - Stop azimuth only

CMD_STOP_EL 'E' - Stop elevation only

CMD_SPEED 'X' - Xs - Set speed to x (Azimuth only, 4: fast 1: slow)

CMD_MOVETO_AZ 'M' - Mxxx - Moves to azimuth xxx

CMD_MOVETO 'W' - Wxxx yyy - Moves to azimuth xxx, elevation yyy

CMD_GET_AZ 'C' - Display azimuth position only (NOTE: C2 will display both axes)

CMD_GET_EL 'B' - Display elevation position only

//Non-Standard GS232 Commands

CMD_DEBUG 'Q' - Displays current positions/status/modes of rotor

CMD_SET_HOME 'F' - Unimplmented, may be used to set current position as home in future release

Drawbacks

Stepper motors do not have feedback. If the motor stalls or skips, your position will be off

Future Work

Implement compass/accelerometer as position sensor input.

azeltracker's People

Contributors

ajohns1288 avatar giordyb avatar

Watchers

 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.