An open API service indexing awesome lists of open source software.

https://github.com/devducks/sunshine

An opensource protocol and firmware for electronic camera rotators
https://github.com/devducks/sunshine

arduino astronomy astrophotography rotator

Last synced: 13 days ago
JSON representation

An opensource protocol and firmware for electronic camera rotators

Awesome Lists containing this project

README

          

# sunshine

Sunshine is an open source protocol to drive an electronic camera rotator for astrophotography.
You can find here the firmware that can be flashed on Arduino that implements the protocol.

## Protocol spec
Every command and response starts with a `:` and ends with a `#`

Look at the table for the specific commands

| Code | Response | Description |
|------|----------|-------------|
| :P# | :OK# | Ping command, nothign more, nothing less |
| :V# | :VXXX# | Query the firmware version, the response will contain major, minor and patch version of the actual firmware |

## Development
This firmware has 0 dependencies on external Arduino libraries.
To develop the firmware just clone the repo and use your favorite text editor (arduino ide is probably the best for this code)

## Tests
This repo contains also a test suite that should be used to test the firmware is behaving properly
once flashed.
The tests are writtten in `Python` and `pipenv` is used to manage the virtualenv, to run the tests follow these steps:
- plug your Arduino into your computer
- flash the formware via arduino IDE or avrdude
- run `make tests`

Since these are e2e tests a real Arduino board running the firmware is needed