Hi, thanks for looking. This is my first post so I don’t know how chief delphi works very well.
First off I am having problems finding a tutorial explaining how to program the servos in the camera pan/tilt module to be controlled by the joysticks (in labview).
secondly, in the program I was able to put together, the servo was receiving a signal, but no power, even though the sidecar in indicating that it has 5v and 6v in. Sorry if anything was unclear, I’m new to this.
Thanks, Lead student programer, (n00b to labview robot programing) Austin Nordman. 
Do you have jumper pins put into the digital sidecar where you plug in the servos’ PWM cables? If there is no jumper pin, the servo will not be able move.
As for programming them, let me know how you want to control them and I’ll be happy to make you a tutorial. You can message me whenever you need any help with labVIEW, team 2106 is always willing to help.
Thanks so much! So I guess I need a jumper on the 2 pins next to the servo I am planing on using? The way I want to program them is: the joystick on usb2
y axis controls the tilt servo and x axis controls the pan servo.
Thanks again!
That is correct. As for the programming, I’m afraid I don’t have this year’s version of LabVIEW with me at the moment, but by tomorrow night I INTEND to have a copy. I don’t know how big a difference there is between this year’s and last year’s VIs, so I’m hesitant to make a tutorial for you right now, but I will get started ASAP. I will be sure to message you though as soon as I make one.
I got bored and went ahead and made one using last year’s code. The theory behind it should be the same at least. The only differance I imagine is the far left side of the code. If you have any questions feel free to contact me.
pan_tilt.vi (14.6 KB)
pan_tilt.vi (14.6 KB)
DO NOT USE THAT CODE! It doesn’t work. XD This is the new and improved one. XD Still last year’s stuff, just fixed, the old one would have shot your servos to far to fast and would have tried to make your servo go to a negative. This one fixes those issues.
I don’t know how much knowledge of labVIEW you have, but if you wanted to use this code, you could delete the WPI vis (the get references, the the joystick vi, and the set servo vis) and then just copy this code into your robot project.
pan_tilt.vi (15.4 KB)
pan_tilt.vi (15.4 KB)
Lol, thanks I didn’t try the non-woking one yet because I was eating dinner.
Btw, if you have any extra time, could you look at the website I made for my team and tell me what I should change? (other than that the background is white) teamcodeorange.tk Thanks.
Only thing I can really think of is your location page needs some sprucing up, or needs to be merged with something else. Besides that I like it.
I just realized that the wires may not be working on my version of labVIEW. Here’s a screencap. (I am using 8.6)
I am not at a computer with labVIEW right now, but I can take a few guesses. (correct me if I’m wrong on this everyone, I have yet to open up the new version of the robot project)
I believe I remember reading somewhere that references are no longer used in 2011, so the two VIs with pan and tilt going into them on the left I don’t think are used (however I have no idea what IS used at the moment, we got hit with snow and have not met since kickoff). Same goes for the far right, I think difference VIs are used. But once again, the code I gave you was never tested with actual servos, just simulated in labVIEW. I’m afraid our team is running a little behind. Tomorrow we are meeting so hopefully then I can help you more.
Ok thanks, just reply when you have time to figure out what’s wrong.