I’m obviously doing something wrong here, but after a few days of trying to figure it out myself, I think I need help. 8)
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:
SetVariable “servo1”, servo1
SetVariable “pot1”, pot1[/code]
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.
I’ve tried:
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!
What you are describing may be a delay in the throughput of your system. I feel bad replying with so little info when you typed up so much. The trick is to find out where…
I don’t fully know your setup, but if you have an Arduino with a pot, and an SSC-32, why not have the Arduino talk directly to the SSC-32, and also copy info back to the PC running VB? that would take out some of the delay…
Could the delay be from the way I have it set up? That maybe I’m going the long/wrong way about doing it?
I figured its pretty much the same setup as running a joystick. Which I just tested. A joystick feeding data to Roborealm has no problems, and everything is smooth. I’d just use the joystick but I actually need more analog inputs than a joystick would offer (only five on the 360 one I was testing), hence my idea on using an Arduino Mega (with its 16 analog inputs).
Maybe if I used the Arduino as a joystick instead of using the Arduino Roborealm Module, it’ll eliminate the delay? Because all a joystick is is an I/O board right? Lot’s of examples of the Arduino being used as one out there.
Now I’m talking to myself and asking rhetorical questions, it must be late.
Don’t worry about the short reply, everything helps. Your reply actually got me thinking about the joystick thing! Plus typing it all out helps me rethink if I’ve missed anything.
Also, if you don’t mind my highjacking my own thread partly; my trial of Roborealm is up next week and I was wondering if when I bought a copy from you guys if it was a download or a disc? If it’s a disc I need to come up with a bigger order so I don’t waste those shipping costs. :mrgreen:
Alan:
I couldn’t figure out a way link the two boards over a LAN without a computer to handle the serial connections. The Arduino will be located in a different building from the SSC-32, which is why I need the control over a network. Which I’m currently using a USB Net Share Station for. Just like the RouterBot James made a few years ago: lynxmotion.net/viewtopic.php?f=9&t=6871&p=67698&hilit=usb+netshare#p67698
Yeah, I’ve been creeping for a long time.
If it’s possible to somehow control the SSC-32 with the Arduino directly via an eithernet shield or something I’d need a shove in the right direction to figure it out, as it would actually be a preferable method. I’m only using Roborealm because I was already testing it for a different part of the project (the video monitoring and DVR parts of the security setup) and wanted to see if I could do them both in the same program.
Sorry for making you guys read so much, I’ll try keeping it shorter next time.
“Have you tried graphing the port1 variable using the Chart_Variable to see if that input also has noise on it? This is most likely the cause since AD conversion has a lot of sensitivity and can have a good deal of noise.”
There is, although I have not done it for the Arduino and Ethernet card (shield). Seems you can Telnet commands. I did do that with my Foscam Internet camera (WiFi), so I know it can be done, although I can’t find my notes now!
Here’s a link to Arduino code to serve as a server and take commands to read/write pins etc.
I did some tinkering below with a web controlled ssc-32 via an arduino and ethernet shield. If you want quick joystick type control over a lan then a telnet type connection would probably be needed. Check the “chat” examples in the arduino IDE for the basic connection setup.