Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Servo Help (http://www.chiefdelphi.com/forums/showthread.php?t=61591)

Newzealand38 13-01-2008 16:11

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.

adamm 13-01-2008 16:24

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.

Newzealand38 13-01-2008 16:50

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

adamm 13-01-2008 18:58

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)"?

Gamer930 13-01-2008 20:08

Re: Servo Help
 
Quote:

Originally Posted by adamm (Post 677160)
Now, what do you mean by you gave "it an axis (just fro now)"?

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

adamm 13-01-2008 20:52

Re: Servo Help
 
Quote:

Originally Posted by Gamer930 (Post 677214)
You just assign the servo PWM (example pwm01) to an axis of the joystick (example p1_y)

Wow, Why didnt i see that. :ahh:

but yea, the battery would most likely be the problem.

Newzealand38 13-01-2008 22:30

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?

Newzealand38 13-01-2008 22:31

Re: Servo Help
 
Quote:

Originally Posted by adamm (Post 677253)
Wow, Why didnt i see that. :ahh:

but yea, the battery would most likely be the problem.

backup battery was a problem some genius had +/- mixed up /punt culprit

wt200999 13-01-2008 22:33

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

Kiwi 13-01-2008 22:37

Re: Servo Help
 
Quote:

Originally Posted by Newzealand38 (Post 677321)
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?

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.

Newzealand38 13-01-2008 23:14

Re: Servo Help
 
Quote:

Originally Posted by Kiwi (Post 677329)
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.

Darn it was a thought tho i didn't think it would fly.


All times are GMT -5. The time now is 14:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi