Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5661

controlling servos simultaneously

$
0
0

Hi,

 

I am using a pololu serial 8 micro controller to control 8 servos simultaneously.  I am sending commands over the serial port.  The approach is to send a 5 byte decimal array that is converted into a string and then sent using the VISA write function.  The array being converted is [128 1 2 servo num position] ex: [128 1 2 0 0].  If I combine two commands into 1 array i.e. [128 1 2 0 0 128 1 2 1 0] then I can get 2 servos to move simultaneously, but if I try to combine 3 commands in one array the controller doesn't respond.  I have also tried splitting up the arrays and then converting them to strings and then concatenating the string, though I get the same error as before.  I was wondering if anyone has tried something similar to this and was able to get it to work.  I am using a 30 amp power supply so I dont think I have problem where I am drawing too much current if I try and run the servos simultaneously. Attached is a vi I am using.

 

 


Viewing all articles
Browse latest Browse all 5661

Trending Articles



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