×

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

Bi-monthly release with minor bug fixes and improvements

Writing my own driver (or maybe driving GPIOs?)

  • Posts: 86
  • Thank you received: 5
Hi there. I've been looking at motorised focusers and have decided that I'll probably just drive a stepper motor from the GPIOs of my Raspberry Pi [equivalent] using one of these:

www.schmalzhaus.com/EasyDriver/index.html

My question is: how would I go about interfacing this into Indi? Would I write my own driver to meet a know focuser API, or is there a generic way of driving GPIOs I could adopt or what would you recommend?

Rob
9 years 2 days ago #3744

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

  • Posts: 158
  • Thank you received: 2
Similar story! There is possibility to drive through GPIO in linguider (you just have to indicate the pins and export them) - would be very cool to see something similar in INDI B)
9 years 2 days ago #3747

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

You need to subclass INDI::Focuser class. Regarding the GPIO, use whatever SDK you're currently using to control them from the INDI driver.

It's fairly straight forward to create a focuser driver, you check out the focuser drivers shipping with INDI , and you can check the Focuser Simulator implementation. And don't forget to read INDI Developer Manual
9 years 2 days ago #3748

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

  • Posts: 158
  • Thank you received: 2
GPIO access doesn't need any SDK - kernel handles it directly and gives simple access :)

indiduino.wordpress.com/2012/12/03/focusser/ - this is close to solution, just need to switch to GPIO instead of serial. Btw, there is indi-duino? I don't see it in PPA...
9 years 2 days ago #3750

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

I'll add it to the PPA hopefully today.
9 years 2 days ago #3751

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

  • Posts: 86
  • Thank you received: 5
Excellent stuff, once I've purchased some bits I'll go and take a look.
9 years 2 days ago #3752

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

  • Posts: 983
  • Thank you received: 375
8 years 11 months ago #4084

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

Time to create page: 0.535 seconds