Go to Post Real world learning: teamwork, design, building, and testing. - Rob2713g [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 29-01-2017, 11:35
G3 6740 G3 6740 is offline
Registered User
FRC #6740
 
Join Date: Jan 2017
Location: Israel
Posts: 2
G3 6740 is an unknown quantity at this point
Question Having issues controlling multiple SPARKs

Our team is struggling with an issue controlling our SPARK motor controller, from the KOP. We use 4 SPARKs to controll our wheel's cim motors, having two spark on each set of wheels.

Each time we test the SPARKs' performance they oparate normaly when idle, that is they're LED status is solid blue (Neutral brake). But when we try to oparate the SPARKs on teleop using Labview only two SPARKs activate (Proportianal foward or Proportianal reverse). After some troubleshooting we've found out that the problem is likely with the roboRIO not sending a signal to two PWM conection.

For example :
SPARK 0,1,2,3 are connected respectevly to the roboRIOs PWM connections and the PDPs power connections, when we tell all motors to move foward only SPARK 2 and 3 worked. then we switched SPARKs 0 and 1 to PWM connections 4 and 5, only 4 and 5 worked.
In other tests similar to the exanple SPARKs 0 and 1 worked (those connected to 4 and 5).

We've checked every where we could for the issue, we checked the power connection, used different cables, used different SPARKs and made sure all the SPARKs work proparly.
Does anybody know where the issue may arrise from?
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2017, 12:41
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Leadership
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 367
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Having issues controlling multiple SPARKs

This sounds more like a code issue than an electrical issue. If you can post your code, I'm sure someone much more versed in Labview than I can double check it. As long as the PWM cables are inserted, there should be no issue, since the 0 and 1 Channels work normally without the others.
__________________

F4 Network Website Designer

2010-2012: A Whole Buncha FLL Teams; Team Spirit, Gracious Professionalism Award winner
2015-Current: FRC 1982, Captain, Electrical Lead
Beginning FIRST Volunteer

Moderator on the FIRSTwiki
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2017, 12:53
dirtbikerxz's Avatar
dirtbikerxz dirtbikerxz is offline
Captain | Driver | CAD | Junior
AKA: Rohit Gondi
FRC #3991 (KnightVision)
Team Role: Driver
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Baton Rouge, LA
Posts: 493
dirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud of
Re: Having issues controlling multiple SPARKs

It sounds like you are assigning two sparks that are controlling the same gearbox to two separate pwm ports.... Don't do that. For example if spark 1 and spark 2 are controlling two motors that are in the same gearbox, instead of connecting spark 1 and spark 2 to pwm 1 and 2 on the roborio, just split pwm 1 into 2 outputs and connect those to spark 1 and 2. Since the motors of a single gearbox will always have to be spinning in one direction, this will simplify your code, and also make sure it is impossible to make errors such as trying to spin two motors in the same gearbox in opposite directions.
__________________

Team 3991: Driver since freshman (2015-), Captain since sophomore (2016-), CADer
"The human condition is not perfect. We are not perfect specimens, any of us. We're not robots." - Michael Ovitz
My posts may or may not reflect the views of my team, they are my opinions, and mine alone.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2017, 14:18
G3 6740 G3 6740 is offline
Registered User
FRC #6740
 
Join Date: Jan 2017
Location: Israel
Posts: 2
G3 6740 is an unknown quantity at this point
Re: Having issues controlling multiple SPARKs

Quote:
Originally Posted by Bkeeneykid View Post
This sounds more like a code issue than an electrical issue. If you can post your code, I'm sure someone much more versed in Labview than I can double check it. As long as the PWM cables are inserted, there should be no issue, since the 0 and 1 Channels work normally without the others.
Sounds like a good idea, heres the files for anyone interested : https://drive.google.com/file/d/0B24...BfZU5TbWc/view
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2017, 12:39
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 191
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Having issues controlling multiple SPARKs

Quote:
Originally Posted by G3 6740 View Post
Sounds like a good idea, heres the files for anyone interested : https://drive.google.com/file/d/0B24...BfZU5TbWc/view
Hi G3 6740,

I'm sorry that you are experiencing issues. It looks like your code link is not public. I went ahead and requested access for myself, but a public link may help get more eyes on your issue. Alternatively, you can send me a link directly through a private message or contact me through our website, www.revrobotics.com.

From your description, I would agree that this looks like code issue. Once I have access, I'll take a look and see if I can pinpoint the issue.

-David
__________________
David Yanoshak
Co-founder REV Robotics | www.revrobotics.com
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 11:45.

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