×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Need help for rotator project

  • Posts: 250
  • Thank you received: 3
Hi , porkyhttp

I had a problem when I wanted to download the code in my arduino.
here is the message
************************************************************************************
Arduino : 1.8.13 (Windows 10), Carte : "Arduino Uno"

C:\Users\garag\Desktop\Arduino\ArduinoRotator\ArduinoRotator.ino: In function 'void loop()':

ArduinoRotator:47:4: error: 'findHome' was not declared in this scope

findHome();

^~~~~~~~

C:\Users\garag\Desktop\Arduino\ArduinoRotator\ArduinoRotator.ino:47:4: note: suggested alternative: 'findingHome'

findHome();

^~~~~~~~

findingHome

ArduinoRotator:59:5: error: 'saveFocuserPos' was not declared in this scope

saveFocuserPos(stepper.currentPosition());

^~~~~~~~~~~~~~

exit status 1

'findHome' was not declared in this scope

**************************************************************
What do you suggest I do?

Thank you and see you soon
Christophe
3 years 5 months ago #62957

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
I use the 1.6.7 version. When you open the project, do you have multiple labels present on the Arduino IDE?


3 years 5 months ago #62971
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
You just adapt the code to works with this board. you have to change the libraries that control the motor driver.
My ideas was to have a rotor to move my optical train with oag+filterwheel+ccd, it could be very usefully in finding a guide star but when I found it then I need to rotate manually the ccd to correct the rotation made. The best could be have a double rotator, one part that rotate the guding camera and another that move the ccd.
I spent some days to adapt this arduino code that was origilly only for ASCOM, than i canged it to make it compatible with NiteCrawler INDI. It works with basically function
3 years 5 months ago #62972

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
thank you for the answer.
You use what as care arduino. I have the UNO for my tests.
3 years 5 months ago #62973

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
No problem if you use UNO or Nano boards
3 years 5 months ago #62979

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
Hi
So I was able to install the hard code on my card, but I wanted to see, without plugging in a motor, how kstars connects to the card.
But kstars can't connect, you have to put what, because **Moonlite** doesn't work and
**Moonlite Rotor INDI driver** I couldn't find it.

See you
Christophe
3 years 5 months ago #63003

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
You heve to select NiteCrawler that is the Moonlite Rotor

3 years 5 months ago #63030
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
Okay, I'll see when I get home.
But it seems to me that I tried and that kstars didn't manage to make the connection with the arduino card.

By the way, can I just connect the arduino without the engine driver to see if it's ok?
3 years 5 months ago #63037

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
so I tried, I put the right port in kstars(/dev/ttyACM0), but it didn't work, and I got this message.

2020-11-18T17:41:57: [INFO] Error retrieving data from NightCrawler, please ensure NightCrawler controller is powered and the port is correct.
2020-11-18T17:41:57: [INFO] Focuser Type 3.5 NC

or then there is something that I do wrong, should I configure something in the code according to the port?
and do you have a schematic of your setup

thank you for your help, it's nice to take time for me !

Regards
Christophe
3 years 5 months ago #63044

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
/dev/ttyACM0 ????? My system enable only /dev/ttyUSBx ports
3 years 5 months ago #63049

Please Log in or Create an account to join the conversation.

  • Posts: 250
  • Thank you received: 3
it seems to me that I can't choose because it's the default port of an Arduino Uno card.

We have to indicate the port in the code you gave me, because I searched and I saw nothing.
3 years 5 months ago #63050

Please Log in or Create an account to join the conversation.

  • Posts: 334
  • Thank you received: 23
I do not have a genuine arduino board, only clones. No changes are need to the arduino code. I will check but you have to wait next days.
3 years 5 months ago #63051

Please Log in or Create an account to join the conversation.

Time to create page: 2.558 seconds