Go to Post Let the team grow, let them fail, let them learn and always be ready to lend a helping hand. I think that's the best way to help rookie teams. - Justin Montois [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
  #16   Spotlight this post!  
Unread 15-01-2013, 15:33
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,104
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by electroken View Post
The PIC output is sourcing 10mA to the one Victor 883 I measured. That's a reasonable input current for the optoisolators I'm used to. I'm pretty sure (but not certain) that the 883, 884, and Talon have optoisolators at the PWM input.
10 ma should be more than adequate. How did you measure that?

Your circuit should work with the Jag. You may not get full output (see Al's post) because the Jags want a wider range on the pulse width, but it should work... Unless, perhaps, the Jag's don't like the 4 ms period. If had a Jag here I'd test it at 4ms.


  #17   Spotlight this post!  
Unread 15-01-2013, 16:09
electroken's Avatar
electroken electroken is offline
Electron Tamer
AKA: Ken Pontbriant
FRC #0230 (Gaelhawks)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Shelton, CT
Posts: 178
electroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the rough
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by Ether View Post
10 ma should be more than adequate. How did you measure that?

Your circuit should work with the Jag. You may not get full output (see Al's post) because the Jags want a wider range on the pulse width, but it should work... Unless, perhaps, the Jag's don't like the 4 ms period. If had a Jag here I'd test it at 4ms.


The input current was derived from the voltage across the 270 ohm resistor, measured with a o'scope.

In all honesty, I didn't spend too much time troubleshooting the Jag. We have plenty of non-legal 883s for our test boxes.
  #18   Spotlight this post!  
Unread 15-01-2013, 16:14
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,104
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by electroken View Post
The input current was derived from the voltage across the 270 ohm resistor, measured with a o'scope.
That's pretty definitive :-)

Since I don't have a scope, I set the pulse width equal to the period and measure it with a cheap digital multimeter.


  #19   Spotlight this post!  
Unread 15-01-2013, 16:24
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by Ether View Post
Your circuit should work with the Jag. You may not get full output (see Al's post) because the Jags want a wider range on the pulse width, but it should work... Unless, perhaps, the Jag's don't like the 4 ms period. If had a Jag here I'd test it at 4ms.
The Jaguar datasheet says 5.0125 ms minimum period.
  #20   Spotlight this post!  
Unread 15-01-2013, 16:27
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,104
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by Joe Ross View Post
The Jaguar datasheet says 5.0125 ms minimum period.
Well there ya go :-)


  #21   Spotlight this post!  
Unread 15-01-2013, 22:38
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by Joe Ross View Post
The Jaguar datasheet says 5.0125 ms minimum period.
I noticed while working with the low-level FPGA interface in LabVIEW that the DIO loop on the FPGA basically cycles every 5.05ms. In this time, it generates a pulse for every PWM that isn't being skipped (because it skips 5.05ms iterations to get 10.1ms or 20.2ms pulse periods) and it shifts out all of the relay outputs at that same interval.

I wondered why it was 5.05 and not 5.00ms, this must be why...
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #22   Spotlight this post!  
Unread 15-01-2013, 23:00
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,104
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by apalrd View Post
...I wondered why it was 5.05 and not 5.00ms, this must be why...
I'm probably missing something obvious here... why does this explain the 5.05 period?


  #23   Spotlight this post!  
Unread 15-01-2013, 23:12
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

The Jaguar spec wants 5.0125ms or greater period, according to Joe.

5ms would be a nice round number of milliseconds to use for timing the DIO loop. It's not 5ms, it's 5.05ms, which is clearly intentional because the timing is determined (in LabVIEW at least) by multiplying/dividing a bunch of things together, one of which is a 5.05 double-precision float constant. Even if it was the nearest round number, since they used a float it would have to round when converting to integer later in the math anyway since the period has to be a whole number of ticks, which itself is a whole number of 40mhz clock cycles.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #24   Spotlight this post!  
Unread 15-01-2013, 23:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,104
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Using an Non First Microcontroller with Victor 884 Motor Controller

Quote:
Originally Posted by apalrd View Post
The Jaguar spec wants 5.0125ms or greater period, according to Joe.
OK. The pronoun "this" was throwing me off. I thought it was referring to something in your preceding paragraph.

Anyway, FWIW I ran a couple of Jags for a couple of days at 5.000 ms period and never noticed a problem.




Last edited by Ether : 15-01-2013 at 23:19.
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 21:57.

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