Skip to content

An opensource protocol and firmware for electronic camera rotators

License

Notifications You must be signed in to change notification settings

devDucks/sunshine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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