data logging (part 1) - stemrobotics.cs.pdx.edu · live data logging: real time data collected...
TRANSCRIPT
ADVANCEDEV3PROGRAMMINGLESSON
ByDroidsRobotics
DataLogging(Part1)
ì Learnwhatdataloggingis
ì LearnthedifferentwaysofdoingdataloggingontheEV3
ì LearnhowtousetheLiveDataLogging,RemoteDataLoggingandBrickDataLoggingfeatureusingatemperaturesensor
ì Prerequisites:MustownanNXTTemperatureSensor,MusthavetheEduversionoftheEV3SoftwareandEduversionofbrickfirmware.
©2015EV3Lessons.com,Lastedit11/15/2015 2
LessonObjectives
ì TheEV3softwareprovidesasimplewaytocontinuouslyrecordsensorreadingstoafileandtoplotthevalueslater.ThisiscalledDataLogging.
ì WhyuseDataLogging:ì Greatforscienceexperiments.InPart1,wewillshowhowyou
canrecordvaluesliketemperatureforascienceproject.ì Greatforunderstandingrobotprogrammingblocks.InPart2,we
willshowhowtousedataloggingtomeasurethedifferencebetweenturns.
ì Greatforunderstandingsensorbehavior.InPart3,wewillshowhowtousedataloggingtounderstandthedetailsofsensorssuchasthegyrosensor.
©2015EV3Lessons.com,Lastedit11/15/2015 3
WhatisDataLogging?
1. LiveDataLogging:RealtimedatacollecteddirectlyintheEV3software
2. RemoteDataLogging:Usethethebricktocollectdata,andtransferthedatatothecomputerforanalysis
3. BrickDataLogging:Runtheexperimentdirectlyfromthebrick
4. Autonomous.CollectdatawiththeDataLoggingblock.Thedataisstoredonthebrick.
©2015EV3Lessons.com,Lastedit11/15/2015 4
HowdoyoudatalogonanEV3?
Lesson1:Temperature
SensorExperiment
Lesson2:Differences
BetweenTurns
Thereare4waystodatalogusingtheEV3MINDSTORMS:
ì Challenge:WewilluseaTemperatureSensortologthechangingtemperatureofwater.
ì Designyourownexperiment.Forexample,youcantryplacingthetemperaturesensorprobeatroomtemperaturewater,thenboilingwaterandthencoldwater.
©2015EV3Lessons.com,Lastedit11/15/2015 5
LiveDataLogging
©2015EV3Lessons.com,Lastedit11/15/2015 6
LiveDataLogging(TemperatureSensor)
STEP1:StartaNewExperiment inanexistingproject
STEP2:TurnoffOscilloscopeMode
STEP3:Pickyourduration, samplerate,sensorandunits.
©2015EV3Lessons.com,Lastedit11/15/2015 7
LiveDataLogging(TemperatureSensor)
STEP4:AllsensorsconnectedtotheEV3willbeautomaticallyadded.Ifyoudonotwanttocollectdatawithaparticularsensor, clickthe“X”nexttoit.
STEP6:Placetemperatureprobe inhot/cold liquidandwatchthegraph(seenextslide)
STEP5:DownloadandRun
©2015EV3Lessons.com,Lastedit11/15/2015 8
Results/Solution
1.Roomtemperatureprobeplacedinboilingwater
2.Temperatureincreases
3.Proberemovedandplacedincoldwater
Asimilargraphwillappearliveonyourscreen.
ì NowthatwehavetriedLiveDataLogging,let’slookattwootherwaystocollectdatawhenthecomputerisn’taround:ì RemoteDataLogging:Usethethebricktocollectdata,and
transferthedatatothecomputerforanalysisì BrickDataLogging:Runtheexperimentdirectlyfromthebrick
©2015EV3Lessons.com,Lastedit11/15/2015 9
OtherWaystoCollectData
©2015EV3Lessons.com,Lastedit11/15/2015 10
RemoteDataLoggingInstead
STEP6:TakeyourrobotsomewhereelseandruntheexperimentfromthescreenSTEP7:Placetemperatureprobe inhot/cold liquid
STEP1-4:Repeatsteps1-4oftheLiveDataLogging
STEP8:ConnectyourrobotandclickontheUploadIcon.IntheDataLogFileManager,pickthecorrectfiletoimport.
UploadIcon
Download Icon
STEP5:ClickontheDownload icon
TheseiconsappearonlywhenyouareinanopenEXPERIMENT(notaProject)
©2015EV3Lessons.com,Lastedit11/15/2015 11
UsingBrickDataLoggingInstead(Part1)
STEP2:Clickonthewrenchtosetupsensors
STEP4:Placetemperaturesensorprobe inhot/coldliquid
STEP1:GotothirdtabonBrickMenuandpickBrickDatalog
Step5:Clickonthesphereicontostartandstopcollectingdata
STEP3:Clickoniconwithnumberstoseethedataforadifferent sensor
©2015EV3Lessons.com,Lastedit11/15/2015 12
BrickDataLogging(Part2)
UploadIconSTEP7:ConnectyourrobotandclickontheUploadIconafteryouareinanExperiment.IntheDataLogFileManager,pickthecorrectfiletoimport.
STEP6:Picknameforthefileonthebrick
TheseiconsappearonlywhenyouareinanopenEXPERIMENT(notaProject)
ì Canyouthinkofotherexperiments?
ì Trydataloggingusingothersensors.
ì TryexportingyourdataintoExceloranotherspreadsheettool.
ì LearnhowtouseAutonomousDataLogginginPart2oftheDataLoggingseriesoflessons.
©2015EV3Lessons.com,Lastedit11/15/2015 13
NextSteps
ì ThistutorialwaswrittenbySanjaySeshanandArvindSeshanfromDroidsRobotics
ì Morelessonsatwww.ev3lessons.com
©2015EV3Lessons.com,Lastedit11/15/2015 14
Credits
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.