Go to Post There are certain questions that one never, ever should ask. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 02-03-2010, 10:24
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Creating PWM signal for victor

Hello,

I am trying to figure out a way to get a possibility to quicktest all our Victor 884s and 883s without using the cRIO or any other FIRST hardware.
So I've built a simple timer circuit which gives me a
PWM input rate T = 22 ms
and a PWM puls rate of 1.1 - 2.3 ms (controllable with a potentiometer).
I monitored that signal with a storage oscilloscope to double check this data. The values are correct.
According to that information, it should work fine:
http://www.vexrobotics.com/products/...ontroller.html


But, with the Victor 883 it doesn’t work at all. It blinks orange, which means no PWM signal.
And with the Victor 884 it only works for reverse and stop. If I come to the puls rate > 1.5 ms - which should be forward - it starts blinking orange very fast (faster then the slow 'no PWM signal' blink)

Do you have any idea what I am doing wrong?

neg0riz0r
  #2   Spotlight this post!  
Unread 02-03-2010, 11:23
NOV8R's Avatar
NOV8R NOV8R is offline
Registered User
AKA: Chuck Brant
FRC #1583
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Centennial, Colorado
Posts: 209
NOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud ofNOV8R has much to be proud of
Re: Creating PWM signal for victor

You need to boost the pwm signal to work with the victors. A few years back we built a control box using an airplane r/c transmitter and receiver to test drive our bot. We bought special pwm cables that had a built in amplifier to make it work. I can't remember who we bought the cables from. In the jaguars the pwm input is opto isolated so you don't need as high a signal strength. Hope this helps.
  #3   Spotlight this post!  
Unread 02-03-2010, 11:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,847
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Creating PWM signal for victor

Here's our PWM driver: http://www.team358.org/files/electri...MGenerator.pdf

The circuit diagram is at the end if you want to compare circuits to see what differs.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 02-03-2010, 12:54
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Re: Creating PWM signal for victor

@NOV8R: Yes, I realized with the oscilloscope that the signal is not stable when the motor is turning. So some kind of current amplification was my idea, too. But I don't know how to do that :/

@Mark McLeod:
I tried that before. Had similar problems. Signal not stable. Does this really work for you with victor 883 and 884 ?
  #5   Spotlight this post!  
Unread 02-03-2010, 12:59
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,847
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Creating PWM signal for victor

One of these circuits was used last night to run an 883 driving a window motor on a test frame.

I suppose your 883 blinking yellow light could be caused by a missed/bad contact at the PWM connection, since those are easy to miss inside that cover.

Do you have access to any old IFI robot controllers you could borrow for testing your Victors?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-03-2010 at 13:01.
  #6   Spotlight this post!  
Unread 02-03-2010, 15:01
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Re: Creating PWM signal for victor

No I don't have access to those.
There is no contact problem at connecting. Thats for sure.
With the Victor 884: One directions works, the other not (here we have also the blinking thing)
  #7   Spotlight this post!  
Unread 02-03-2010, 15:15
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,795
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: Creating PWM signal for victor

Quote:
Originally Posted by neg0riz0r View Post
So I've built a simple timer circuit which gives me a
PWM input rate T = 22 ms
and a PWM puls rate of 1.1 - 2.3 ms (controllable with a potentiometer).
I monitored that signal with a storage oscilloscope to double check this data. The values are correct.
According to that information, it should work fine:
http://www.vexrobotics.com/products/...ontroller.html

neg0riz0r
It may be that you are controlling the wrong parameter. The pulse repetition rate is 16ms or about 60Hz always. You need to vary the pulse width to control the Victor. Please take a close look at Mark's reference on page 2. The width of the pulse changes from 1ms wide to 2ms wide. At 1ms wide the Victor is in full reverse, at 1.5ms the Victor is at neutral and at 2ms the Victor is at full forward. At 1.5ms the signal will remain low for another 14.5ms. You are able to control the Victor in reverse because your rep rate is close enough for the Victor to decode useful data but not as you advance the pulse to 2ms.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #8   Spotlight this post!  
Unread 02-03-2010, 17:56
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Re: Creating PWM signal for victor

