Go to Post Safe zones are for the weak. - ChristopherSD [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 20-08-2015, 18:15
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
A more autonomous teleop?

Hi!
We want to really step up our programming and autonomous game for next year. Our idea is that if there less human invention with the robot, the better off we will be. As an example, the robot would automatically lift the tote to a height each time it grabbed one.

What we need your help with is which sensors we can play with before next build season that might help us achieve better autonomous periods as well as teleop periods.

So far, we thought of using a sonar sensor and push sensor but I image there are many more to play with. I really want to take our code to the next level with more and better sensors so any ideas would be greatly appreciated! Thanks!
  #2   Spotlight this post!  
Unread 20-08-2015, 18:40
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 610
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: A more autonomous teleop?

Hey. Check out this thread I recently made, it has some excellent info on this topic: http://www.chiefdelphi.com/forums/sh...d.php?t=137836
In the future, try to search these things and post if you don't find any threads. That being said, it's easy to search and not find a thread because your search terms weren't specific enough. Don't worry if that happens, we've all made that mistake.
  #3   Spotlight this post!  
Unread 20-08-2015, 19:01
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 422
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: A more autonomous teleop?

I think it's okay to have a new thread since a specific application is mentioned and is in a appropriate sub thread.

The first thing is to nail down what your robot needs to know to complete the given task. Next what sensors tell you this information consistently. Third which of these outputs the simpler, faster, and easier to work with signal and corresponding data type. Fourth what is the sensor going to touch physically and where will it be. Fifth where will you get it and how much will is cost.

For this you want the robot to lift a tote to a given height once it is in the robot. So #1 you need to know if the tote is in the robot. But you really need to know if the to is in the correct position to be successfully lifted. That is to say that you don't care how far into your robot is is the important part is whether or not it is all the way into the robot. Rangefinders, and switches both give you this information but rangefinders will give you more than you need and are (albeit very slightly) more complex to program and wire.

A switch of some kind will usually be cheaper than a good rangefinder and will operate more consistently. Industrial grade limit switches are also made to work forever +/- a day or two and will give you very detailed operating parameters and dimensions in there datasheets. Another point about industrial switches is they tend to be more robust or like this switch which has a probe that bends after the switch is thrown so the part that does the switching is protected form shock or over travel. Cost wise it's $27 which isn't very bad but when you consider that company gives you a $30 voucher in the kit every year...

So that was the process I would go through to pick a sensor for that application. Unless that is you meant the position control on the lift.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
  #4   Spotlight this post!  
Unread 20-08-2015, 19:01
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liaison
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 83
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: A more autonomous teleop?

We actually did your example: our robot could automatically lift a tote to the appropriate height when it gone one. Here's how we did it:

Our robot got its totes from the human player station. A tote would slide through a ramp inside our robot and come out on the other side. There was a small touch sensor inside the ramp, so we could see when a tote was sliding through the ramp. After a delay of 1-2 seconds, we'd have our lift move to the appropriate position, taking the new tote with it.

We combined that with some more code and created a button that, when held, automatically stacked all totes coming through the human player station.

Generally, automating your robot is about two things: being able to detect whatever you need, and having a robot that can accurately do the task without human input.


The file relating to our automatic stacking can be seen here: https://github.com/FRC-1902/2015-gam...ackThread.java The programming in the code() function just loops constantly.

Hope this helps!
__________________


2016 Roles: Manipulator, Strategy Co-Lead, Programmer
2016 Orlando Regional: Quarterfinalist (Captain w/ 1557, 5557 and 4352)
2016 Rocket City Regional: Quarterfinalist (w/ 283 and 34), Regional Chairman's Award Winner
2016 Championship: N/A (had fun and was inspired, that's what counts)
-------------
2015 Role: Programmer
2015 GSCR: Quarterfinalist (w/ 4189 and 4026), Regional Chairman's Award Winner
2015 Orlando Regional: Semifinalist (w/ 456 and 86), Imagery Award Winner
2015 Championship: Pit Safety Award Winner

Last edited by Oromus : 20-08-2015 at 19:05.
  #5   Spotlight this post!  
Unread 20-08-2015, 22:29
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,685
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: A more autonomous teleop?

We tried similar "semi-automation" this year and did not succeed. Our approach was to use minimal mechanical auto-alignment and use proportional or encoded sensors. We noticed that many teams succeeded using more mechanical assurance of alignment of the game piece (commonly through an active intake feeding into a limited space), then had a very simple (usually binary, often non-contact) sensor. I have encouraged this sort of setup for our off season game, and we will probably use it as our starting point in future years.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #6   Spotlight this post!  
Unread 20-08-2015, 22:52
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: A more autonomous teleop?

Our robot was similar to 148's in that it was a multibot with one part stacking at the feeder station, and the other ferrying stacks/collecting RCs. Our stacking robot (called 'the cube') was fully autonomous. It detected an entering tote, stacked it up to 6, then went into an unloading position with the retaining gate open, waiting for the other half ('the jack') to remove it. Once it detected the stack was gone, it reset itself to begin the next stack. There was of course a manual override in case it messed up, which could be controlled by the second driver.

On the topic of second drivers, automating half of our robot allowed our robot to only be driven by a single operator. The secondary driver became a second human player, assisting the first by queuing up totes to be thrown through the chute faster. Using this method, by the off-season we were passing up to 30 totes/match into the robot. Had the 'jack' been more complex, the second driver could have assisted, but it wasn't necessary this year.
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


  #7   Spotlight this post!  
Unread 20-08-2015, 23:04
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 746
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: A more autonomous teleop?

Quote:
Originally Posted by team-4480 View Post
Hi!
We want to really step up our programming and autonomous game for next year. Our idea is that if there less human invention with the robot, the better off we will be. As an example, the robot would automatically lift the tote to a height each time it grabbed one.

What we need your help with is which sensors we can play with before next build season that might help us achieve better autonomous periods as well as teleop periods.

So far, we thought of using a sonar sensor and push sensor but I image there are many more to play with. I really want to take our code to the next level with more and better sensors so any ideas would be greatly appreciated! Thanks!
You've hit it on the nose. I'd argue that a lot of teams are more limited competitively by poor driving rather than their robot's capabilities. Making your robot easier to operate will go a long way to performing better on the field. There's two parts to this, picking the right sensor, and finding the right control algorithim.

If you're just starting out with sensors, I would highly recommend you start with encoders. Enoders simply tell you one thing; how far something has turned. Almost all off-the-shelf gearboxes for FRC have built in places to mount an encoder. For example, I noticed from pictures on your website that you were using the kitbot chassis this past season. You can purchase two encoder kits from AndyMark that will mount onto the drivetrain gearboxes on your chassis, and start experimenting with making your robot drive for a specific distance and stop.

The other side of this is software. The most common way to control something based on sensor feedback in FRC is called a PID loop. There are various tutorials and guides both on Chief Delphi and on the internet about how PID loops work.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
  #8   Spotlight this post!  
Unread 20-08-2015, 23:11
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: A more autonomous teleop?

The sensors we used to automate our cube are:

Beam-break sensors, which is an all-in-one IR sender/reciever that trips anytime something reasonably reflective is in the way. The totes were plenty reflective for several inches, and using the retro-reflective vision tape will trip them from several feet away. Putting something dark and matte behind the sensor (or just lots of open air) keeps them from tripping falsely.

We also use hall-effect sensors (can find at WCP) which detect when a magnet passes in front of it. Our tote lifter was on a chain run, and we mounted a magnet to one link of chain, and placed beam-breaks at the top and bottom in the necessary positions. The stacker simply lifted until the sensor tripped and lowered until the other one tripped.

Both these options are great because they work without contact. We found using mechanical limit switches can be tricky as they can bend over time and the positioning changes. Without contact the sensors aren't going to move, heck all of our sensors were simply Velcro-d on, so we could manually adjust them if necessary.
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


  #9   Spotlight this post!  
Unread 20-08-2015, 23:21
ShinyShips's Avatar
ShinyShips ShinyShips is offline
Former Operator and Captain
AKA: Andy
FRC #3314 (Mechanical Mustangs)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Clifton, NJ
Posts: 22
ShinyShips is on a distinguished road
Re: A more autonomous teleop?

Quote:
Originally Posted by team-4480 View Post
As an example, the robot would automatically lift the tote to a height each time it grabbed one.
We did this and a little more this season. We used encoders on our lifts, converted encoder ticks to inches and created levels at certain heights, with each button press the tote lift would go up/down a level or up/down half a level. We also used wobble switches on the front of our robot to allow our driver to more or less line up the robot and press a button to make the robot drive up to the tote, line up, and lift the tote to the next level.

This automated pick-up went to our driver so most of the time as the operator I only had to worry about our Can lift and this let me watch the field a little more.

Last edited by ShinyShips : 20-08-2015 at 23:24.
  #10   Spotlight this post!  
Unread 20-08-2015, 23:37
R.C.'s Avatar
R.C. R.C. is offline
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,186
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: A more autonomous teleop?

Quote:
Originally Posted by BBray_T1296 View Post
The sensors we used to automate our cube are:

Beam-break sensors, which is an all-in-one IR sender/reciever that trips anytime something reasonably reflective is in the way. The totes were plenty reflective for several inches, and using the retro-reflective vision tape will trip them from several feet away. Putting something dark and matte behind the sensor (or just lots of open air) keeps them from tripping falsely.
Do you have a part # for this guy? Curious what you guys used.

Thanks!
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
  #11   Spotlight this post!  
Unread 20-08-2015, 23:45
Jacob Bendicksen's Avatar
Jacob Bendicksen Jacob Bendicksen is offline
Figuring out what's next
no team
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2012
Location: United States
Posts: 771
Jacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond reputeJacob Bendicksen has a reputation beyond repute
Re: A more autonomous teleop?

If you're interested in automation, I'd highly recommend taking a look at 4488's robot from this year. Completely automated other than driving and picking up cans - I loved it.
__________________
jacobbendicksen.com | @jacobbendicksen

Yale University Class of 2020

Team 1540 | 2012-2016
7 Chairman's Awards, 6 other awards, 2015 Dean's List Finalist, 1 event win, 2 finalist finishes. Thanks for an amazing ride.
  #12   Spotlight this post!  
Unread 20-08-2015, 23:54
I_AM_Clayton's Avatar
I_AM_Clayton I_AM_Clayton is offline
Jr./Build Captain
AKA: Clayton Miller
FRC #3397 (Robolions)
Team Role: Driver
 
Join Date: Jun 2014
Rookie Year: 2010
Location: University City Missouri
Posts: 132
I_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond reputeI_AM_Clayton has a reputation beyond repute
Re: A more autonomous teleop?

We used a string potentiometer on the the top of our robot and connected it to our lift and used that to calculate distance from the top and have our lift to go to set positions.
__________________


2014 Gateway Robotics Challenge Winners with 1985 and 2481

FRC IS LIFE
Robolions 3397 pages
facebook- https://www.facebook.com/robolions3397
youtube- https://www.youtube.com/user/robolions3397
Instagram- @robolions_3397, https://instagram.com/robolions_3397/
  #13   Spotlight this post!  
Unread 20-08-2015, 23:58
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 746
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: A more autonomous teleop?

Quote:
Originally Posted by R.C. View Post
Do you have a part # for this guy? Curious what you guys used.

Thanks!
Sensors with similar functionality were included in the 2011 KOP, Rockwell Automation 42EF-D1MNAK-A2. I know 469 uses some sligthly smaller units from Allen Bradely. 5188 got a few from AutomationDirect this season. I know some teams have had luck getting them ultra cheap from China on Ebay.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
  #14   Spotlight this post!  
Unread 21-08-2015, 00:06
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: A more autonomous teleop?

we added a limit switch to detect when totes entered the bot at worlds... It would then stack them as they came really fast! Using the 1114-like ramp at school we were able to stack 6 totes in about 10 seconds instead of 22 when doing it manually.

I would also recommend adding sequences you use often to your controllers, as it will be more consistent and save time(like flipping RCs or dropping the yellow totes on the step)
__________________
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



  #15   Spotlight this post!  
Unread 21-08-2015, 00:11
jajabinx124's Avatar
jajabinx124 jajabinx124 is offline
Team 2052 Alumnus
AKA: Kshitij Wavre
no team
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Madison, WI
Posts: 541
jajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond repute
Re: A more autonomous teleop?

Team 2052 used a photo switch sensor for our robot this year, which is a sensor that detects the presence or change of light, and used it to detect whether a tote was ready to be lifted by our lifting mechanism or not (the light would change when the tote was ready to be lifted up).

We had an override for that sensor in case it didn't work.
__________________
FRC Volunteer CSA (MRI off-season event, 2017 Lake Superior Regional, 2017 10,000 Lakes Regional) 2016 - Present
FRC 2052 KnightKrawler (Team Captain, Strategist, Scouting, Programming) 2013 - 2016

1 Division Win & Einstein Appearance
3 Division Quarter-Finalists
1 Regional Chairman's Award
5 Regional Wins, 3 Regional Finalists
3 MN State Championship Wins, 1 MN State Championship Finalist
Thanks to all our alliance partners who krawled with us: 41, 70, 225, 525, 1595, 2054, 2062, 2122, 2175, 2227, 2472, 2526, 2883, 2990, 3018, 3244, 3276, 3310, 3313, 3360, 3538, 3692, 4011, 4198, 4536, 4607, 4778, 5172, 5690
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 07:06.

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