Data Logging (Part 1) - EV3...
Transcript of Data Logging (Part 1) - EV3...
ADVANCEDEV3PROGRAMMINGLESSON
DataLogging(Part1)BySanjayandArvindSeshan
ì Learnwhatdataloggingis
ì LearnthedifferentwaysofdoingdataloggingontheEV3
ì LearnhowtousetheLiveDataLogging,RemoteDataLoggingandBrickDataLoggingfeatureusingatemperaturesensor
ì Prerequisites:MustownanNXTTemperatureSensor,MusthavetheEduversionoftheEV3SoftwareandEduversionofbrickfirmware.
©2016EV3Lessons.com,Lastedit7/18/2016
LessonObjectives
ì TheEV3softwareprovidesasimplewaytocontinuouslyrecordsensorreadingstoafileandtoplotthevalueslater.ThisiscalledDataLogging.
ì WhyuseDataLogging:ì Greatforscienceexperiments.InPart1,wewillshowhowyou
canrecordvaluesliketemperatureforascienceproject.ì Greatforunderstandingrobotprogrammingblocks.InPart2,we
willshowhowtousedataloggingtomeasurethedifferencebetweenturns.
ì Greatforunderstandingsensorbehavior.InPart3,wewillshowhowtousedataloggingtounderstandthedetailsofsensorssuchasthegyrosensor.
©2016EV3Lessons.com,Lastedit7/18/2016
WhatisDataLogging?
1. LiveDataLogging:RealtimedatacollecteddirectlyintheEV3software
2. RemoteDataLogging:Usethethebricktocollectdata,andtransferthedatatothecomputerforanalysis
3. BrickDataLogging:Runtheexperimentdirectlyfromthebrick
4. Autonomous.CollectdatawiththeDataLoggingblock.Thedataisstoredonthebrick.
©2016EV3Lessons.com,Lastedit7/18/2016
HowdoyoudatalogonanEV3?
Lesson1:Temperature
SensorExperiment
Lesson2:Differences
BetweenTurns
Thereare4waystodatalogusingtheEV3MINDSTORMS:
ì Challenge:WewilluseaTemperatureSensortologthechangingtemperatureofwater.
ì Designyourownexperiment.Forexample,youcantryplacingthetemperaturesensorprobeatroomtemperaturewater,thenboilingwaterandthencoldwater.
©2016EV3Lessons.com,Lastedit7/18/2016
LiveDataLogging
©2016EV3Lessons.com,Lastedit7/18/2016
LiveDataLogging(TemperatureSensor)
STEP1:StartaNewExperiment inanexistingproject
STEP2:TurnoffOscilloscopeMode
STEP3:Pickyourduration, samplerate,sensorandunits.
©2016EV3Lessons.com,Lastedit7/18/2016
LiveDataLogging(TemperatureSensor)
STEP4:AllsensorsconnectedtotheEV3willbeautomaticallyadded.Ifyoudonotwanttocollectdatawithaparticularsensor, clickthe“X”nexttoit.
STEP6:Placetemperatureprobe inhot/cold liquidandwatchthegraph(seenextslide)
STEP5:DownloadandRun
©2016EV3Lessons.com,Lastedit7/18/2016
Results/Solution
1.Roomtemperatureprobeplacedinboilingwater
2.Temperatureincreases
3.Proberemovedandplacedincoldwater
Asimilargraphwillappearliveonyourscreen.
ì NowthatwehavetriedLiveDataLogging,let’slookattwootherwaystocollectdatawhenthecomputerisn’taround:ì RemoteDataLogging:Usethethebricktocollectdata,and
transferthedatatothecomputerforanalysisì BrickDataLogging:Runtheexperimentdirectlyfromthebrick
©2016EV3Lessons.com,Lastedit7/18/2016
OtherWaystoCollectData
©2016EV3Lessons.com,Lastedit7/18/2016
RemoteDataLoggingInstead
STEP6:TakeyourrobotsomewhereelseandruntheexperimentfromthescreenSTEP7:Placetemperatureprobe inhot/cold liquid
STEP1-4:Repeatsteps1-4oftheLiveDataLogging
STEP8:ConnectyourrobotandclickontheUploadIcon.IntheDataLogFileManager,pickthecorrectfiletoimport.
UploadIcon
Download Icon
STEP5:ClickontheDownload icon
TheseiconsappearonlywhenyouareinanopenEXPERIMENT(notaProject)
©2016EV3Lessons.com,Lastedit7/18/2016
UsingBrickDataLoggingInstead(Part1)
STEP2:Clickonthewrenchtosetupsensors
STEP4:Placetemperaturesensorprobe inhot/coldliquid
STEP1:GotothirdtabonBrickMenuandpickBrickDatalog
Step5:Clickonthesphereicontostartandstopcollectingdata
STEP3:Clickoniconwithnumberstoseethedataforadifferent sensor
©2016EV3Lessons.com,Lastedit7/18/2016
BrickDataLogging(Part2)
UploadIconSTEP7:ConnectyourrobotandclickontheUploadIconafteryouareinanExperiment.IntheDataLogFileManager,pickthecorrectfiletoimport.
STEP6:Picknameforthefileonthebrick
TheseiconsappearonlywhenyouareinanopenEXPERIMENT(notaProject)
ì Canyouthinkofotherexperiments?
ì Trydataloggingusingothersensors.
ì TryexportingyourdataintoExceloranotherspreadsheettool.
ì LearnhowtouseAutonomousDataLogginginPart2oftheDataLoggingseriesoflessons.
©2016EV3Lessons.com,Lastedit7/18/2016
NextSteps
ì ThistutorialwaswrittenbySanjaySeshan andArvindSeshanì Morelessonsatwww.ev3lessons.com
©2016EV3Lessons.com,Lastedit7/18/2016
Credits
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.