Is there a way to control PicoSwitches and Servos via Windows Command Line (CMD). I want to write a small app that will control a animatronics project of mine. I intend it to work quite dynamically and interactively and need routines to be played depending on certain conditions being met.
Additionally, I don’t quite like the way VSA is set up. I can never get my PicoSwitches to work entirely correctly. They don’t work at all when using the Relay option and seem to work at random locations on the dial when using the servo options. Additionally, they tend to reset with inactivity and fail to come back on and I have to unplug the entire rig. I also need to play video at the same time. I was thinking of rigging a DVD player. But that is kind of unreliable since the DVD player does not always take the same amount of time to load chapters. Thats why I want to design a program that will fit my needs.
So what are the commands I would put into Command Line, a DLL I can use, or another program?
I am assuming by BB II (RS-232) you mean a serial port right? I am using a SC-32 by the way wanted to make sure thats clear. I don’t currently have it hooked up via serial but I could do that. My PC has a serial port. How would I get started with sending serial commands to move servos/toggle relays?
I developed an Excel spreadsheet that was used to create a Windows .CMD file to send commands to the serial port and run my animatronic. Later, I developed a DOS program to run my animatronic via the serial port. Perhaps this topic could also give you some ideas: Peter Penguin
Thank you. My friend tried the code and it does indeed send commands picked up by the SSC-32. But what are all the arguments? Like the channel, position, etc?
The commands like #0P1500 t3000 are explained in the ssc-32 online user’s manual. In this command servo 0 is commanded to move to position 1500 over a period of three seconds.
Okay I cant get Command Line to get the SSC-32 to do anything. I’ve tried changing jumpers for different BAUD rates, using echo soooo many times, I made sure I was echoing to the correct COM port which in my case is 45, this is what I typed:
echo #0P2200 >com45
nothing happens, then I read you have to include the carriage return… So I did this…
echo #0P2200 ♪ >com45
nothing… I really need help with this. Just tell me EVERYTHING I need to put into Command Line and I would appreciate it deeply.
Thank you sooo much ZoomKat. It works. Now I just need to know what command PicoSwitches need to be toggled on and off. And then I can begin writing my show software. They don’t seem to work as a normal dimmer, or relay in VSA. I always have to treat them as a servo and point to a specific position.
iirc the pico switch changes state on pulses longer than or shorter than 1500uS. There is a small deadband, but I don’t remember what it is. I don’t know why they don’t publish this information.
Thanks for the answer. That points me in the right path. But I’m not really sure what that means? Does that mean I do something like #0P1600 to toggle them on and off? Like is shorter than 1500 off and longer on? Or is it a toggle? Sorry for all these questions you guys. As you can tell, I’m quite the newb.