Go to Post Innovating for the sake of innovating, reinventing the wheel is probably the second biggest pitfall you can fall into when designing an FRC robot, if the wheel is already a very optimized, good solution. - Chris is me [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 16 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-04-2015, 02:01
will4499 will4499 is offline
Registered User
FRC #4499
 
Join Date: Apr 2014
Location: Fort Collins
Posts: 9
will4499 is an unknown quantity at this point
Fastest Possible Canburglar

I wrote a python script to calculate the fastest possible canburglar you could make if it was powered by motors... it appears to be in the 20 ms range. This was inspired by the can burglar from 973 that we were putting on our robot in place of the "tail" at the championship. Let me know what you think.

I attached the python file as canburglar.txt and a pdf which I used for some of the equations. Here is the code:

import math
## Using SI Units - kg, m, s, current in Amperes, angles are printed in degrees but calculations are in radians

##System
t = 0
e = 2.718281828459045
dt = 0.001
rod_mass = .15 # kg
rod_length = 2.5 # m
hook_mass = .05 # kg
J = ((16/48) * rod_mass * (rod_length ** 2)) + hook_mass * (rod_length ** 2) ## rod moment of inertia + hook moment of inertia
angle = 0
terminalangle = 90 * (math.pi / 180) # in radians

#Motor Banebots RS-775 down-regulated to 12v
motor_num = 4
motor_stall_I = 100
motor_stall_T = 1.175
motor_free_omega = 13000 * math.pi * 2
geardown = 1
test_endpoint = 3000
print(motor_free_omega)

def getVelocity():
power_term = -((motor_stall_T * motor_num * geardown)/ (J * (motor_free_omega / geardown))) * t
return (motor_free_omega / geardown) * (1 - e ** power_term)

lowestt = 1, 1, 10000 # low geardown, high geardown, time
while (geardown <= test_endpoint):
#print("terminal velocity = " + str(motor_free_omega / geardown / (2 * math.pi)))
while angle < terminalangle:
angle += getVelocity() * dt
t += dt
print("terminal velocity = " + str(motor_free_omega / geardown / (2 * math.pi)) + " rpm " + " geardown = " + str(geardown) + " angle = " + str(angle / (math.pi / 180) ) + " t = " + str(t) + " velocity = " + str(getVelocity() / (2 * math.pi)) + " rpm " + " \n")
#print("geardown = " + str(geardown) + " angle = " + str(angle / (math.pi / 180) ) + " t = " + str(t))
if (lowestt[2] > t):
lowestt = geardown, geardown, t
elif lowestt[2] == t:
lowestt = lowestt[0], geardown, t

t = 0
angle = 0
geardown += 1

print("fastest canburglar, geardown = " + str(lowestt[0]) + " :")
geardown = lowestt[0]
while angle < terminalangle:
angle += getVelocity() * dt
t += dt
print("terminal velocity = " + str(motor_free_omega / geardown / (2 * math.pi)) + " rpm " + " geardown = " + str(geardown) + " angle = " + str(angle / (math.pi / 180) ) + " t = " + str(t) + " velocity = " + str(getVelocity() / (2 * math.pi)) + " rpm " + " \n")

if (test_endpoint == lowestt[1]):
print("******************************************* ************************************************** **********************************************")
print("**************** Warning, you may not have found the absolute minimum for cangrabber speed. Increase test_endpoint. ***********************")
print("******************************************* ************************************************** **********************************************")
else:
print(" Choose a gear ratio between " + str(lowestt[0]) + " and " + str(lowestt[1]))
Attached Files
File Type: pdf motors.pdf (546.5 KB, 40 views)
File Type: txt canburglar.txt (2.6 KB, 35 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 27-04-2015, 07:29
Bryce Paputa's Avatar
Bryce Paputa Bryce Paputa is offline
FF TSL: Frog Farce
FRC #0503 (Frog Force)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Novi Michigan
Posts: 454
Bryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond reputeBryce Paputa has a reputation beyond repute
Re: Fastest Possible Canburglar

Only four rs775s? With four CIMs we got .18 seconds.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-04-2015, 08:05
carpedav000's Avatar
carpedav000 carpedav000 is offline
Studenting is hard, but worth it!
AKA: David Carpenter
no team (Jerry-Rigg school of DuctTapeology)
Team Role: Mechanical
 
Join Date: Jan 2015
Rookie Year: 2010
Location: Greenwood, IN
Posts: 465
carpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant futurecarpedav000 has a brilliant future
Re: Fastest Possible Canburglar

What about elastic//spring powered? I could see that being much faster.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-04-2015, 08:15
Bennett548 Bennett548 is offline
Engineering Mentor
AKA: Steve Bennett
FRC #0548 (Robostangs)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2004
Location: MI
Posts: 82
Bennett548 is just really niceBennett548 is just really niceBennett548 is just really niceBennett548 is just really nice
Re: Fastest Possible Canburglar

You can get slightly faster times if the gear ratio is not constant. A linkage or, non-round pulley or sprocket set can accomplish this.

Do you account for voltage drop? Stalling all those motors drops the voltage considerably.

Do you consider the inertia of the motors? With the gear reduction, they end up making a significant contribution to the inertia of the system.

This is a good first step. Simulations should always start simply, and add other factors and complexity as you prove it out.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-04-2015, 13:39
RoboChair's Avatar
RoboChair RoboChair is offline
He who fixes with hammers #tsimfd
AKA: Devin Castellucci
FRC #1678 (Citrus Circuits and 5458 Digital Minds)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Davis, CA
Posts: 607
RoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond reputeRoboChair has a reputation beyond repute
Re: Fastest Possible Canburglar

Quote:
Originally Posted by carpedav000 View Post
What about elastic//spring powered? I could see that being much faster.
This guy knows whats up.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-04-2015, 14:04
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,087
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Fastest Possible Canburglar

I'll explain when I have a few minutes and not on my cell phone, but we figured out a way to start in the holes legally. It was cheesecaked onto our 4th bot, but since it basically put a robot out of commission it wasn't worth playing in finals. Plus we were not exactly sure if it would be called legal or not, even though it was 100% within the rules and within the field.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-04-2015, 14:15
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Fastest Possible Canburglar

Quote:
Originally Posted by Thad House View Post
I'll explain when I have a few minutes and not on my cell phone, but we figured out a way to start in the holes legally. It was cheesecaked onto our 4th bot, but since it basically put a robot out of commission it wasn't worth playing in finals. Plus we were not exactly sure if it would be called legal or not, even though it was 100% within the rules and within the field.
I heard about this, double checked all the pertinent rules, and then grinned ear to ear. I'll let you post the details, but I was definitely blown away by your creativity.

One interesting aspect of this game is that the canburglar wars didn't really start until the last day of the season (as predicted by many). A side effect of this is that the canburglar rules/corner cases/how rules would be enforced by inspectors and referees were not really tested until Championships. Harpoon guns, crossbows, tennis balls on strings, hundreds of pounds of spring force, loopholes - there was a little of everything.
Reply With Quote
  #8   Spotlight this post!  
Unread 27-04-2015, 14:27
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Fastest Possible Canburglar

Quote:
Originally Posted by Thad House View Post
I'll explain when I have a few minutes and not on my cell phone, but we figured out a way to start in the holes legally. It was cheesecaked onto our 4th bot, but since it basically put a robot out of commission it wasn't worth playing in finals. Plus we were not exactly sure if it would be called legal or not, even though it was 100% within the rules and within the field.
I'm interested, posting so I can remember to come back later.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-04-2015, 14:31
MaGiC_PiKaChU's Avatar
MaGiC_PiKaChU MaGiC_PiKaChU is offline
Drive Coach
AKA: Antoine L.
FRC #3360 (Hyperion)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Sherbrooke
Posts: 608
MaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond repute
Re: Fastest Possible Canburglar

Quote:
Originally Posted by Thad House View Post
I'll explain when I have a few minutes and not on my cell phone, but we figured out a way to start in the holes legally. It was cheesecaked onto our 4th bot, but since it basically put a robot out of commission it wasn't worth playing in finals. Plus we were not exactly sure if it would be called legal or not, even though it was 100% within the rules and within the field.
I also found a flaw... hope we've found the same
__________________
2012 - 3360 - Junior member
2013 - 3360 - Lead Programmer, Human player
2014 - 3360 - Lead Programmer, Human player
2015 - 3360 - Lead Programmer, Driver
2016 - 3360 - Mentor, Drive coach



Reply With Quote
  #10   Spotlight this post!  
Unread 27-04-2015, 14:31
Navid Shafa Navid Shafa is offline
FIRST Hiatus/Retired?
no team
Team Role: Alumni
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Seattle, WA
Posts: 1,527
Navid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond repute
Re: Fastest Possible Canburglar

Quote:
Originally Posted by Thad House View Post
I'll explain when I have a few minutes and not on my cell phone, but we figured out a way to start in the holes legally. It was cheesecaked onto our 4th bot, but since it basically put a robot out of commission it wasn't worth playing in finals. Plus we were not exactly sure if it would be called legal or not, even though it was 100% within the rules and within the field.
Your interpretation is entirely legal by the rules, and It definitely would have broken the game. Please post pictures when you can. From the descriptions I can only imagine how massive this thing would be.

The real question is do you think you could do all the set-up required in under 60 seconds?
__________________
2015 & 2016 Fantasy FIRST Champions [Rotten Fruit Alliance]
Elgin Clock Award Winners: '13, '15, '16

Team 1983 | Alumnus, Former Mentor| Team_ 360 | Former Coach | Team 5803 | Former Mentor

"Once a Skunk, Always a Skunk"

Founding Member

Last edited by Navid Shafa : 27-04-2015 at 14:34.
Reply With Quote
  #11   Spotlight this post!  
Unread 27-04-2015, 14:32
Bennett548 Bennett548 is offline
Engineering Mentor
AKA: Steve Bennett
FRC #0548 (Robostangs)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2004
Location: MI
Posts: 82
Bennett548 is just really niceBennett548 is just really niceBennett548 is just really niceBennett548 is just really nice
Re: Fastest Possible Canburglar

Ha! Nice find! I wish you had done it, it might have led to some interesting and productive discussions regarding lawyering and the assumed intent of the rules.

I asked a head ref about a similar case, and he said that he couldn't rule without seeing it, but said he would probably have asked the team to come back and fix the offending mechanism.
Reply With Quote
  #12   Spotlight this post!  
Unread 27-04-2015, 14:39
Lil' Lavery Lil' Lavery is offline
TSIMFD
AKA: Sean Lavery
FRC #1712 (DAWGMA)
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Philadelphia, PA
Posts: 6,600
Lil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond repute
Send a message via AIM to Lil' Lavery
Re: Fastest Possible Canburglar

<G10> does not require set-up in less than 60 seconds, only that set-up must not cause a significant or repeated delay to starting a match. The 60 section portion in the blue box is simply an example. There is not set time to when a 60 second clock would start, how to distinguish it from regular autonomous set up (which frequently takes longer than 60 seconds), etc.

I am very curious as to how it satisfied <G7> B&C while being within the field borders, though.
__________________
Being correct doesn't mean you don't have to explain yourself.
Reply With Quote
  #13   Spotlight this post!  
Unread 27-04-2015, 14:42
Navid Shafa Navid Shafa is offline
FIRST Hiatus/Retired?
no team
Team Role: Alumni
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Seattle, WA
Posts: 1,527
Navid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond repute
Re: Fastest Possible Canburglar

Quote:
Originally Posted by Lil' Lavery View Post
<G10> does not require set-up in less than 60 seconds, only that set-up must not cause a significant or repeated delay to starting a match. The 60 section portion in the blue box is simply an example. There is not set time to when a 60 second clock would start, how to distinguish it from regular autonomous set up (which frequently takes longer than 60 seconds), etc.
This was often not enforced as intended. Seeing refs standing around kids with stopwatches at events this year looking to peg people was disappointing to say the least.
__________________
2015 & 2016 Fantasy FIRST Champions [Rotten Fruit Alliance]
Elgin Clock Award Winners: '13, '15, '16

Team 1983 | Alumnus, Former Mentor| Team_ 360 | Former Coach | Team 5803 | Former Mentor

"Once a Skunk, Always a Skunk"

Founding Member
Reply With Quote
  #14   Spotlight this post!  
Unread 27-04-2015, 14:43
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 945
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Fastest Possible Canburglar

FIELD includes the width of the guardrail, and LANDFILL ZONE doesn't include the "and including" wording. That's my guess.

Quote:
FIELD – a roughly 27 ft. x 54 ft. carpeted area, bounded by and including the GUARDRAILS and ALLIANCE WALLS.

LANDFILL ZONE – the infinitely tall volume bound by the plastic lip of the STEP on the ALLIANCE’S side of the FIELD, the GUARDRAIL on
each side, and the landfill line (excluding the tape).
Reply With Quote
  #15   Spotlight this post!  
Unread 27-04-2015, 14:54
Navid Shafa Navid Shafa is offline
FIRST Hiatus/Retired?
no team
Team Role: Alumni
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Seattle, WA
Posts: 1,527
Navid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond reputeNavid Shafa has a reputation beyond repute
Re: Fastest Possible Canburglar

Quote:
Originally Posted by BigJ View Post
FIELD includes the width of the guardrail, and LANDFILL ZONE doesn't include the "and including" wording. That's my guess.
Bingo
__________________
2015 & 2016 Fantasy FIRST Champions [Rotten Fruit Alliance]
Elgin Clock Award Winners: '13, '15, '16

Team 1983 | Alumnus, Former Mentor| Team_ 360 | Former Coach | Team 5803 | Former Mentor

"Once a Skunk, Always a Skunk"

Founding Member
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 05:16.

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