05-30-2013 03:30 PM
Hi,
I am trying to use a pololu serial 8 servo controller to control 8 servos using labview. The controller itself comes with software to send commands to use it. I am essentially trying to replicate that system, but just have it where I am sending a 5 byte command. The command format requires that i send the 0x80 0x01 0x02 the next two commands are the ones I want to change, the first being the servo number the next being its position. The command is being sent over the serial port. I have also attached the vi that I am trying to get to work. I assume there is an error in the way I am trying to send the commands to the controller. any help would be greatly appreciated.
06-03-2013 09:50 AM
Hi hyperons,
Instead of an array that you are converting to a string, why not just concatenate string commands together and send a string to the device? That way you can just simply send the text without any conversion that may complicate things. Give this a try and let me know if you have any further questions!
06-05-2013 06:03 AM - edited 06-05-2013 06:05 AM
Your command constant contained much more data than displayed. Intention?
I made a small mod that also read the port
06-05-2013 06:12 AM
I included a dial, on every change it will send the new position ... try on own risk
06-10-2013 02:24 PM
Hi,
I found that I was sending the commands wrong. I had to put the commands into an array, using decimal numbers, and then convert that to a string to send over the serial port. I am having issues now though of not being able to command all the servo's simultaneously. I have a power supply that can go up to 30 amps so I assume that is not the issue. I can control two servos simultaneously, but I am not able to control more than that, I was wondering if there was an error in the way I am sending the commands. I have done it as just having 2 strings of the commands, then concatenating them and then sending that over the serial port. I am wondering if anyone has had any similar type problems as this
thanks