Go to Post This is not an engineering design challenge, this is a project management and common sense challenge with engineering elements. Don't go out of your way to screw yourself. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 17-02-2007, 02:05
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
Problems with one of my victors...

I am having problems with one of my victors...

I calibrated it to the X axis of my port 3 joystick and in my code, if the Joystick is pushed to the left ( p3_x < 20) then I set the PWM03 to 115 and if the joystick is pushed to the right (p3_x > 240) then I set the PWM03 to 140. Then I set the PWM11 to = the joystick value (PWM11 = P3_x) so that I could watch this in the dashboard viewer...

The joystick value ( as seen on PWM11 in the dashboard viewer) when pushed all the way left reads 0 and all the way to the right reads 255 as it should.

The problem is that the motor only rotates when the joystick is pushed to the right (when p3_x = 255)

I removed the M+ & M- from the victor and used the battery to verify that the motor will spin both directions so I know the wiring is correct. Also I double checked to make sure that the control lines were set correctly (black wire to black wire)

Is there something wrong with my victor? I calibrated it and it appears that the values are correct for the joystick and that my code is working.... Why won't it move in the reverse direction when the PWN is set to zero????

What else can I check or how can I verify if it is a victor problem?

Thaks in advance
  #2   Spotlight this post!  
Unread 17-02-2007, 04:15
Dave K.'s Avatar
Dave K. Dave K. is offline
Engineer/Mentor
FRC #0930
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: WI
Posts: 91
Dave K. is a splendid one to beholdDave K. is a splendid one to beholdDave K. is a splendid one to beholdDave K. is a splendid one to beholdDave K. is a splendid one to beholdDave K. is a splendid one to beholdDave K. is a splendid one to behold
Re: Problems with one of my victors...

Quote:
Originally Posted by Japper View Post
I am having problems with one of my victors...

I calibrated it to the X axis of my port 3 joystick and in my code, if the Joystick is pushed to the left ( p3_x < 20) then I set the PWM03 to 115 and if the joystick is pushed to the right (p3_x > 240) then I set the PWM03 to 140. Then I set the PWM11 to = the joystick value (PWM11 = P3_x) so that I could watch this in the dashboard viewer...

The joystick value ( as seen on PWM11 in the dashboard viewer) when pushed all the way left reads 0 and all the way to the right reads 255 as it should.

The problem is that the motor only rotates when the joystick is pushed to the right (when p3_x = 255)

I removed the M+ & M- from the victor and used the battery to verify that the motor will spin both directions so I know the wiring is correct. Also I double checked to make sure that the control lines were set correctly (black wire to black wire)

Is there something wrong with my victor? I calibrated it and it appears that the values are correct for the joystick and that my code is working.... Why won't it move in the reverse direction when the PWN is set to zero????

What else can I check or how can I verify if it is a victor problem?

Thaks in advance

When pushed to the right, and pwm03 = 140, the resulting positive speed is 140-127 = 13 and in the other direction 127-115 = -12. Depending upon the motor, that might not result in enough voltage to get the motor to overcome friction and allow it to start moving.

You could easily confirm this with a volt meter and watch the resulting voltage applied to the motor when either direction was commanded.

Do you have additional logic that detects that the joystick is within a deadband region and sets the PWM value to 127?

Assuming that you calibrated the speed controller with a stopped PWM value of 127, and set the min/max speeds somewhat near their normal full scale values, then it is probably working as expected... however, if you calibrated with your much smaller values, the speed controller might not have accepted that small of a change as valid values.
__________________
--Dave
  #3   Spotlight this post!  
Unread 17-02-2007, 10:10
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
Re: Problems with one of my victors...

Quote:
Originally Posted by Dave K. View Post
When pushed to the right, and pwm03 = 140, the resulting positive speed is 140-127 = 13 and in the other direction 127-115 = -12. Depending upon the motor, that might not result in enough voltage to get the motor to overcome friction and allow it to start moving.

You could easily confirm this with a volt meter and watch the resulting voltage applied to the motor when either direction was commanded.

Do you have additional logic that detects that the joystick is within a deadband region and sets the PWM value to 127?

Assuming that you calibrated the speed controller with a stopped PWM value of 127, and set the min/max speeds somewhat near their normal full scale values, then it is probably working as expected... however, if you calibrated with your much smaller values, the speed controller might not have accepted that small of a change as valid values.
Thanks for the info Dave...

I am assuming that the speed controller was calibrated with a stopped PWM value of 127 but I am not sure how to tell other than now when the joystick is centered it reads 127 and it is 0 at one end and 255 at the other... was that done correctly?

In my code, I set the pwm to 127 before testing the joystick value and the dashboard viewer shows the joystick value to be 127 at center, 0 at its leftmost position and 255 at its right most position.

I am using one of the smaller motors that came in the kit and in the forward position (140) it moves more than fast enough...

What voltage level should I see on the motor input in either direction (AC or DC)?

Correct me if I am wrong but because the victor output is a Pulse width, I should ba able to see this from value 0 to 255 with a scope set up in differential miode shouldn't I?

Please advise and thanks for your help..
  #4   Spotlight this post!  
Unread 19-02-2007, 04:08
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
Re: Problems with one of my victors...

Just an ujpdate on how I fixed the problem for anyone that cares...

As it turns out there were two problems...

The victor is bad- it cuts out (looses power) intermittently. When I originally wired the unit I connected the fans of each victor up to the the power going into each vitor and when the power to the victor dies, the fan stops.. although, It could be a flakey fan that is shutting down the victor.

Onec I switched victors, I found PWM03 to be dead so I rewrote my code to route the output to PWM11 and this worked fine...
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Gearbox Jake M Motors 7 29-01-2007 13:20
Victors controlled with joystick Buttons JamesBrown Programming 2 18-02-2005 23:39
Controlling Solenoids With Victors Brandon_Cmpvir Electrical 20 16-03-2004 10:21
Problems With Compiling KWalsh Programming 5 23-02-2004 16:11


All times are GMT -5. The time now is 05:41.

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