Does the Arduino COM port show in Stellarium ?
Yes is the com9
I may have missed it but I asked back in post #3 what software you had loaded onto your Arduino. Can you provide a link to it?
String inputString = ""; //dichiaro una stringa vuota per memorizzare i dati in entrata
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available()>0){ // ottiene byte in entrata
char inChar = Serial.read(); // legge il byte e lo memorizza nella variabile inChar
inputString += String(inChar); // aggiunge il byte corrente a inputString
delay(5);
}
if (inputString == "#:GR#"){ // se il comando ricevuto da stellarium è #:GR# (coordinata di AR)
Serial.print ("00"); // invia a stellarium il valore della coordinata AR: 00h
Serial.print (":");
Serial.print ("00"); // invia a stellarium il valore della coordinata AR: 00m
Serial.print (":");
Serial.print ("00"); // invia a stellarium il valore della coordinata AR: 00s
Serial.print ("#");
inputString = ""; // cancella la stringa
}
if (inputString == "#:GD#"){ // se il comando ricevuto da stellarium è #:GD# (coordinata di DEC)
Serial.print ("+"); // invia a stellarium il segno della coordinata DEC
Serial.print ("45"); // invia a stellarium il valore della coordinata DEC: 45°
Serial.print ((char)223); // char(223) si usa al posto di * per indicare il grado ° altrimenti ci sarà un errore nel file di log.
Serial.print ("00"); // invia a stellarium il valore della coordinata DEC: 00'
Serial.print (":");
Serial.print ("00"); // invia a stellarium il valore della coordinata DEC: 00''
Serial.print ("#");
inputString = ""; // cancella la stringa
}
}
Source : il primo sketch - epsilonphoto
Try to connect with the serial monitor closed.
Have a look at this forum post:
The code in post #5 is similar to yours. Note the problem and the solution that was give in post #7.
I'm guessing that you need to add in a CR & LF to your response message.
Change
Serial.print ("#");
to
Serial.println ("#");
inside both your if statements and see if that helps.
I'll try, thanks a lot for the help you are giving to me !!!
Still nothing stellarium cant start a connection

Hi there,
I have had the same issue. I have no idea what causes it, but if you do it on an older version of stellarium, it works like it should. Reading through the stellarium log files on my computer with version 1.1 shows:
ERROR creating TelescopeClientDirectLx200: cannot open serial device "COM6"
however on version 0.21.0, everything works as it should and it connects to the arduino.
If you need any other help with other aspects of the telescope mount controller, I have mostly finished making one for myself.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.