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
- Host: GitHub
- URL: https://github.com/devducks/sunshine
- Owner: devDucks
- License: mit
- Created: 2023-01-09T10:49:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-17T08:59:44.000Z (over 3 years ago)
- Last Synced: 2025-03-28T20:43:50.853Z (about 1 year ago)
- Topics: arduino, astronomy, astrophotography, rotator
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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