I thought something like that, but in the pdf I posted in my first post it says:
Quote:
PWM Input Rate: 15 - 30 ms
According to that my T=22 ms are ok. Hm. Anyway, I will look for another capacitor in series, that brings down the T a little bit. I will tell you if it worked.
  #9   Spotlight this post!  
Unread 02-03-2010, 21:22
sparrowkc sparrowkc is offline
Registered User
AKA: Mark
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Lees Summit
Posts: 114
sparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to behold
Re: Creating PWM signal for victor

The "filter" in the middle of some pwm cables just inverts the signal twice, forcing it to a valid logic level. I wouldn't guess that it can supply any more current than your timer chip can, but if your signal isn't clean it might help.
  #10   Spotlight this post!  
Unread 03-03-2010, 10:13
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Re: Creating PWM signal for victor

OK now I have exactly 16 ms.
I was wrong with my statement concerning the Victor 883 before. I really must have done something wrong while connecting it. Sorry at this point. Because now the 883 runs perfect with the circuit. All directions. Full Speed, Stop..everything is fine.
And it is not important if T = 16ms or 22ms. Both works.

But the Victor 884 still has the same problem. Reverse works to Stop works, but the area above 1.5 ms (which is forward) doesn't work at all. And only in this area the signal becomes unstable, too. Maybe it is a problem with the victor itself. But reverse works, so I just assumed that it is fine...
I will have to get another 884 to check that.
  #11   Spotlight this post!  
Unread 03-03-2010, 10:18
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,847
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Creating PWM signal for victor

I have several Victors that only work in one direction, so that's quite possible.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #12   Spotlight this post!  
Unread 03-03-2010, 10:25
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Re: Creating PWM signal for victor

Oh? Thanks for this information. Thats really helpful. Does your start blinking orange, too, if you apply the signal for turning in the not-working direction?
  #13   Spotlight this post!  
Unread 03-03-2010, 10:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,847
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Creating PWM signal for victor

I don't remember if any of them blink. I think that on some the light just goes out, but I haven't tested them in the broken direction in a while. They get labeled and put on a shelf for later repair if necessary.

You just need a secondary way of testing them that confirms the problem before you can be sure there is a problem. That's why I suggested an old IFI controller.

They're still useful if you have a one-way device, such as, a flywheel or shooter mechanism.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #14   Spotlight this post!  
Unread 03-03-2010, 13:36
neg0riz0r neg0riz0r is offline
Registered User
no team
 
Join Date: Feb 2010
Location: Taylor
Posts: 11
neg0riz0r is an unknown quantity at this point
Re: Creating PWM signal for victor

ok circuit works with different victor 884. This one is apparently somehow damaged. Thanks for your help.
  #15   Spotlight this post!  
Unread 11-03-2010, 04:19
semiferger semiferger is offline
Junior Member
no team
 
Join Date: Feb 2010
Location: semiferger
Posts: 4
semiferger is an unknown quantity at this point
Re: Creating PWM signal for victor

The Victor 884 has a deadband with respect to the PWM signal, which is approximately 117 to 137 . Any PWM signal within the deadband results in no output.The PWM deadband accommodates joysticks that do not return to the exact same centre. The PWM deadband effect can be overridden by Robot Controller code if needed.
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
Signal to the victor alexgou91 Electrical 4 08-01-2009 12:24
pwm signal delay 3dude_2231 Programming 14 05-10-2007 20:08
PWM Signal Noise? Danny Diaz Electrical 3 28-01-2007 17:02
Must Connect PWM cable in reverse for victor to work? Leav Electrical 3 12-01-2005 16:43
Loss of signal in PWM cables. archiver 2001 6 23-06-2002 23:29


All times are GMT -5. The time now is 07:10.

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