×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Need help for rotator project

  • Posts: 250
  • Thank you received: 3
hello
thank you very much!!
I will try to see how it works, and if I can adapt it to my motor for my test that the 28BYJ-48 stepper motor.

But I'll probably need help to install the driver correctly.
Because unfortunately I don't have a lot of experience with linux yet.

Best Regards
Christophe
3 years 4 months ago #62915

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

  • Posts: 333
  • Thank you received: 23
Yes it could be modified to use othe motor boad and libraries.
You do not need to install nothing, it is compatible with Moonlite rotor NiteCrawler that is fully supported end included with INDI-FULL
3 years 4 months ago #62916

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

  • Posts: 163
  • Thank you received: 26

Replied by Bart on topic Need help for rotator project

Thanks for sharing Porky,

I'll also have a go at it.

I still use this simple experimental board for the focus motor, which works perfect with Moonlite protocol.


Could also work with your code, I presume. It has slots for more drivers, so maybe the two protocols can be combined somehow??
Something like a modular driver board. (And a third for maybe a lens cap motor)
3 years 4 months ago #62934
Attachments:

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

  • 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 4 months ago #62957

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

  • Posts: 333
  • 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 4 months ago #62971
Attachments:

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

  • Posts: 333
  • 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 4 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 4 months ago #62973

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

  • Posts: 333
  • Thank you received: 23
No problem if you use UNO or Nano boards
3 years 4 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 4 months ago #63003

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

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

3 years 4 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 4 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 4 months ago #63044

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

Time to create page: 1.418 seconds