×

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

Bi-monthly release with minor bug fixes and improvements

Servos in Indiduino

  • Posts: 29
  • Thank you received: 2

Servos in Indiduino was created by Clément

Hello,

I needed to control servomotors from INDI (plugged on an Arduino connected to my Raspberry Pi), and I noticed that Indiduino does not support them, whereas Firmata already has those capabilities. So I implemented it, here is a first draft, what do you think?

There are 2 possible usages with the servomotor:
  • Enter manually the angle
  • Configure the open/close angles of the servomotors in the XML skeleton, and use the switch to open/close

The XML skeleton demonstrates those 2 modes, on all the PWM pins available on the Arduino Uno. In this example, the open/close positions of the servos are 10 and 150 degrees.

File Attachment:

File Name: indiduino....atch.txt
File Size:25 KB


File Attachment:

File Name: indiduino.h.patch.txt
File Size:3 KB


File Attachment:

File Name: servo_sk.xml.txt
File Size:4 KB


File Attachment:

File Name: indi_duino...ch-2.txt
File Size:2 KB
Last edit: 7 years 10 months ago by Clément.
7 years 10 months ago #8521
Attachments:

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

  • Posts: 29
  • Thank you received: 2

Replied by Clément on topic Servos in Indiduino

I would like to use these features on my Raspberry Pi, but I don't how to cross-compile INDI to ARM. I have not seen a tutorial for that, what do you use? Or maybe it is possible to include my patches in the repository?
7 years 10 months ago #8675

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

Time to create page: 0.369 seconds