Need help operating an arduino uno and kstars(linux program)

Hello
so here it is, I created a little arduino program to open the roof of my observatory with buttons and limit switches.
But now, how do I get Kstars to control my program?
Or how do I know which command to write in "C language" to control my program that I can put in place of my OPEN and CLOSE buttons?

I'm telling you all right now that I'm starting in C language, so I think I'm missing a lot of things for kstars to communicate with my program on the arduino uno board.

thanks again for your help

got an answer on the INDI forum, but I don't know how to do it.

I have to put a driver at the beginning of my program, but how do I do that?
I put the guy's answer and the link he gave me.

Maybe the easiest way is to write an INDI driver. There is already an indi-duino package available in indi-3rdparty. It contains sample drivers for several use cases.

And I don't speak English very well, unfortunately.

What is Kstars ?

Do you have a link to its documentation?

Can it send messages over a serial port?

...R

ello
then Kstars/ekos and a Linux astronomy program that controls the telescope, camera and also an observatory.
It works with INDI drivers.
I'll put you some system links:

http://www.indilib.org/about/ekos.html

I see this in the second link you have posted

The comunication to the arduino board it is made using firmata protocol (http://www.firmata.org/) and the board has to be load with the standard firmata firmaware. This firmware is distributed with the Arduino-IDE programing tool. To load File->examples->firmata->standardfirmata

I have never used Firmata but it seems like this solves your Arduino problem and the rest is a matter of figuring out the Kstars or ekos system. And, sorry, but it would take me too long to figure it out and I have no personal interest in Kstars.

...R

constant1462:
ello
then Kstars/ekos and a Linux astronomy program that controls the telescope, camera and also an observatory.
It works with INDI drivers.
I'll put you some system links:

http://www.indilib.org/about/ekos.html

Custom Device

Like Robin, I have no interest in getting something like this working.
Not something useful for the resume. :slight_smile:

You may want to consider using a Raspberry Pi Ekos on Raspberry PI Beginner's Guide . Someone has done all the leg work.

.