No description
Find a file
2022-06-10 01:28:23 +03:00
.vscode add gyverstepper library 2021-02-03 21:00:53 +03:00
include add gyverstepper library 2021-02-03 21:00:53 +03:00
lib refactor and new library addition 2021-02-07 01:34:08 +03:00
src Add ability to configure through serial messages 2021-04-24 18:21:17 +03:00
test add gyverstepper library 2021-02-03 21:00:53 +03:00
.gitignore add gyverstepper library 2021-02-03 21:00:53 +03:00
platformio.ini Added new features (functions), updated readme 2021-02-10 00:18:39 +03:00
README.md Update readme to reflect repository rename 2022-06-10 01:28:23 +03:00

Abserver_arduino

Arduino code made to work with abserver_rpi project

Hardware

Original project board - Arduino nano (Atmega328P)

Drivers - DRV8825/A4988

Soldered on breadboard, but PCB Coming Soon!

API

Commands are sent over serial port at 115200 baud rate. You can change baud rate by your preference, but 115200 is the fastest baud rate with 30cm cable that is stable, and is not slow enough to be noticeable.

API is made using ArduinoJson library.

Sample message:

{"n" : *action_name*, "p": *action_params*}

Actions list


Developement stages:

  • 🌑 - not implemented, but planned
  • 🌗 - implemented, but not finalized and tested
  • 🌕 - implemented and tested
Command Description Impl. status Params
ping Returns pong and firmware version 🌕 None
moveto Aims telescope at given cordinates 🌗 ->🌌<-
move Aims telescope at relative cordinates 🌕 ->🌌<-
track Starts compensating for earth rotation at set position 🌗 ->🌌<-
config Used for parameters configuration 🌗 ->🌌<-
stop Stops all steppers 🌕 None

Ping

  • Returns arduino firmware version to check the compitability of APIs

Response:

{"type": "pong", "vesrion": *firmware version*}

MoveTo

Params:

  • "ha" - Hour Angle of an object
  • "dec" - Declination of an nedeed object

Example:

{"n": "moveTo", "p": {"dec": 35.5}}

Move

Params:

  • "decDiff" - the declination angle you you want to move your telescope on
  • "haDiff" - the hour angle you want to move your telescope on

Example:

{"n": "move", "p": {"decDiff": 10}}

Track

Params:

  • "t" - Time to automatically stop tracking

Example:

{"n": "track", "p": {"t": 500}}

Config

Params:

  • "reportFrequency": float - Report frequency for the status message. High frequencies can interrupt tracking. Will be fixed in future updates.

Example:

{"n": "config", "p": {"reportFrequency": 0.25}} //Every 4 seconds

Other features coming soon...