Go to Post Ahem, a climbing xerox machine. Also known as the scariest type of xerox machine this Earth has ever seen. - itsjustjon [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2013, 20:00
akash992391 akash992391 is offline
Registered User
AKA: Akash
FRC #4684
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2013
Location: yonkers
Posts: 76
akash992391 is on a distinguished road
Unhappy servo problem

can some one tell me, do i have to put 0 to 180 on servo angle or 0 to -1
i try everything to programmed function and everything but still not working all electical stuff i connected and i have put jumpers too on digital sidecar....can someone help me...plez
  #2   Spotlight this post!  
Unread 17-02-2013, 02:10
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: servo problem

Quote:
Originally Posted by akash992391 View Post
can some one tell me, do i have to put 0 to 180 on servo angle or 0 to -1
If you're setting the angle, do it in degrees. If you're setting the position, the valid range is 0 to 1 (that's a +1, not a -1). This is all in the built-in help for the Servo functions.

Quote:
i try everything to programmed function and everything but still not working...
Try telling us specifically what you did try, what you expected to happen, and what happened instead. Let us see the code you are trying to use. We can't look at what's on your screen unless you show it to us.
  #3   Spotlight this post!  
Unread 17-02-2013, 10:48
akash992391 akash992391 is offline
Registered User
AKA: Akash
FRC #4684
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2013
Location: yonkers
Posts: 76
akash992391 is on a distinguished road
Re: servo problem

here is the code
Attached Files
File Type: zip IMG_2797.zip (2.20 MB, 13 views)
  #4   Spotlight this post!  
Unread 17-02-2013, 21:03
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: servo problem

Quote:
Originally Posted by akash992391 View Post
here is the code
Okay, that answers about a third of what I asked. The other two questions remain: What do you expect it to do? What does it do instead? Without details, we can't do much more than guess.
  #5   Spotlight this post!  
Unread 17-02-2013, 23:09
akash992391 akash992391 is offline
Registered User
AKA: Akash
FRC #4684
Team Role: Programmer
 
Join Date: Nov 2012
Rookie Year: 2013
Location: yonkers
Posts: 76
akash992391 is on a distinguished road
Re: servo problem

I expect servo to move 0 to 180 and come back to I position
Basically I want that servo to push frisbee to the spinning tires... So yeah
  #6   Spotlight this post!  
Unread 17-02-2013, 23:57
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: servo problem

Quote:
Originally Posted by akash992391 View Post
I expect servo to move 0 to 180 and come back to I position
Basically I want that servo to push frisbee to the spinning tires... So yeah
That partly answers a second one of my three questions. I'd still like to know when you want the servo to move from 0 to 180, and when you want it to return to 0. But the most important thing you haven't said yet is what the servo does do. When you describe what it does, try not to leave out any details. Some of them might be important clues to what's causing your problem.

Note that your code won't ever get the servo to 180, because it sets the servo to either 0 or 130 based on Joystick 3's trigger button. The servo will be at 130 while the trigger is not being pressed. It will move from 130 to 0 when the trigger is pressed, and remain at 0 as long as the trigger is held. It will move from 130 to 0 when the trigger is released.

Pushing a frisbee more than an inch or two is a heck of a job to ask a servo to perform. It's likely to just sit there and buzz trying to do something that takes more torque than it is able to apply.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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