I'm obviously doing something wrong here, but after a few days of trying to figure it out myself, I think I need help.
I'm most likely going about it all wrong, and better ideas are welcome. End desired result is to control servos over a LAN with a local potentiometers (Using a USB Netshare Station to control the SSC-32 over the LAN). This is all part of a home security system I'm setting up for myself, in case anyone was curious.
Lemme start with the setup:
I've got a pot wired into an Arduino which is sending its value into Roborealm.
I take the value and run it through a VBScript to get a value I can control the servo with:
pot1 = GetVariable("pot1")
servo1 = GetVariable("servo1")
servo1 = (pot1 + 250) * 2
SetVariable "servo1", servo1
SetVariable "pot1", pot1
The servo1 variable (which is now 500-2500) is assigned to the servo in the SSC-32 module in Roborealm.
I can use the sliders on the SSC-32 module to control the servo directly with no problems. I can move the pot and the servo follows suit. But when the pot is turned at a steady rate the servo will jerk to a spot, pause, then jerk to the next spot until it reaches its destination. This has me thinking its the VBScript, but the values its reporting to the SSC-32 seem constant and stable.
Slowing down/increasing the rate of the servos in the SSC-32 module.
Using isolated power for the VS and VL on the SSC-32.
Using different servos.
Using another Arduino instead of the SSC-32 to control the servo (still does it)
Sprinkling magic pixie dust onto it.
All which leads me to think I'm just sending the signal to the control board wrong somehow.
I'm rather new to almost all of this as I'm sure you can tell, so please go easy on me if I'm doing something terribly stupid.
Any help or advice would be much appreciated!