Quantcast
Channel: Recent Topics - INDI Forum
Viewing all articles
Browse latest Browse all 15748

Servos in Indiduino - by: Gorgias

$
0
0
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.cpp.patch.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.xml.patch-2.txt
File Size: 2 KB

Viewing all articles
Browse latest Browse all 15748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>