×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Arduino focuser and setting

  • Posts: 22
  • Thank you received: 0
I am coding my focuser based on Arduino/Motoshield board with the Moonlight protocol. I would test the communication between Ekos and the Arduino. For this I have generated /dev/arduinofocuser by udev linux command. From the INDI Control panel have set the Focuser="Moonligh" and the CCD simulator. At the first connection I had the problem that the port was /dev/ttyUSB0. So I clicked on the Connection panel tab and set these values /dev/arduinofocuser, Serial and speed 9600. I tried to connect again the focuser but I have the message:

"Error retreiving data from Moonlight, please ensure Moonligth controller is powered and the port is correct". Two questions:

Is the focusr configuration in EKOS right or I have missed something?
Does the Moonlight protocol expect an initialisation message at the first connection with the focuser or the choice Moonlight is wrong and for this reason I have to create my device?
Thank you
3 years 2 months ago #43264

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

  • Posts: 74
  • Thank you received: 10
Sergio, Have you fitted a capacitor to the Arduino on the reset pin to prevent the reboot at startup , I had issues with Arduino on Indi projects & the fitting of the capacitor has always sorted it . Using an Arduino Mini can also help as it appears as a mouse or keyboard to the computer or Raspberry Pi & gets around this issue.

Regards Alan
Raspberry Pi4B,ASI120MM -S Usb3, ASI385MC, Atik 428CCD, Canon 600D, NEQ6, EQMod, EQ5, AstroEQ, EQMod, Equinox ED80, ASI533MC, RedCat 51 ASI 120MM Mini.
3 years 2 months ago #43327

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

  • Posts: 22
  • Thank you received: 0

Replied by sergio on topic Arduino focuser and setting

Hi, I have solved. The problem was in the code because I hadn't implemented the first serial command at the Arduino switching on .
Last edit: 3 years 2 months ago by sergio.
3 years 2 months ago #43601

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

Time to create page: 0.384 seconds