|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Problems running servos
I'm not fluent in that language at all, but the first thing I would check is to see if you have a jumper on the pins next to the servo output. Without that jumper, the servo will not get power to move at all.
|
|
#2
|
|||
|
|||
|
Re: Problems running servos
Quote:
Codewise: Try hardcoding a value and verify that it is (or isn't) hardware. If the hardcoded value works and the code doesn't. Good luck! Last edited by omalleyj : 30-01-2012 at 15:22. Reason: I can't read :-( |
|
#3
|
||||
|
||||
|
Re: Problems running servos
One possible problem is that your servo is unusual and doesn't operate on the conventional signal range. We've encountered this problem before with Parallax servos. As a reference (I'm not sure about the actual DS output), since Hitec servos are the brand that FIRST recommends,
Quote:
|
|
#4
|
||||
|
||||
|
Re: Problems running servos
Did you remember to connect the 6V jumper for Servo power on the Digital Sidecar?
|
|
#5
|
|||
|
|||
|
Re: Problems running servos
Hi everyone,
Thank you so much for your inputs (no pun intended ![]() One thought I did have was to make sure the port we are using has a recorded 6 V difference on the DSC which it does. I also did hardcode a value in for the servo and no response. The DSC is also getting power since we have other hardware hooked into it and it is functioning properly with the correct C++ code. I never thought about the servo not operating in the conventional signal range so that is something to look at. I am new to FRC so I am still learning where things go etc., but I do know some programming so I feel reasonably confident that the code is correct, especially since the analogous code for the motors work fine. For feverittm: If the 6V jumper were not present, what would happen? In other words, would there still be a voltage difference across the leads? Thanks everyone for your quick replies. |
|
#6
|
||||
|
||||
|
Re: Problems running servos
The jumper is what applies the 5 Volt power to the hot pin on the pwm / servo outputs. Without it, the servos get no power.
|
|
#7
|
||||||
|
||||||
|
Re: Problems running servos
In your code, change the digital module to 1, instead of 2.
|
|
#8
|
|||
|
|||
|
Re: Problems running servos
What Joe said. Module numbers =/= Slot numbers, it's a semantics change this year that chokes people up who haven't followed everything. Once that changes, it should work fine.
|
|
#9
|
|||
|
|||
|
Re: Problems running servos
Changing the module to 1 did work!! Thank you so much for the help!!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|