Go to Post It’s possible to make friends without agreeing on everything. - Bill Gold [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 14-01-2015, 19:05
ZoNi7567's Avatar
ZoNi7567 ZoNi7567 is offline
Registered User
AKA: Justin
FRC #2496 (Tru Blu)
 
Join Date: Dec 2014
Rookie Year: 2013
Location: SoCal
Posts: 6
ZoNi7567 is an unknown quantity at this point
2015 Power Distribution Board Trouble

Hi. So the for the past two days our team has finished wiring the basic electronics of the 2015 Control System, including the RoboRio and 4 talons so we can start programming our drivetrain. However, even though we've triple checked our wiring and found no error when compared to the wiring layout diagram that FIRST created, and we are able to connect to our robot on the Driver Station as well as upload code, the Power Distribution Board keeps on blinking red lights for both STAT and COMM. Furthermore, even though we have solid connection on the 2015 Driver Station and our battery is always fresh, enabling the robot does nothing (Even though there is code on the roboRio it doesn't run and the code is bug-free; We tested it already on our other practice bot that used the old cRio). As the programmer, I'm thinking that it might have to do with the flashing red lights STAT and COMM on the power distribution board because everything else on our robot seems to have no error at all. Would anyone happen to know how to fix the two blinking red lights on the PDB because I have found very few answers on what TWO blinking red lights means. Furthermore, is there any real difference in the API between the 2014 and 2015 Java language for the roboRIO because I couldn't find anything on that either?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2015, 19:18
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: 2015 Power Distribution Board Trouble

Red flashing lights probably mean there is something wrong with how the PDP is connected to the roboRiO over CAN. I would check the CAN wiring again and look on the roboRIO Webdashboard to see if the PDP appears as a connected device.

As to the differences between last year's and this year's code, they are documented here: http://wpilib.screenstepslive.com/s/...e-2014-to-2015
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2015, 20:03
ZoNi7567's Avatar
ZoNi7567 ZoNi7567 is offline
Registered User
AKA: Justin
FRC #2496 (Tru Blu)
 
Join Date: Dec 2014
Rookie Year: 2013
Location: SoCal
Posts: 6
ZoNi7567 is an unknown quantity at this point
Re: 2015 Power Distribution Board Trouble

Hi Lopsided98. Our team didn't hook up a CAN. We directly connected 4 talons to 4 PWM ports on the roboRIO and hooked up power from the Blue Vbat controller on the PDB to the Input section of the roboRIO based on the 2015 Control System Wiring Layout released by First.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2015, 20:03
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: 2015 Power Distribution Board Trouble

Section 3 of the PDP User's Guide to shows that the red blink indicates "No CAN Comm."

Is the PDP's CAN port wired to the end of the CAN bus harness? If there are no other CAN devices then they go right to the roboRIO's CAN port. Also confirm if the the termination resistor jumper is set to the "ON" position.

