data logging (part 1) - ev3 lessons · live data logging: real time data collected directly in the...

14
ADVANCED EV3 PROGRAMMING LESSON Data Logging (Part 1) By Sanjay and Arvind Seshan

Upload: others

Post on 27-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ADVANCEDEV3PROGRAMMINGLESSON

DataLogging(Part1)BySanjayandArvindSeshan

Page 2: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ì Learnwhatdataloggingis

ì LearnthedifferentwaysofdoingdataloggingontheEV3

ì LearnhowtousetheLiveDataLogging,RemoteDataLoggingandBrickDataLoggingfeatureusingatemperaturesensor

ì Prerequisites:MustownanNXTTemperatureSensor,MusthavetheEduversionoftheEV3SoftwareandEduversionofbrickfirmware.

©2016EV3Lessons.com,Lastedit7/18/2016

LessonObjectives

Page 3: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ì TheEV3softwareprovidesasimplewaytocontinuouslyrecordsensorreadingstoafileandtoplotthevalueslater.ThisiscalledDataLogging.

ì WhyuseDataLogging:ì Greatforscienceexperiments.InPart1,wewillshowhowyou

canrecordvaluesliketemperatureforascienceproject.ì Greatforunderstandingrobotprogrammingblocks.InPart2,we

willshowhowtousedataloggingtomeasurethedifferencebetweenturns.

ì Greatforunderstandingsensorbehavior.InPart3,wewillshowhowtousedataloggingtounderstandthedetailsofsensorssuchasthegyrosensor.

©2016EV3Lessons.com,Lastedit7/18/2016

WhatisDataLogging?

Page 4: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

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:

Page 5: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ì Challenge:WewilluseaTemperatureSensortologthechangingtemperatureofwater.

ì Designyourownexperiment.Forexample,youcantryplacingthetemperaturesensorprobeatroomtemperaturewater,thenboilingwaterandthencoldwater.

©2016EV3Lessons.com,Lastedit7/18/2016

LiveDataLogging

Page 6: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

©2016EV3Lessons.com,Lastedit7/18/2016

LiveDataLogging(TemperatureSensor)

STEP1:StartaNewExperiment inanexistingproject

STEP2:TurnoffOscilloscopeMode

STEP3:Pickyourduration, samplerate,sensorandunits.

Page 7: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

©2016EV3Lessons.com,Lastedit7/18/2016

LiveDataLogging(TemperatureSensor)

STEP4:AllsensorsconnectedtotheEV3willbeautomaticallyadded.Ifyoudonotwanttocollectdatawithaparticularsensor, clickthe“X”nexttoit.

STEP6:Placetemperatureprobe inhot/cold liquidandwatchthegraph(seenextslide)

STEP5:DownloadandRun

Page 8: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

©2016EV3Lessons.com,Lastedit7/18/2016

Results/Solution

1.Roomtemperatureprobeplacedinboilingwater

2.Temperatureincreases

3.Proberemovedandplacedincoldwater

Asimilargraphwillappearliveonyourscreen.

Page 9: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ì NowthatwehavetriedLiveDataLogging,let’slookattwootherwaystocollectdatawhenthecomputerisn’taround:ì RemoteDataLogging:Usethethebricktocollectdata,and

transferthedatatothecomputerforanalysisì BrickDataLogging:Runtheexperimentdirectlyfromthebrick

©2016EV3Lessons.com,Lastedit7/18/2016

OtherWaystoCollectData

Page 10: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

©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)

Page 11: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

©2016EV3Lessons.com,Lastedit7/18/2016

UsingBrickDataLoggingInstead(Part1)

STEP2:Clickonthewrenchtosetupsensors

STEP4:Placetemperaturesensorprobe inhot/coldliquid

STEP1:GotothirdtabonBrickMenuandpickBrickDatalog

Step5:Clickonthesphereicontostartandstopcollectingdata

STEP3:Clickoniconwithnumberstoseethedataforadifferent sensor

Page 12: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

©2016EV3Lessons.com,Lastedit7/18/2016

BrickDataLogging(Part2)

UploadIconSTEP7:ConnectyourrobotandclickontheUploadIconafteryouareinanExperiment.IntheDataLogFileManager,pickthecorrectfiletoimport.

STEP6:Picknameforthefileonthebrick

TheseiconsappearonlywhenyouareinanopenEXPERIMENT(notaProject)

Page 13: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ì Canyouthinkofotherexperiments?

ì Trydataloggingusingothersensors.

ì TryexportingyourdataintoExceloranotherspreadsheettool.

ì LearnhowtouseAutonomousDataLogginginPart2oftheDataLoggingseriesoflessons.

©2016EV3Lessons.com,Lastedit7/18/2016

NextSteps

Page 14: Data Logging (Part 1) - EV3 Lessons · Live Data Logging: Real time data collected directly in the EV3 software 2. Remote Data Logging: Use the the brick to collect data, and transfer

ì 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.