ArduinoFlatBox - PC controlled lightbox implmented using the Alnitak (Flip-Flat/Flat-Man) command set found here: https://www.optecinc.com/astronomy/catalog/alnitak/resources/Alnitak_GenericCommandsR4.pdf
- Created By: Jared Wellman - jared@mainsequencesoftware.com here https://github.com/jwellman80/ArduinoLightbox
- Adapted to V4 protocol, motor handling added By: Igor von Nyssen - igor@vonnyssen.com
- Modified to work with servo motors by Marco Cipriani, (GitHub @marcocipriani01)
Last modified: 2020/December/06
Typical usage on the command prompt below. Please note that commands end in CR '\r' and responses end in LF '\n'. Neither end in both, so do not use Serial.println. The character in OOO
is the letter O, not the digit 0.
Send : ">SOOO\r" //request state
Recieve : "*S19OOO\n" //returned state
Send : ">B128\r" //set brightness 128
Recieve : "*B19128\n" //confirming brightness set to 128
Send : ">JOOO\r" //get brightness
Recieve : "*B19128\n" //brightness value of 128 (assuming as set from above)
Send : ">LOOO\r" //turn light on (uses set brightness value)
Recieve : "*L19OOO\n" //confirms light turned on
Send : ">DOOO\r" //turn light off (brightness value does not change, just the state of the light)
Recieve : "*D19OOO\n" //confirms light turned off
Tested with an Arduino Nano and the NINA imaging software (https://nighttime-imaging.eu)