sample project by haoken

Upload: bakubyron

Post on 09-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 Sample project by Haoken

    1/52

    By:

    Students:FernandoandBillySupervisor:Haoken

  • 8/7/2019 Sample project by Haoken

    2/52

    Design,buildandprogramaRobot

    thatfollowstheobstaclewaytillmissionpointandthencarriesasmanyping-pongballsaspossibletobasecamp.

  • 8/7/2019 Sample project by Haoken

    3/52

    Rules 1)Thetimeforrobotsmissionperformanceis2

    minutes.Timeismeasuredatthepointthatrobotstartsandjudgeblowsawhistleforsignalofstarting.

    2)Robotmuststartfromstartarea.Anypartoftherobotisnotallowedtoexceedthestartareabefore

    itstarts. 3)Goingalongtheway,ifbothwheelsofrobotare

    runoffthecourse,thematchwillbequittedimmediatelyandonlyscorewhichobtainedjustbeforewillbeapproved.

    4)Robotisnotallowedtoturnbacktothewaywhereitstarted.Ex:ifrobotstartedontheAline,itmustturnbacktothebasecampintheBorCline.

  • 8/7/2019 Sample project by Haoken

    4/52

    5)Robotstartsfromthebasecamp,performsmissionsandcomesbacktothebasecamp.Whenthebodyofrobotistouchedwiththebasecamp,thematchiscompleted.

    6)Ifcontestanttouchestherobotoutofthebasecampafteritstarts,contestantwillbedisqualified.

    7)Robothasonechancetoachievethemission.Togetmissionpoints,Robotmustcompletelypassthroughallmissionareas.

  • 8/7/2019 Sample project by Haoken

    5/52

    Regulationsaboutrobot: 1.Themaximumdimensionsoftherobotbeforeit

    startsmustbewithin250mm250mm250mm.Afterrobotstarts,thedimensionoftherobotisnotrestricted.

    2.Teamsareallowedonlyonecontroller(RCXorNXT).

    3.Amountsofmotorsandsensorsarenotrestricted. 4.Anyactionsormovementsbytheparticipants

    arenotallowedtointerfereorassisttherobot

    whileitisrunning.Teamsthatviolatethisrulewillbedisqualifiedatthatmatch.

  • 8/7/2019 Sample project by Haoken

    6/52

    5.Arobotmustbeautonomousandfinishthemissionsbyitself.Anyradiocommunication,remotecontrolandwiredcontrolsystemsarenotallowedwhiletherobotisrunning.Teamsinviolationofthisrulewillbe

    disqualifiedandmustquitthecompetitionimmediately.

    6.IfrobotisequippedwithNXTasacontroller,theBluetoothfunctionmustbeswitchedoffand

    downloadingprogramsmustbedonethroughUSBcable.

  • 8/7/2019 Sample project by Haoken

    7/52

    MATERIALS: 1.Court

  • 8/7/2019 Sample project by Haoken

    8/52

    2)Onehundredandorangecoloredping-pongballs

    2.LEGOMINDSTORMSTMEducationNXTsetsandresourcesets

  • 8/7/2019 Sample project by Haoken

    9/52

    3.LEGOMINDSTORMSTMNXTV2software

    4.StopWatch5,Laptop 6.DigitalCamera

  • 8/7/2019 Sample project by Haoken

    10/52

    BACKGROUNDINFORMATIONTheLEGOMINDSTORMSNXTSystem PhysicsisfunandRobotsarefascinating.Theconcept

    ofnonlivingmaterialsperformingcomplicatedtasksallbythemselvesistrulyamazing!

  • 8/7/2019 Sample project by Haoken

    11/52

    LegoMindstormsNXTisaprogrammableroboticskitreleasedbyLegoinJuly2006,replacingthefirst-generationLEGOMindstormskit.

  • 8/7/2019 Sample project by Haoken

    12/52

    Thekitconsistsof519Technicpieces,3servomotors,4sensors(ultrasonic,sound,touch,andlight),7connectioncables,aUSBinterfacecable,andtheNXTIntelligentBrick.

  • 8/7/2019 Sample project by Haoken

    13/52

  • 8/7/2019 Sample project by Haoken

    14/52

    Therobot's"brain!"Theall-newNXTIntelligentBrick,our

    robotsbrain,featuresapowerful32-bitmicroprocessorandFlashmemory.TheNXTintelligentBrickincludes:

  • 8/7/2019 Sample project by Haoken

    15/52

    Ourrobot's"eyes!" TheUltrasonicSensorhelpsourrobotjudgedistances

    and"see"whereobjectsare!UsingtheNXTBrick,theUltrasonicSensorisabletodetectanobjectandmeasureitsproximityininchesorcentimeters.

  • 8/7/2019 Sample project by Haoken

    16/52

    Detectlightintensity! TheLightSensorassistsinhelpingourrobotto"see."

    UsingtheNXTBrick,itenablesourrobottodistinguishbetweenlightanddark,aswellasdeterminethelightintensityinaroomorthelightintensityofdifferentcolors.

  • 8/7/2019 Sample project by Haoken

    17/52

    Takeprecisesteps! TheServoMotorhasabuilt-inrotationsensorthat

    measuresspeedanddistance,andreportsbacktotheNXTIntelligentBrick.Thisallowsforprecisestepsandcompletemotorcontrolwithinonedegreeofaccuracy!Severalmotorscanbealignedtodriveatthesamespeed.

  • 8/7/2019 Sample project by Haoken

    18/52

    Ourrobot's"fingers!"

    TheTouchSensorreactstotouchandrelease,enablingyourroboticcreationto"feel"likeneverbefore!Itcandetectsingleormultiplebuttonpresses,andreportsbacktotheNXTIntelligentBrick(soldseparately.)

  • 8/7/2019 Sample project by Haoken

    19/52

    Ourrobot's"ears!" UsingtheNXTBrick,theSoundSensorallowsourrobot

    tohear!TheSoundSensorisabletomeasurenoiselevelsinbothdB(decibels)anddBA(frequenciesaround36kHzwherethehumanearismostsensitive),aswellasrecognizesoundpatternsandidentifytonedifferences.

  • 8/7/2019 Sample project by Haoken

    20/52

    TheProgrammingLanguageAlthoughthepreviouslymentionedpartsmakeupthe

    entirephysicaldesignoftherobot,Theywontdo

    anythingwithoutaprogram.TheNXTsystemsprogramminglanguage,whichiscalledNXT-Gisagraphical,drag-and-droplanguagethatwehavefoundtobesoftware.

    Whenprogramming,wecanchoosefrommanydifferenttypesofprogrammingblocks,eachofwhichdirectstherobottoperformaspecificaction(suchasmovingamotor,playingasoundandsoon).

  • 8/7/2019 Sample project by Haoken

    21/52

    NXT-GEducationVersion

  • 8/7/2019 Sample project by Haoken

    22/52

    HARDWARECHALLENGESDesigningandOperatingUltimateGrabbermechanism

    Wedividetheprocessofgrabbingballsintofoursteps:

    1,findobjects(balls) 2,distinguishtargetobjectsfromwallsorotherobstacles. 3,positionthegrabberincorrectorientation 4,operatethegrabbertocatchtheobjects(balls)

  • 8/7/2019 Sample project by Haoken

    23/52

    Theproblemwithusingmotorsisnotinopeningorclosingthehand;itsingettingthehandtoapplycontinuouspressureontheobjecttopreventballs

    fromfalling.Thismeanswecannotjustpositionthefingersaroundthem.

  • 8/7/2019 Sample project by Haoken

    24/52

    Wemustalsoexertaforcethattightensaroundtheballseventhoughwearenot

    movingthefingersanymore.NXTservomotorsaremorerobustandcan

    withstandshort-termstalling(havingthem

    poweredbuttheirmovementblocked).Theyare,however,extremelypower-hungryandwouldwastealotofourbatteries

    powerdoingso.Long-termstallmaystillheatuptheservomotors,andalthoughtheyhaveaprotectionoverheatingisstillundesirable.

  • 8/7/2019 Sample project by Haoken

    25/52

    Ourcompact,lightweightgrabber

  • 8/7/2019 Sample project by Haoken

    26/52

    Weneedacompact,lightweightgrabberforourliftingandgrabbingmechanism.

    Theultimategrabbingsystemwehavedesignedforlastsixmonthsallowsustotransfermotiontodistantpartsthrough

    numberofgearsthatpreciselylocatedanddesignedforspecificpurposes,awayfromthemotors.Apairofopposingfingersintroducedadegreeofelasticityintothesystem,andhelpsthefingerscloseandopenbasedonourprecisedegreeandpowerwhichwesetduringour

    programming.

  • 8/7/2019 Sample project by Haoken

    27/52

    BecomingMobile Mostrobotsaredesignedwithsomekindofmobility

    inmind.Motionmakesourcreaturesanimatedandalive,andoffersalimitlessnumberofinteresting,fun,andchallengingprojectswithwhichtotestourcreativityandskills.

    Mostmobilerobotsbelongtooneoftwocategories:wheeledrobotsorleggedrobots.Thoughlegsprovideaneffectivewaytomoveonroughterrains,wheelsaregenerallymuchmoreefficientonsmoothsurfacesjust

    likeourcourt.Afternumerousexperiments,wedesignedandfinallydecidedtousea6-wheeledskid-steerdrivemechanismforourrobot.

  • 8/7/2019 Sample project by Haoken

    28/52

    Buildinga6-wheeldSkid-SteerDrive Theadvantageofourskid-steerdriveisitscapability

    toturnonthespot,whichallowsourrobottooperate

    intightarea.Thedownsidetothisisthatwhenturningthereisalotoffrictiononsurfacessuchasourcourt.However,weovercomedthisfrictionthroughourprogrammingskills.

  • 8/7/2019 Sample project by Haoken

    29/52

    Our6-wheeledskid-steerdriverequiresatrickiersetup.Wemusttransmitthepowertoallthewheels;otherwise,ourplatformwontturnsmoothly,oritmightnoteventurnatall.Themodelshowninfigureusesacombinationofnumberof24tand40tgearsconnectedtotwomotors.Thisplatformproofsbestrong,fast,compact,andlight.WecanaddanNXT,andthereisplentyofroomforsensors,andevenourultimategrabberarm.

  • 8/7/2019 Sample project by Haoken

    30/52

  • 8/7/2019 Sample project by Haoken

    31/52

  • 8/7/2019 Sample project by Haoken

    32/52

    PROGRAMMINGCHALLENGES

    Knowingwhereweare?Afterourfirstfewmonthofexperimentingwith

    robotics,webegantowonderiftherewasasimplewaytomakeourrobotknowwhereitwasandwhereitwasgoinginotherwords,wewanttocreatesomekindofnavigationsystemabletoestablishitspositionanddirection.Thereisnosinglemethodfordeterminingthepositionandorientationofarobot,

    butwecancombineseveraldifferenttechniquestogetusefulandreliableresults.

  • 8/7/2019 Sample project by Haoken

    33/52

    Linefollowing,whichwehaveusedinthisproject,isprobablythesimplestandmostreliable

    navigationbasedonourcourt.Sayingthatthelightsensorseeisdefinitelytoostrongastatement.Whatitactuallydoesisdetectambientlightandmeasureitsintensity.

  • 8/7/2019 Sample project by Haoken

    34/52

    3-Stagesprocess Stage1FromBasecamptoMissionArea

    Stage2MissionArea(OperatingandLoadingtheBallsusingGrabber)

    Stage3:FromMissionAreabacktoBaseCamp?(Normallywecallit:PulangKampung)

  • 8/7/2019 Sample project by Haoken

    35/52

    BasecamptoMissionAreaMovingtowardsthemissionareaandusinglightsensorstopositionTheGrabberBotinstraightposition.

  • 8/7/2019 Sample project by Haoken

    36/52

    CombinationofmotorA&grabbermechanismtoexpandthewings

  • 8/7/2019 Sample project by Haoken

    37/52

    UsingMyblockstomakeourprogramsimple.MyblocksareselfcontainedpiecesofNXT-GCodethatwecandefineandpackageintoa

    Customblueblock.

    Stage2

    Stage3

  • 8/7/2019 Sample project by Haoken

    38/52

    InsideGrabberMyBlockcontainsnumberofSub-MyBlockstooperatetheGrabbing

    mechanism.

  • 8/7/2019 Sample project by Haoken

    39/52

  • 8/7/2019 Sample project by Haoken

    40/52

  • 8/7/2019 Sample project by Haoken

    41/52

  • 8/7/2019 Sample project by Haoken

    42/52

  • 8/7/2019 Sample project by Haoken

    43/52

  • 8/7/2019 Sample project by Haoken

    44/52

    FromMissionareabacktoBaseCamp

  • 8/7/2019 Sample project by Haoken

    45/52

  • 8/7/2019 Sample project by Haoken

    46/52

    Inthecaseoflinefollowing,ourrobotknowsnothingaboutwhereitis,becauseitsknowledgeisbasedsolelyonwhetheritistotherightorleftoftheline.

  • 8/7/2019 Sample project by Haoken

    47/52

    Butlinesareindeedaneffectivesystemtosteerarobotfromoneplacetoanother.However,itisnteasy.Whenthelineends,asimpleline

    followerwouldturnaroundandgobacktotheothersideofthelineoroutoftrack.Wehavetomakeoursoftwaremoresophisticatedtodetectthesuddenchangeand,insteadofapplyingastandardroutecorrection,startanewdegreealgorithmsthatdrivetherobottowardthebasecampandourrobotwillgoforwardaspecificdistancecorrespondingtotheapproximatelengthoftheline.

  • 8/7/2019 Sample project by Haoken

    48/52

    Thedifferentialdriveissimpleandversatile,butitcantgostraight.Thesteeringdrive,meanwhile,goesstraightbutcannotturninplace.Our6-wheeledskid-steerdrivecandoboth.

    roboticsislikecooking:therearemanyrecipesforthesamedish,buttobesuccessfulyoustillmustknowtheingredientswellandusethemintherightproportions.Ofcourse,dontforgettoaddthemostimportantingredientofall:ourcreativities.

  • 8/7/2019 Sample project by Haoken

    49/52

  • 8/7/2019 Sample project by Haoken

    50/52

  • 8/7/2019 Sample project by Haoken

    51/52

    Designingagoodroboticgrabberorhandismoreofanartthantechniquetoo.Thereareindeedtechnicalissueswhenitcomestogearingthatwemustknowandconsidertosuccessfullypositionthegrabbers,applytherightamountofpressure,troubleshootthe

    elasticityoftheobjecttobegrabbed.Andnotallowourrobottodroptheballs.

  • 8/7/2019 Sample project by Haoken

    52/52

    Thankyou