Go to Post If you don't have a hairtie, use a ziptie instead. It works, it's cute, and way geeky. :p - Katie Reynolds [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 31-01-2006, 23:27
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Programming Victor 884 control

i have been batting this around for a few days but we cant seem to get our program to make the victors to move the motor.

we have everything plugged up and the cables in the right way.

we use:
Code:
pwm03 = (unsigned char)127;
and the motor doesnt move which is good.
light on the victor stays solid orange which is also good.

we use:
Code:
pwm03 = (unsigned char)140;
and the motor turns one way at a fair speed;
light turns off . . . good

we use:
Code:
pwm03 = (unsigned char)110;
and the motor starts to "tick"
the light flashes rapidly(faster then when it doesn't have a signal and in sync with the "ticks")
one of our mentors thinks that for one reason or another the signal is pulsing too slowly and is causing the jitter.

i have also determined that sometimes when we change the value too largely it will also "tick"(ex from 127 to 200)

as far as i understand(i could be wrong) the victor takes the PWM and a signal between 1 and 254

i have also tried using unsigned int instead and have gotten the same exact result

i have no clue whats going on(mostly because I'm a rookie) so if anyone could provide info it would be very very helpful
  #2   Spotlight this post!  
Unread 31-01-2006, 23:47
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Programming Victor 884 control

You don't need the typecasts, simply setting the pwm to a value will work.
Such as:
Code:
pwm03 = 110;
Ticking sounds like not enough power, and 110 is pretty close to the neutral zone. I'd try a lower number, changing speeds rapidly is more of a problem for drivetrains than code. Try using a number like 63, that should be half power reverse, or close to it.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #3   Spotlight this post!  
Unread 01-02-2006, 00:36
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Programming Victor 884 control

Drake,

The ticking sound you hear is the auto resetting circuit breaker tripping over and over again.

Your problem is mechanical. A chain, (gear, et cetera) is binding in reverse.

You should see the Victor led turn off every time the CB trips in this condition. Hence the synchronous flashing you describe.

Proof: Remove the motor from it's mechanical house of bondage and it will operate just fine with the same code and electronics.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #4   Spotlight this post!  
Unread 01-02-2006, 14:42
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: Programming Victor 884 control

that would make sence except that the motor isnt attached to anything

i will try not typecasting it when i get my battery recharged
  #5   Spotlight this post!  
Unread 01-02-2006, 14:45
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,076
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Programming Victor 884 control

If it isn't the circuit breaker, it may just be innoculously flip-flopping between two values (one within the deadband and one within the negative motion range) - no big deal. PWM signals are somewhat inexact. See if you get the same results with, say, a value of 100.
  #6   Spotlight this post!  
Unread 01-02-2006, 14:45
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Programming Victor 884 control

Quote:
Originally Posted by drakesword
that would make sence except that the motor isnt attached to anything

i will try not typecasting it when i get my battery recharged
Then it's either a defective speed controller or defective motor.. Try a lower value though. If you want proof, get a decent multimeter (Depending on the motor, it could be drawing 40+amps at 12v) and mesasure the voltage coming off the speed controller.
  #7   Spotlight this post!  
Unread 01-02-2006, 17:41
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Programming Victor 884 control

After you have tried everything else and are sure that the circuit breaker isn't tripping, (It produces a distinctive buzz and gets very warm>) then calibrate the speed contoller. It sounds like you might be on the hairy edge of being in the dead band (127 +/- 10). This is likely true if your joystick or pot input is sitting on the same table as the motor.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #8   Spotlight this post!  
Unread 01-02-2006, 22:04
Chriszuma's Avatar
Chriszuma Chriszuma is offline
Jack of all trades
AKA: Chris Hammond
FRC #0068 (Truck Town Thunder)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Clarkston, MI
Posts: 290
Chriszuma is just really niceChriszuma is just really niceChriszuma is just really niceChriszuma is just really nice
Send a message via AIM to Chriszuma
Re: Programming Victor 884 control

It sounds like you need some good old fashioned debugging, since one part is obviously not working right.
1. Try different values for your pwm output (i.e. hook it up to a joystick input). If it works for different values, try calibrating the victor
2. Try running the victor without a motor attached, if it works the motor is screwy
3. Try a different victor, if it works then the first victor is screwy
4. Try it on a different pwm output, if it works you either have a logic error or a broken RC.

You don't necessarily need to do them in that order, typically start with the easiest one to test. That would be disconnecting the motor.
__________________
2006 T3 World Tour: Great Lakes - Waterloo - Palmetto - IRI
2006 Awards: Motorola Quality - RadioShack Innovation in Control

My website: http://zuma.phire.org/
Truck Town Thunder's website: http://trucktownthunder.com/
  #9   Spotlight this post!  
Unread 01-02-2006, 23:05
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Re: Programming Victor 884 control

Where are you putting this code? I am trying to figure out why you need this. or where you need this. I am still tryign grasp all of the aspects of the code since I only had about 2 weeks to look at it last year.

Thanks
__________________
TEAM 1706
2007 Judges Award, St. Louis (For our amazing ability to have bad luck)
2005 Rookie Inspiration Award, St. Louis
  #10   Spotlight this post!  
Unread 01-02-2006, 23:51
zachriggle zachriggle is offline
Registered User
FRC #1940
 
Join Date: Jan 2006
Location: Michigan
Posts: 37
zachriggle is infamous around these parts
Re: Programming Victor 884 control

110 is probably in the neutral range. You will have to go a bit lower for anything to happen with the motor.
  #11   Spotlight this post!  
Unread 03-02-2006, 16:57
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: Programming Victor 884 control

Quote:
Originally Posted by Chriszuma
It sounds like you need some good old fashioned debugging, since one part is obviously not working right.
1. Try different values for your pwm output (i.e. hook it up to a joystick input). If it works for different values, try calibrating the victor
2. Try running the victor without a motor attached, if it works the motor is screwy
3. Try a different victor, if it works then the first victor is screwy
4. Try it on a different pwm output, if it works you either have a logic error or a broken RC.

You don't necessarily need to do them in that order, typically start with the easiest one to test. That would be disconnecting the motor.

thanks chris it turned out it was the motor. one of the brushes is loose and whne the motor runs in one direction it looses connection thanks alot
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
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
Concept of PID explained ConKbot of Doom Technical Discussion 11 27-01-2008 00:11
2005 RadioShack Innovation In Control Award--What Won? Billfred Control System 8 12-06-2005 01:51
control system programming archiver 2000 17 23-06-2002 22:14
Where can i Find info on the control programming Matchew General Forum 1 14-01-2002 19:09


All times are GMT -5. The time now is 11:34.

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