Go to Post We all need to remember to be careful at these competitions. Danger lies in the most unexpected (and comical) places. - Alexander McGee [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 25-01-2014, 14:11
Dr. Poptart's Avatar
Dr. Poptart Dr. Poptart is offline
Registered User
AKA: Ysidro Perez
FRC #1817 (LLano Estacado RoboRaiders)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2012
Location: San Antonio
Posts: 8
Dr. Poptart is an unknown quantity at this point
Robot not driving and programmer is unavailable

Team 3345 mentor here.

We're in a bit of a bind. We've managed to put together our drivetrain, using two motors per side, and tried to image the cRIO with our program from last year (time-constricted programmer). Whenever we try to drive, it seems like the gearbox motors fight against each other, but we're not sure at this point if the problem is that or if we've got an issue with the motor controllers. As I've said earlier, our programmer is a bit busy at the moment and can't seem to find the time to debug or even rewrite the program. We've tried switching motor inputs on the sidecar to match those from last year's robot (which the code we're using was made for).

We've tried asking him to just rewrite the code, but that doesn't seem to get through to him.

The two motors on the left side of the drivetrain are connected to sidecar ports 2 and 4, whereas the two on the right are connected to ports 1 and 3.

I don't have the code to put up at this moment but as soon as I can get it I'll edit this and put it up for you guys. As for now, I just want to know if any programmer in the area of my school (3200 McCullough Avenue, San Antonio, Texas, 78201) can perhaps come over and teach some of our more available members to program in any language (we're using Java at the moment, but any language is fine), we would really appreciate it.


  #2   Spotlight this post!  
Unread 25-01-2014, 14:14
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Robot not driving and programmer is unavailable

I would use a PWM splitter from the KOP to connect he motors from each side to the same output on the DSC to make sure that both motors from each side are turning the same way at the same speed at the same time. Otherwise, there is a very serious danger of something breaking. Also, you don't have to adjust the code for it!
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
  #3   Spotlight this post!  
Unread 25-01-2014, 16:54
Dr. Poptart's Avatar
Dr. Poptart Dr. Poptart is offline
Registered User
AKA: Ysidro Perez
FRC #1817 (LLano Estacado RoboRaiders)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2012
Location: San Antonio
Posts: 8
Dr. Poptart is an unknown quantity at this point
Re: Robot not driving and programmer is unavailable

Quote:
Originally Posted by Whippet View Post
I would use a PWM splitter from the KOP to connect he motors from each side to the same output on the DSC...
Thanks, I was thinking of doing this from the start but I just got around to it. That solved our movement problem, but now we've got another two problems on our hands. The first one we can fix - when we move forward, one side moves forward while the other moves backwards. This behavior persists through all movements as expected. We can solve that.

But we're also getting some issues with just driving. The left set of wheels will only move at very low speeds and behavior is unpredictable; sometimes it behaves as explained, and sometimes it just won't move at all. The right side can handle a bit more speed, but when I push our control joystick all the way forward the wheels stop and there is a stripping sort of sound in the gearbox. An outside mentor has suggested that perhaps one or more of the gearbox motors' keys may have slipped off. We're looking into the issue now. Does anyone else have any other ideas?
  #4   Spotlight this post!  
Unread 25-01-2014, 18:22
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,089
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Robot not driving and programmer is unavailable

Quote:
Originally Posted by Dr. Poptart View Post
Thanks, I was thinking of doing this from the start but I just got around to it. That solved our movement problem, but now we've got another two problems on our hands. The first one we can fix - when we move forward, one side moves forward while the other moves backwards. This behavior persists through all movements as expected. We can solve that.
This is actually an expected behavior on most drive trains. You need to reverse one side in code. Like you said it's a very easy fix.

Quote:
But we're also getting some issues with just driving. The left set of wheels will only move at very low speeds and behavior is unpredictable; sometimes it behaves as explained, and sometimes it just won't move at all. The right side can handle a bit more speed, but when I push our control joystick all the way forward the wheels stop and there is a stripping sort of sound in the gearbox. An outside mentor has suggested that perhaps one or more of the gearbox motors' keys may have slipped off. We're looking into the issue now. Does anyone else have any other ideas?
Make sure both motors in each gearbox are being powered. The easiest way to do this it to check the temperature of both motors after a long period of driving.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #5   Spotlight this post!  
Unread 25-01-2014, 18:22
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Robot not driving and programmer is unavailable

Since you have two motors per side you need to make sure that both motor controllers are driving the wheels in the same direction so that the motors are not fighting each other.

There are many ways to do this, one of the simplest ways is remove all the drivetrain motor controller breakers from the power distribution board.

Then plug in only one breaker, turn the robot on, and spin that side of the drive train with the joystick controls, and note which direction the wheel spins. Turn the bot off, Remove that breaker and plug in the breaker for the other motor controller for the same side of the drive train. Turn the robot back on, and drive the wheel again, noting the direction the wheel spins.

Repeat this for the other side as well. If you have a single side, where the wheel spins in opposite directions, then your motors are fighting each other, and you need to correct it.

If this is the case, and you do not have the option to fix it in code, you can safely invert the wires on the MOTOR side of the motor controller, to get the motor spinning in the correct orientation.

Note: Make sure you only invert the M side of the motor controller, because inverting the power side, will fry the motor controller.

Hope this helps,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
  #6   Spotlight this post!  
Unread 29-01-2014, 21:46
Dr. Poptart's Avatar
Dr. Poptart Dr. Poptart is offline
Registered User
AKA: Ysidro Perez
FRC #1817 (LLano Estacado RoboRaiders)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2012
Location: San Antonio
Posts: 8
Dr. Poptart is an unknown quantity at this point
Re: Robot not driving and programmer is unavailable

SOLVED
Thank you, everybody. Your help is much appreciated!
  #7   Spotlight this post!  
Unread 29-01-2014, 22:02
Pratik Kunapuli's Avatar
Pratik Kunapuli Pratik Kunapuli is offline
Probably browning-out on Astro-Turf
FRC #1648 (G3 Robotics)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Atlanta, GA
Posts: 143
Pratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to allPratik Kunapuli is a name known to all
Re: Robot not driving and programmer is unavailable

Just a reminder that the speed controllers also need to be calibrated for the best performance.
__________________
Official Driving Record: 101-59-0
2012-2015 Student 341 Miss Daisy
2015-Current Mentor 1648 G3 Robotics
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 02:38.

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