Quote:
enabling the robot does nothing (Even though there is code on the roboRio it doesn't run and the code is bug-free; We tested it already on our other practice bot that used the old cRio). As the programmer, I'm thinking that it might have to do with the flashing red lights STAT and COMM
So the symptom you are trying to fix is: why the robot doesn't move after you deploy your code? Are you using Talon SRs or SRXs? CAN or PWM? I'm guessing Talon SRs since you went back to the cRIO. Does the DS confirm you're teleop-enabled? If so are the Talon SR LEDs solid orange (neutral zero) or blinking orange (no signal)?
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2015, 20:16
ZoNi7567's Avatar
ZoNi7567 ZoNi7567 is offline
Registered User
AKA: Justin
FRC #2496 (Tru Blu)
 
Join Date: Dec 2014
Rookie Year: 2013
Location: SoCal
Posts: 6
ZoNi7567 is an unknown quantity at this point
Re: 2015 Power Distribution Board Trouble

We aren't using the CAN on our robot. If you look at our attached photo, we wired our electrical in a simple way like the FRC Layout. I've attached the photos in a Google Drive Folder. https://drive.google.com/folderview?...&usp=sha ring

Also the DS does say that we are connected, the robot can be enabled, code IS on the robot, but no matter what I do nothing moves. I have my code in a txt file in the same Google Drive folder if anyone would like to take a look at it to see if there is any error with it

Last edited by ZoNi7567 : 14-01-2015 at 20:19.
Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2015, 20:31
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: 2015 Power Distribution Board Trouble

So when your robot is enabled and the Talons are not driving, what are the Talon SR LEDs doing?
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2015, 20:35
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: 2015 Power Distribution Board Trouble

If they are solid orange, then they are being commanded to neutral. Try debugging your logic.

If they are blinking orange, then they are not seeing a signal. Either because it's not physically in-circuit (bad pwm or connector is backwards) or the software isn't actually driving those channels.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2015, 20:40
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: 2015 Power Distribution Board Trouble

Also your Joystick constructor has a '1' instead of a '0'. I'm guessing in the Driver Station under the USB tab, the gamepad is in the '0' position. 0-indexing was introduced this year.
Reply With Quote
  #9   Spotlight this post!  
Unread 14-01-2015, 20:57
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: 2015 Power Distribution Board Trouble

You are required to use CAN to connect your PDP this year, even if you aren't going to use CAN for pneumatics or motor controllers (according to R61). Your robot won't work without it.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #10   Spotlight this post!  
Unread 15-01-2015, 09:56
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,112
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: 2015 Power Distribution Board Trouble

Summarizing what Omar and Ben have said:

Quote:
Originally Posted by ZoNi7567 View Post
...we've triple checked our wiring and found no error when compared to the wiring layout diagram that FIRST created,...
Quote:
Originally Posted by ZoNi7567 View Post
Hi Lopsided98. Our team didn't hook up a CAN.
Quote:
Originally Posted by ZoNi7567 View Post
We aren't using the CAN on our robot. If you look at our attached photo, we wired our electrical in a simple way like the FRC Layout.
That wiring layout shows a dashed yellow line for CAN between the roboRIO and the PDP. <R61> requires that it be connected. The blinking lights on the PDP are telling you that it isn't.
Reply With Quote
  #11   Spotlight this post!  
Unread 15-01-2015, 11:42
Arbalest007 Arbalest007 is offline
Registered User
FRC #2496
 
Join Date: Sep 2014
Location: Irvine, California
Posts: 19
Arbalest007 is an unknown quantity at this point
Re: 2015 Power Distribution Board Trouble

Hi Alan Anderson. I'm on the electrical team from the same team as Zoni here. So on the wiring layout, it shows that the CAN wire is connected from the roboRIO to the PDB with several Jaguars interlinked to the Pneumatics Module by a wire in between. To clarify, even if we use Talons then, we still need a wire from the roboRIO CAN Port to the Pneumatics Module then to the PDB CAN port is what you're saying? Thanks!

Last edited by Arbalest007 : 15-01-2015 at 11:46.
Reply With Quote
  #12   Spotlight this post!  
Unread 15-01-2015, 14:55
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: 2015 Power Distribution Board Trouble

Quote:
Originally Posted by lopsided98 View Post
You are required to use CAN to connect your PDP this year, even if you aren't going to use CAN for pneumatics or motor controllers (according to R61). Your robot won't work without it.
I think it's worth pointing out that a robot that does not have the PDP CAN bus wired to the roboRIO can bus will still *basically function. The features that require the PDP to be connected are the current sensing and current logging. Certainly these features are not necessary to get your robot up and driving. So you really can't blame the rest of the robot not working on the observation that the PDP is not connected correctly.

However for your robot to be legal, then yep PDP has to be wired per R61. This guarantees at a minimum that you can walk up to any comp robot (with any language or even no program code) and monitor the current draws live (self test in roboRIO Web-page configuration) and also see previously logged currents (when the viewer becomes available).

Also everyone please note that the latest rule update requires 1.37 or newer PDP firmware, which is in your FRC install directory (C:\Users\Public\Documents\FRC).

EDIT...
*one wrinkle worth explaining, since the PDP has the 120Ω term resistor built-in, you may find it to be functionally necessary to add the PDP to CAN bus when using other CAN devices. However that resistor is always in circuit inside the PDP, and therefore does not depend on the firmware state or firmware version of the PDP.

Last edited by ozrien : 15-01-2015 at 15:05.
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 20:08.

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