Giter Club home page Giter Club logo

indi_arduino_cap's Introduction

INDI Arduino Cap


Summary

INDI Arduino Cap is a dust cap 'driver' compatible with INDI and EKOS, that uses the python library pyfirmata. Arduino Cap uses an Arduino with the StandardFirmata firmware. This will work with a 'rc style' servo on any of the digital PWM outputs. Most servos is 4.8v-7.4v and a old phone charger or similar would work as a powersupply. If you use a servo that is not 4.8v then change powersupply accordingly.

You can also (optionally) install USBRelay2 Roof, and use a relay channel as a (fixed/undimmable) lightsource.

Attributions

  • This project could not be done without the existing INDIlib project or the pyFirmata interface and standard firmata arduino firmware.
  • This project is 3rd party and dependent on the mentioned projects, and licensed accordingly. See LICENSE and COPYING.BSD.
  • Some files have additional lisence information, see file headers.

Installing dependencies

  1. INDILib, and it's dependencies

  2. PyFirmata, and it's dependencies

  3. (Optional) INDI USBRelay2 Roof, and it's dependencies

Install INDI Arduino Cap

  • Install
    $ cd ~/Projects
    $ git clone https://github.com/magnue/indi_arduino_cap.git
    $ mkdir -p build/indi_arduino_cap
    $ cd build/indi_arduino_cap
    $ cmake -DCMAKE_INSTALL_PREFIX=/usr . ../../indi_arduino_cap/
    $ sudo make install
    
  • Update
    $ cd ~/Projects/indi_arduino_cap/
    $ git pull
    $ cd ../build/indi_arduino_cap
    $ sudo make install
    

Screenshots

Calibrate

  • Configure Servo ID, Flat Light device, calibrate travel limits, prefered limits, and optionally reverse servo direction.
  • To configure a USBRelay2 channel for light source, make sure atleast one Power device is added to the "Device Setup Tab" of USBRelay2 Roof. Take a note of the "dev x" number. In ServoBlaster Cap's "Calibrate tab", set "Flat light device" to "x", and make sure Light Device is set to "use USBRelay2" in ServoBlaster's "Options Tab".

Calibrate tab image Options tab image

Main Control

  • Not much to it. Parked = closed, UnParked = open - ready to image.
  • Parking Cap will turn off lightsource, and lightsource can only be operated when Cap is unparked.
  • To find Max travel limits, use 'step to (degree)' starting at 40, then decreasing until servo does not move any more. This is your close limit. Then set a value of 120 and increase until the servo does not move any more. This is your open limit.
  • If servo is moving the wrong direction for the cap to close on park, and open on unpark, then swap one max travellimit for the other, in calibration tab.
  • When installing cap for the first time, then set close limit to ~70%, then park. If the cap is not fully closed on the scope, then increase the limit to ~75% and unpark - park. Continue incrementing this until the cap is fully closed on the scope, and you have your preffered close limit.
  • If you want the cap only to open to 70% of the open limit, set Prefered limit open to 70%.

Main tab image

indi_arduino_cap's People

Contributors

magnue avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

zworkb

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.