![]() |
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.
|
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. |
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
|
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)"? |
Re: Servo Help
Quote:
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 |
Re: Servo Help
Quote:
but yea, the battery would most likely be the problem. |
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? |
Re: Servo Help
Quote:
|
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
|
Re: Servo Help
Quote:
|
Re: Servo Help
Quote:
|
| 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