![]() |
Adding Additional Servos
We (the programmers) are rookies and are having trouble figuring out LabVIEW. We have our drive system working and are moving on to programming functions. The next step is to program two servos mounted on the front of the robot. They are meant to spin opposite of each other to pull the ball up between two rods. We were looking for a example program in LabVIEW to add servos and attach them to buttons on a Attack 3 Logitech Joystick and were not able to find any such example. Does anyone here know of a simple way to add 2 servos to the VI, regulate their speed and rotation direction, and attach their use to a button (the trigger)? Any help would be greatly appreciated.
|
Re: Adding Additional Servos
Quote:
A good resource for some examples is http://team358.org/files/programming...2009-/LabVIEW/. |
Re: Adding Additional Servos
1 Attachment(s)
If you are using motors then I made something that I think should work for you.
![]() You can change the value from one to something else if you don't want it to spin at full speed. You may also have to change which motor it is that gets multiplied by -1 if it goes backwards. You should also add the motors to the finish.vi but I didn't show that. I have no idea what button is the trigger on an attack 3. You can either look that up or just do trial and error. It may even be that the trigger isn't a button and is an analog signal which would probably make it one of the axis values. If you want it to make it so that every time you hit the button it changes between on and off instead of having to hold it you can use a toggle.vi which I have attached. To use this you just put it in between the button and the select. I hope this works I am new to this stuff too but I think that this should do what you want it to. |
Re: Adding Additional Servos
Thanks for the help. That website was really helpful! Yes they are motors not servos, sorry. How does one set the speed of a motor controlled by a button? Is there a rpm number somewhere that we can change?
|
Re: Adding Additional Servos
Quote:
|
Re: Adding Additional Servos
Quote:
Perhaps you're asking how to change what value is sent to the motor controller when the button tells it to be "running"? That's controlled by the orange constant 1 wired into the True input of the triangular Select function in the posted code. You can make it anything from -1 to +1. If you want to be able to modify the value under driver control, the throttle input of an Attack 3 joystick is Axis 3. Wire it to the Select instead of the constant, and you can set the run speed using the throttle. Quote:
|
Re: Adding Additional Servos
Quote:
|
Re: Adding Additional Servos
|
| All times are GMT -5. The time now is 09:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi