05-14-2010 10:21 AM
hi everyone,
currently im doing a final year project in LabVIEW using USB6008. my project involve of sensing the tilt from accelerometer and convert the tilt into PWM to control the turning of servo motor.
accelerometer that im using is ADXL322 which has Dual axis ±2g sense range
servo motor that im using is M995. when the servo motor in neutral position it required 1500microseconds, while it turns 90degree it requires 2200microseconds and whilw it turns -90degree, it requires 800 microseconds.
currently im facing problem in generating the PWM signal to control the operation of servo motor.
attachment is my VI design that i have done to date.
the program is about attracting tilt range from accelerometer using USB NI 6008 and then convert the tilt into angle in degree, and after that generate PWM to control two servo motor.
hopefully there is somebody can help me on this. thanks.
05-15-2010 05:05 AM
anyone please help me on this.
05-17-2010 09:54 PM
currently i need to generate PWM to control servo motor model MG995. but i am facing problem in generating the PWM in between 800usec to 2200usec to control the rotation of the servo motor. is there any example for me to refer.
below is my VI that i have done to date.
hopefully somebody can identify my mistake because my VI is not able to turn the servo motor.
05-19-2010 11:16 PM
6008 cannot generate PWM directly.
The best you can do is to use its digital output to turn on/off, and use timing vi to control its on/off period.
You should be able to find digital output example from Help>>Find Examples>>Hardware Input/Output>>DAQmx>>Digital Generation.
However, I don't think it's fast enough to control motor speed/position, and timing will not be precise, since it's software time.
If you really need to use PWM, I'd recommend analog output to drive 555.
05-31-2010 09:44 AM
anyone have the 555 timer circuit design that use with LabVIEW to generate PWM?
05-31-2010 10:23 AM
05-31-2010 10:25 AM