Go to Post Any FIRST pit is my favorite because that means I'm enjoying a FIRST competition so I'm just plain happy anyways. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2012, 21:41
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Gimbal help!

I can get my camera to track the backboard using the example rectangle track vi, but when I try to control the gimbal using the two servo example vi, it either doesn't move or glitches out.
the servos are plugged into the digital sidecar. Is that right, or does it need a JAG?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2012, 21:44
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Gimbal help!

Make sure there is a jumper placed across the pins right next to the servo cables. This will power them with 6 volts and should make them move.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2012, 01:21
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

It's wired correctly
So it should be in the sidecar?
Our electronics mentor says it doesn't because the servo reads the position and he say it's just a pwm out
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2012, 03:22
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Gimbal help!

It should be plugged into a PWM port on the Digital Sidecar. Also, next to the PWM pins, there are 2 more pins closer to the center of the board. These must have that jumper installed to provide power to the servo.

If I remember right, on the 2 color servo example, there is a small knob you can adjust to manually move the servos. Does this work at all?
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2012, 10:58
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

Im running the 2 servo example and not the 2 color servo. Is there a difference? it has jumpers and when it says its moving the servo, it doesn't move, just the program indicator says it's moving.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2012, 18:17
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: Gimbal help!

If you try to move the servo with your hand, does it resist, or does it go where you push it? Do you feel any "buzzing" when you try moving it?
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2012, 01:03
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

its weird
the gimbal control is in vision processing but there's no resistance, but when I enable it through the driver station, its moves to center and holds there.
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2012, 14:33
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: Gimbal help!

When the robot is disabled, it produces no PWM outputs. That is detected by Jaguars and Victors as a loss of signal and they show their characteristic yellow blink. Servos will just go into neutral when they don't have a PWM signal telling them where to point.

When you ran the servo example, did you forget to enable the robot? That would certainly cause the servos not to move.
Reply With Quote
  #9   Spotlight this post!  
Unread 12-02-2012, 19:44
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

We enable it and it gets the backboard but doesn't follow it
and thank you I didn't know that
Reply With Quote
  #10   Spotlight this post!  
Unread 12-02-2012, 21:29
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Gimbal help!

If it zeros, that means it is at least sending signals to the servos. Are you sure though that you are sending signal to the right pins? The system automatically zeros all PWM outputs, coded or not.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #11   Spotlight this post!  
Unread 13-02-2012, 00:44
Joshuamunson Joshuamunson is offline
Registered User
FRC #2996
 
Join Date: Feb 2012
Location: Colorado
Posts: 16
Joshuamunson is an unknown quantity at this point
Re: Gimbal help!

I think its just code problems because when I try to control it using a control on the front panel it moves just fine
I think it is either the point between finding the backboard and moving the servos or something.
is it possible to get the servo position through the servo or is there zero feedback from it? because I am trying to find the difference between the center of the screen and the center of the backboard and then I take the servo get angle and convert the pixels to degree aspects then add it to said angle.
Am I approaching this completely wrong?
Reply With Quote
  #12   Spotlight this post!  
Unread 13-02-2012, 07:37
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: Gimbal help!

The servo feedback is all internal to the device. It's reasonable to treat it as something that just goes where you tell it to. If you want to know the servo position, you can assume it's what you last commanded it to be.

When you open the Robot Main vi and click the "Run" arrow at the top of the window, you can open other block diagrams and place probes on the wires to see what value they have while the program runs. Do that to trace where your servo angle command is getting lost.
Reply With Quote
  #13   Spotlight this post!  
Unread 13-02-2012, 19:37
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Gimbal help!

probe the values, but do a quick sanity check first and make sure there are actually servos connected to the outputs you are writing to.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
Reply


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 11:02.

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