Go to Post Iteration is something everyone can do. - [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2015, 08:49
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,717
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Two Motors one PWM help?

Quote:
Originally Posted by RoboBucs View Post
Ok, so the way it's set up, we have two motors hooked up to PWM 2, and the other two motors are hooked up to one each, PWM 0, and PWM 1. We can get the ones in PWM 0 and 1 to work, but it's the one in PWM 2 that we are having trouble with. It seems to be wired electrically fine I just can't get it work in labview. If it helps I can post some screenshots of what we have, just tell me if you need them.
This unfortunately is not legal, each motor controller must be hooked up to one port.

Quote:
R57 Every relay module, servo, PWM motor controller shall be connected to a corresponding port on the roboRIO or via a legal MXP connection.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2015, 09:34
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 257
Jefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant futureJefferson has a brilliant future
Re: Two Motors one PWM help?

Quote:
Originally Posted by notmattlythgoe View Post
This unfortunately is not legal, each motor controller must be hooked up to one port.
Of course I'm not on the GDC, but I don't believe you are interpreting that correctly. The rule is there to prohibit teams from controlling servos, motor controllers, and relays with things other than the roboRIO. So a team can't have a Talon PWM cable plugged into an Arduino. It must go directly to the roboRIO.
I've never seen anything outlawing PWM splitters. In fact, they were included in the kit for years. Maybe as recently as 2013?

Now back to OP: are all of these motors drive motors? If so, why not have both sides on PWM splitters or both sides on two PWM outputs. Seems like things are necessarily complicated.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2015, 10:25
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,770
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: Two Motors one PWM help?

Quote:
Originally Posted by notmattlythgoe View Post
This unfortunately is not legal, each motor controller must be hooked up to one port.
Matt,
R57 Every relay module, servo, and PWM motor controller shall be connected to a corresponding port (relays to Relay ports, servos and PWM controllers to PWM ports) on the roboRIO or via a legal MXP connection (per R58). They shall not be controlled by signals from any other source.

This actually provides that no other source can be used to provide control for the listed devices except the RoboRio. This is safety issue in that we know the RoboRio can be disabled/enabled via the FMS. Other devices likely would not provide this level of control and might cause robot movement when the robot is disabled. That is the underlying reason, active MXP boards must be pre-approved by FIRST Engineering.

To the OP, how are your two motors designed to operate? Are they connected together on a mechanism? Can you tell us what indications on the motor controllers are present?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2015, 10:26
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,717
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Two Motors one PWM help?

Quote:
Originally Posted by Al Skierkiewicz View Post
Matt,
R57 Every relay module, servo, and PWM motor controller shall be connected to a corresponding port (relays to Relay ports, servos and PWM controllers to PWM ports) on the roboRIO or via a legal MXP connection (per R58). They shall not be controlled by signals from any other source.

This actually provides that no other source can be used to provide control for the listed devices except the RoboRio. This is safety issue in that we know the RoboRio can be disabled/enabled via the FMS. Other devices likely would not provide this level of control and might cause robot movement when the robot is disabled. That is the underlying reason, active MXP boards must be pre-approved by FIRST Engineering.

To the OP, how are your two motors designed to operate? Are they connected together on a mechanism? Can you tell us what indications on the motor controllers are present?
Jefferson, thanks for the correction.

Al, thanks for the verification.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2015, 14:30
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Re: Two Motors one PWM help?

Quote:
Originally Posted by Al Skierkiewicz View Post
Matt,
R57 Every relay module, servo, and PWM motor controller shall be connected to a corresponding port (relays to Relay ports, servos and PWM controllers to PWM ports) on the roboRIO or via a legal MXP connection (per R58). They shall not be controlled by signals from any other source.

This actually provides that no other source can be used to provide control for the listed devices except the RoboRio. This is safety issue in that we know the RoboRio can be disabled/enabled via the FMS. Other devices likely would not provide this level of control and might cause robot movement when the robot is disabled. That is the underlying reason, active MXP boards must be pre-approved by FIRST Engineering.

To the OP, how are your two motors designed to operate? Are they connected together on a mechanism? Can you tell us what indications on the motor controllers are present?
We used a wire splitter to connect two of the four talon drive motors we have to a single PWM. Again I believe the wiring is fine, here some pocture of what we have in labview.
[IMG][/IMG]
[IMG][/IMG]
[IMG][/IMG]
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2015, 14:51
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,795
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: Two Motors one PWM help?

A few things are wrong here.

If all four of these motors are for driving, then you need some consistency.
Either:
  1. Change Open 2 Motor to Open 4 Motor in Begin and use 4 PWM outputs
  2. Or keep Open 2 Motor and use PWM Y splitters on both sides of your drive train
The immediate things wrong with what you are doing:
PWM 0 and PWM 1 are signals for opposite sides of the drive train. So those are where your two splitters should come from. One splitter for each side.
The Arcade Drive is mixing the joystick x/y to produce the correct PWM0 & 1 outputs. The Dual Motors isn't compatible that that.

Motor Set Output has an incorrect wire.
The one with the red dot needs to be removed.
It looks like you are trying to treat it like Arcade Drive. It isn't.

There are duplicates for Robot Drive Motors, Joystick 1/Axes/Buttons, etc. setting every one of these in two places. Only one will win.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-01-2015 at 14:55.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2015, 17:21
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Re: Two Motors one PWM help?

Quote:
Originally Posted by Mark McLeod View Post
A few things are wrong here.

If all four of these motors are for driving, then you need some consistency.
Either:
  1. Change Open 2 Motor to Open 4 Motor in Begin and use 4 PWM outputs
  2. Or keep Open 2 Motor and use PWM Y splitters on both sides of your drive train
The immediate things wrong with what you are doing:
PWM 0 and PWM 1 are signals for opposite sides of the drive train. So those are where your two splitters should come from. One splitter for each side.
The Arcade Drive is mixing the joystick x/y to produce the correct PWM0 & 1 outputs. The Dual Motors isn't compatible that that.

Motor Set Output has an incorrect wire.
The one with the red dot needs to be removed.
It looks like you are trying to treat it like Arcade Drive. It isn't.

There are duplicates for Robot Drive Motors, Joystick 1/Axes/Buttons, etc. setting every one of these in two places. Only one will win.
YES it worked!!! Thank you so much!
Reply With Quote
Reply


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 08:53.

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