I'm working on motorising my roll-off observatory roof and ultimately I would like to control it from Ekos.
I understand this would fall under Dome control but I would only need the park / unpark (i.e. Roof close / open) functionality and not the dome rotation that follows the mount.
I'm fine with the mechanics and coding on the roof controller side (probably an Arduino).
The question is: is there an existing INDI dome driver that I could use where the communication with the controller is documented? I could then write the controller firmware according to that protocol.
I have done something similar with my DIY motor focuser where I found a project with Arduino code that simulates a Moonlite focuser ("myFocuserPro" - sourceforge.net/projects/arduinofocuscontrollerpro/ ) and modified the code slightly to fit my focuser.
I have Arduino and .NET coding experience, but no experience whatsoever with coding on Linux / INDI.
And I also want to build a motorised dust cap with flat frame light source later. I would have exact same question for that project.
I have found this page on the INDI website that talks about a DIY dust cover but this is not the way I want to do it (connecting to the RaspberryPi I/O pins directly. It would have to be over USB. indilib.org/support/tutorials/165-diy-au...telescope-cover.html
There is one at github.com/wotalota/indi-rolloffino.git.
It is a INDI rolloff roof driver and includes two examples of Arduino programs communicating over USB. The driver is packaged as a third party driver but haa not been included with the standard distribution. The Arduino code needs to be modified to match the motor control selected, the INDI driver should work once installed.
See readme.txt for a brief overview of the communication protocol and INSTALL for build directions. After the build there will be rolloffino as an option under Dome when you edit the EKos profile. The driver works with the Observatory module and weather drivers as you would expect. I am presently using it with the Vantage, WeatherMeta and WeatherProxy for a RG11 rain detector.
For my install I used a Arduino Due with an Aleko gate motor. The 3.3V Due along with pull ups made the wiring more complicated than need be for the relay but I liked the extra USB port while debugging. The attached image shows an attempt at a matching diagram for the Arduino code. The relay & external power supply shown is and approximation just the only image of one I found.
I'm trying to use Dome Dcripting Gateway driver to control my roll off roof.
I wrote a python script that use the on board Rpi Bluetoooth to send an open/close command to an ArduinoNano board connected to my motor controller. If I execute this script, is a Python 3 script by the way (to import and use Bluetooth library) in the console works fine, but when I tried to use the same script in "unpark.py" to execute via Dome Scripting Gateway it didn't work.
What I'm doing wrong? Any idea?
Please excuse my ignorance.
I have reached to your GITHub page for the package.
I have managed to upload the code to an Arduino Uno R3. Changed the code to suit inputs and outputs.
Could you please explain how I install the Indi driver on to Kstars/Ekos on a MacOS.
Which of the files are associated with the driver and how to I get them on my MacOS to get it to show up on Ekos?
Which package are you trying? If it is the one I referenced it as only been used on linux machines that I know of. Being source files the instructions are for a linux build and install, patterned on what was seen in the third party drivers. Unfortunately I don't have experience MAC systems. It will require being familiar with MAC builds to get something that is able to be installed. Perhaps one of the script oriented packages might be more approachable?
Edit I ordered a basic mac, will see what is involved once KStars is installed.
Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro
Last edit: 11 months 2 days ago by wotalota. Reason: status update
I had to configure a roof with dome scripting gateway some weeks ago and ran in similar issues.
Did you set the folder containing the scripts as relative path? try to enter the full path.
And if you have any includes in the script itself, check the paths.
Check if it's not executed as a python2 script .
PS: just saw that your post is more than one year old. Guess my suggestion came too late...
There is an Arduino Roof as a driver option available from any of the the Aux drop down selections.
Is this currently only for non Mac Kstars/Ekos use?
What hardware will this connect to when used?