|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Servo Help
hi i am programming for team 2102 and i have run in to a problem in easy c pro where i can't get this stupid servo to work i pluged it in to the PWM and i put an RC PWM output in the code gave it an axis (just fro now) but it still doesn't respond its been a few hours and i am crying on the inside any help would be great.
|
|
#2
|
|||
|
|||
|
Re: Servo Help
Well, the first thing to check is the connection. Are you sure everything is plugged in correctly? (It more common than you think)
I'm not sure if you know this.... so i will just say it. Servos aren't motors, they dont spin constantly. They just spin to a certian point given by the pwm value. So even if you do output a value, it may not even move at all, since it is already at that position. The last problem, the battery. The 7.2 volt header pins for the PWM ports DO NOT get their power from the 12 volt input, they get it from the 7.2 volt backup battery. The servos will not work unless you have a backup battery attached to the Robot Controller. Hope this helps. |
|
#3
|
|||
|
|||
|
Re: Servo Help
thank you i will go test that out now but i think it is all hooked up correctly cause i was also part of the electronics but i will double cheack thanks again
|
|
#4
|
|||
|
|||
|
Re: Servo Help
Well, once you have checked, and everything is wired correctly, the problem may lie somewhere in your code.... could you post it?
Now, what do you mean by you gave "it an axis (just fro now)"? |
|
#5
|
|||||
|
|||||
|
Re: Servo Help
You just assign the servo PWM (example pwm01) to an axis of the joystick (example p1_y)
This is a great way to test if a servo actually works. Also great way to figure out positions for the servo if you use printToScreen. My guess is he didn't hook up the Backup Battery or the battery was dead |
|
#6
|
|||
|
|||
|
Re: Servo Help
Quote:
but yea, the battery would most likely be the problem. |
|
#7
|
|||
|
|||
|
Re: Servo Help
well what i ended up doing was retrieving the thumb button and told it to be 0 so its always in high gear (its for our AM Super Shifter) then made it so when u pushed the thumb button it shifted to low gear. thanks for all the help.
one other thing is if u where driving before the round ended and u threw your robot into neutral and rolled over a line would that count probaly not right? |
|
#8
|
|||
|
|||
|
Re: Servo Help
backup battery was a problem some genius had +/- mixed up /punt culprit
|
|
#9
|
||||
|
||||
|
Re: Servo Help
we had a similar servo problem. For the servos you have to have a backup battery (I think) AND you have to set it to either 0 or 255. I realized that our joysticks only went to 254, and somewhere in easy C it also says to get it to 255 or 0; It took us a while to figure that out O.o
|
|
#10
|
||||
|
||||
|
Re: Servo Help
If the bot got all the way across the line before the teleoperated period ended, it would count. You'd probably want to just keep driving, because crossing a line doesn't count after the end of the match, which is when they stop the robots. But until the end of the match you can cross a line any way that you want.
|
|
#11
|
|||
|
|||
|
Re: Servo Help
Quote:
Last edited by Newzealand38 : 13-01-2008 at 23:16. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help getting servo values from camera | ruddy | Programming | 12 | 30-11-2007 23:18 |
| Servo Help | Chase | Programming | 1 | 06-02-2006 17:53 |
| Servo behavior question / advanced servo/PIC programming question | DanL | Electrical | 12 | 18-10-2005 18:33 |
| Servo Help | Dominator_Legen | Motors | 3 | 11-03-2005 19:50 |
| Servo | MASherry | General Forum | 6 | 04-10-2004 22:46 |