Go to Post Do whatever you must to survive within the rules, but please stay within the rules. - Kevin Sevcik [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 17-01-2015, 15:13
chmorroni chmorroni is offline
chmorroni
AKA: Christopher Morroni
FRC #3729
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Aurora, Colorado, United States
Posts: 40
chmorroni is on a distinguished road
Motor Control Rules

I have been looking for a while, but I can't find answers to the couple questions we have.

Firstly, can we control multiple (2) motors from one PWM output on the roboRIO? This wouold either be done with a PWM splitter or by connecting 2 motors to one motor controller/spike.

Also, R57 states that "Every relay module, servo, and PWM motor controller shall be connected to a corresponding port." We have, in the past, used PWM outputs to control Spikes, but I am getting the impression that this is illegal per R57. Is my logic correct, or can we still use PWM outputs to control Spikes?
  #2   Spotlight this post!  
Unread 17-01-2015, 16:01
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: Motor Control Rules

Quote:
Originally Posted by chmorroni View Post
Firstly, can we control multiple (2) motors from one PWM output on the roboRIO? This wouold either be done with a PWM splitter or by connecting 2 motors to one motor controller/spike.
You can do it with a PWM splitter cable. Only certain motors may be "doubled up" on a single speed controller; see Table 4-4 under <R42>.

Quote:
Also, R57 states that "Every relay module, servo, and PWM motor controller shall be connected to a corresponding port." We have, in the past, used PWM outputs to control Spikes, but I am getting the impression that this is illegal per R57. Is my logic correct, or can we still use PWM outputs to control Spikes?
I do not believe you have ever controlled a Spike using a PWM output. The signals are not compatible. Spike relays are controlled using relay outputs.
  #3   Spotlight this post!  
Unread 17-01-2015, 16:56
chmorroni chmorroni is offline
chmorroni
AKA: Christopher Morroni
FRC #3729
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Aurora, Colorado, United States
Posts: 40
chmorroni is on a distinguished road
Re: Motor Control Rules

Quote:
Originally Posted by Alan Anderson View Post
You can do it with a PWM splitter cable.
In my interpretation of R59, "both may not be wired simultaneously on the same device," is that a PWM splitter would be legal.

Quote:
I do not believe you have ever controlled a Spike using a PWM output. The signals are not compatible. Spike relays are controlled using relay outputs.
Really? I could have sworn we have used something other than relay ports in the past.
  #4   Spotlight this post!  
Unread 17-01-2015, 21:11
alopex_rex's Avatar
alopex_rex alopex_rex is offline
Rainbow Professionalism Dash
AKA: Scott Morton
FRC #0830 (The RatPack)
Team Role: Alumni
 
Join Date: Dec 2014
Rookie Year: 2012
Location: Ann Arbor, MI
Posts: 92
alopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond reputealopex_rex has a reputation beyond repute
Re: Motor Control Rules

Quote:
Originally Posted by chmorroni View Post
Really? I could have sworn we have used something other than relay ports in the past.
Once we used a DIO channel for a spike for our compressor, which iirc resulted in the normal compressor code not working and the spike turning off when we told it to go on and vice-versa. 0/5 stars, do not recommend.
__________________
Ratpack programming lead 2013 - 2015

ἔκλαγξαν δ᾽ ἄρ᾽ ὀϊστοὶ ἐπ᾽ ὤμων χωομένοιο / αὐτοῦ κινηθέντος: ὃ δ᾽ ἤϊε νυκτὶ ἐοικώς. (Ancient Greek nerds unite!)
  #5   Spotlight this post!  
Unread 17-01-2015, 21:26
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Motor Control Rules

Spike outputs happen to work on three wires, just like standard PWM cables. However, they are not the same sort of signal inside the wire. PWM is pulse-width modulation; it's a way of actually carrying a digital signal. The relays use one of the wires as ground and the other two as ground-power to control the two outputs on the relay module.
TL;DR:
Cables are the same, carried signals are not.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
  #6   Spotlight this post!  
Unread 18-01-2015, 11:48
chmorroni chmorroni is offline
chmorroni
AKA: Christopher Morroni
FRC #3729
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Aurora, Colorado, United States
Posts: 40
chmorroni is on a distinguished road
Re: Motor Control Rules

Quote:
Originally Posted by alopex_rex View Post
Once we used a DIO channel for a spike
That must be what I was remembering. Is there a way to get this to work reliably?
  #7   Spotlight this post!  
Unread 18-01-2015, 11:56
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Motor Control Rules

Quote:
Originally Posted by chmorroni View Post
That must be what I was remembering. Is there a way to get this to work reliably?
There's no way to get it to work legally...
  #8   Spotlight this post!  
Unread 18-01-2015, 12:59
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,798
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: Motor Control Rules

Chris,
R42 is the defining rule here which includes table 4-4. You can split PWM control to feed multiple controllers if you wish. I recommend no more than two personally. The table also lists which motors can be paralleled to work with a single controller. There is a down side to that in that the current limit must be split between the two motors. The PWM control used for motor controllers is the same control for servos provided you make the jumper to supply the required voltage.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #9   Spotlight this post!  
Unread 18-01-2015, 13:11
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Motor Control Rules

Quote:
Originally Posted by Al Skierkiewicz View Post
I recommend no more than two personally.
Why?

BTW, does anyone have the specs for the PWM input current draw for the new 2015 motor controllers?


  #10   Spotlight this post!  
Unread 18-01-2015, 13: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,798
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: Motor Control Rules

Ether, I know there is a limit to how many loads can be placed on the PWM ( I don't remember it off the top of my head) output but more than two makes it hard to diagnose an issue. Should a wayward metal part crimp one of the PWM wires and short the leads, you end up loosing a lot.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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 20:24.

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