01-21-2010 04:51 PM
So, lets begin with: "I have no idea what I am doing"...
I have a parallax standard sero, an NI 6221 USB and a power supply.
I am trying to figure out how to make the servo either move a notch left or right; so for the moment I want to leave out PWM/trains.
I have the servo connect to the power supply (using 5V, black(-) and red(+( wires) and then I have connected the white wire to the NI 6221 anaolg output (AO 0).
I wrote a simple waveform that would give me a sine wave between 0 and 3V that would have intervals of 1.5ms, however the servo doesn't seems to respond.
Then I hook the voltmeter to the NI 6221 to check what I am getting and the signal seems to stay a about 2V and not moving?
any ideas of what I should do?
01-22-2010 05:04 PM
01-26-2010 04:19 PM
Hi there,
What type of signal does your servo need?
I assume it needs a analog sigal, because it is a "parallax standard servo"
How are you measuring the AO lines, and are you running your task while you are measuring with a DMM.
DMM... digital multi meter???
Yes, while I run the task and I try to create a pulse I can not get any response from the DMM. I am not talking of a 1.5ms pulse.
Keep in mind if your measuring Vrms, you should be getting roughly 2V on a 0-3V sine wave.
You are right about that, but what I am not understand is whyI get and steady values not matter what.
01-26-2010 09:24 PM
01-27-2010 12:53 PM
01-27-2010 03:03 PM
clarification:
What I meat is that if I set the vi to output (digital or analog) voltage (lest say 1 V) every 500ms, I expected to see the DMM oscillate between 0 and 1 V every 500ms; I only get a continuos 1 V reading. Is that better?
Now, how do I connect this to the servo?
Should I conncet both counter outputs to the white cable of ther servo???
01-27-2010 03:05 PM
As I said at the beginning, I was trying to left out the PWM signals. I wasn't trying to fully controll the servo left or rigth. I was only trying to "press a button and the servo moves rigth one notch and then stops".
I guess there is no way to controll this without leaving out the PWM.
01-28-2010 02:01 PM
Hello Roddy,
Can you provide screenshots or code on how you are sending the output? Also, do you have a manual for your device that can specify the signal requirements?
01-28-2010 02:16 PM
You're not going to get around using PWM if you want to use this servo...the circuitry inherent to the modeling grade servo requires it.
The following link gives you some background, shouldn't be too hard.
http://www.brookshiresoftware.com/rd_how_servos_work.htm