I am using NI starter kit containing SbRIO-9632 and programming it through Labview..Now if I want to interface external gripper to it, I am using servo motor for its motion but how it is possible to program for this external motor in Labview..I mean Do I need to make some pin high in SbRIO??
Pls help me to start..
Getting started with your NI hardware/software:
Check out the NI Community robotics forum for lots of examples:
Thanks RogerIsaksson for your response..
I went through your suggestion and examples link. But I am not yet clear with my question.
As I want to control servo from my sbrio-9632, I will connect 2pins of my servo motor i.e GND and Digital input pin to my sbrio. I will give +5v supply externally. As there is no any particular PWM pin in sbrio , I will have to connect my motor input pin to PORT/DIO pins in Sbrio. So my question is - is it right? Whether it will be enough to connect input pin to PORT/DIO pin and code something in my labview to generate PWM out of it? OR I will compulsary need some NI driver modules to drive my servo..for eg NI 9505 module..
Please help me. And also if whatever I am thinking to do is right, how to write a PWM code to drive my motor??
Thanks once again to help.. Kindly reply further.
You should be able to connect the signal pin of your servo directly into one of the Digital Pins of the SB-RIO. Then you can simple write a pulse of varying width using the FPGA to drive the servo. A good example of this can be found in the Example Finder. Simply search for "PWM", the example you want is called "Controlling a servo using PWM.lvproj".
The 5V and GND pin of the servo should be connected externally, so that the servo doesn't draw its power from the SB-RIO.
Also be aware that the digital pins on the SB-RIO operate at 3.3V, not 5V. So if you're outputting a pulse to control a servo, it will be a 3.3V pulse. For most servos, this won't be a problem (3.3V is within the range for a HIGH signal in TTL and CMOS logic levels), but it's worth checking the datasheet with your servo first, or doing a quick test,