+ All Categories
Home > Documents > Research Document - Institute of Technology,...

Research Document - Institute of Technology,...

Date post: 19-Jun-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
28
Research Document Animal Tracker And Health Monitoring Application Gearoid Lacey
Transcript
Page 1: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

ResearchDocumentAnimalTrackerAndHealthMonitoringApplicationGearoidLacey

Page 2: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

TableofContents

Abstract..................................................................................................................4

Introduction...........................................................................................................5

ExistingHerdManagementAndEquineDevices.....................................................6DairyMasterMooMonitor...............................................................................................................................6HerdInsights.........................................................................................................................................................6HorseMote............................................................................................................................................................6Equisense...............................................................................................................................................................7SeeHorse.................................................................................................................................................................7

ExistingGPSPetTrackingDevices...........................................................................9Pod............................................................................................................................................................................9WhistleGPSPetTracker..................................................................................................................................9Loc8torPetGPS...................................................................................................................................................9Tabcat...................................................................................................................................................................10Kyon......................................................................................................................................................................10SingleBoardComputers........................................................................................11Arduino................................................................................................................................................................11IntelGalileo........................................................................................................................................................12RaspberryPi......................................................................................................................................................12IntelEdison........................................................................................................................................................13Comparisons.........................................................................................................14

SupportedTechnologies.......................................................................................15RaspberryPi......................................................................................................................................................15Arduino................................................................................................................................................................15IntelGalileoGeneration2............................................................................................................................15IntelEdison........................................................................................................................................................15RaspberryPivs.IntelGalileoGeneration2vs.IntelEdison...................................16RaspberryPiPowerRequirements.........................................................................................................16IntelGalileoGen2PowerRequirements..............................................................................................16IntelEdisonPowerRequirements...........................................................................................................17

ManufacturedGPSUnits.......................................................................................18NanoTracker......................................................................................................................................................18ApplicationPlatforms...........................................................................................19Android................................................................................................................................................................19iOS..........................................................................................................................................................................19

MobileApplicationDevelopmentFrameworks.....................................................20AdobePhoneGap.............................................................................................................................................20Ionic.......................................................................................................................................................................20ApacheCordova...............................................................................................................................................20

DatabasesSQLvs.NoSQL......................................................................................22AdvantagesofSQL..........................................................................................................................................22DisadvantagesofSQL....................................................................................................................................22AdvantagesofNoSQL.....................................................................................................................................22DisadvantagesofNoSQL...............................................................................................................................22

SQLDatabase.......................................................................................................23

Page 3: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

MySQL..................................................................................................................................................................23AdvantagesofMySQL....................................................................................................................................23DisadvantagesofMySQL..............................................................................................................................23

NoSQLDatabase..................................................................................................23MongoDB.............................................................................................................................................................23AdvantagesofNoSQL.....................................................................................................................................23DisadvantagesofNoSQL...............................................................................................................................23

Conclusion............................................................................................................24

Bibliography.........................................................................................................25

Page 4: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Abstract

Modern culture means people aspire to make every day tasks as simple andefficient as possible which is normally achieved through the addition oftechnology to the process at hand. The aim of this research document is tooutline the technologies andmethodologies thatwould bemost applicable forimplementing awearable animal tracker andhealth information systembasedontheconceptofIoT.Over the duration of this project possible technologies and hardware such asRaspberryPi,Arduino,IntelEdisonandIntelGalileoboardswillbeinvestigatedtodetermine themost suitable for implementingananimal tracker andhealthinformationsystem.

Page 5: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Introduction

Thepurposeofthisproject istocreateaGPSbasedsystem,whichcanbeusedforanimaltracking.GPSwasinitiallydesignedformilitaryintelligencetoallowtheUSNavyrecordtheirmovementsacrossoceansinthe1960’s.GPSconsistsofanetworkof satellites thatorbit the earth and sendbackdata todeviceswithGPSreceivers.Thedatasentbackfromthesatellitesincludesageographicaldatapoint,timecodes,speedandtimefromanywhereontheplanet.Agriculture isasector that is slowlybeingoptimized toproducegreateryieldsandlessexpenditurethroughtheuseoftechnology.Theadditionoftechnologyisbecoming more prevalent in certain aspects of farming such as dairy whereroboticmilkingmachinesarebecomingmorecommonduetotheirefficiencyandcostsavingmeasuresbyreducingtheamountofmanhoursrequired.Therearealready existing animal wearable’s available in the agricultural sector whichmonitortheanimalslocationandevenmonitoringtheirbehaviors.Furthermoretherearesystemsavailablewhichcaninformthefarmerviatextmessagewhenacowisinheat.(EngineersJournal,2015)Oftentheinitialcostoutlaysforthesesystemsarequitehighmeaningthereisagreater amount of time required along with accurate results, before the userdeems it to have been a worthy venture. This can mean farmers are morehesitantonpurchasingthistypeofsystemwithoutguaranteedresults.Therefore, theaimof thisproject is toproducean inexpensiveandeasy touseanimal tracking and health monitoring system, which can be used to analyzemovement patterns of sick animals to determine the physical source of theproblem.Forexample ifyouhad twoanimalson thesystemwithTuberculosis(TB)youcouldcross-referencetheir locationstoseeanycommonarea’s inthefieldwherethesourceoftheproblemmayhaveoccurred.

Page 6: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

ExistingHerdManagementAndEquineDevices

DairyMasterMooMonitorDairyMasterareadairyequipmentproductioncompanybasedinCauseway,Co.Kerry.DairyMasterofferavarietyofproducts,oneofwhich focusesonanimalhealth tracking and reproduction, which is aptly named MooMonitor.MooMonitor is a collar, which is placed around the animals head and recordstheirmovementtodeterminedetailsregardingtheireating,restingandgeneralmovementhabits.Basedonthisthefarmercangaininformationrelatingtoeachindividual animals health. The MooMonitor system works by transmitting itsdatatoabasestation,whichcanbeuptoonekilometeraway.OneadvantageoftheMooMonitorisitslonglastingbattery,whichtheystate,hasuptotenyearsofbattery life. One of the main features of this product and many more on themarketisitaimstoprovidethefarmerwithdataforanimalreproductionforusewithartificialinsemination(AI).TheadvantageofthisfeatureisthefarmercanreducethelengthoftheircalvingseasonbyknowingwhenexactlytoapplytheAI process to the cow whilst also increasing their overall calving rates. Thissystem can be used on computers, tablets or phones. Furthermore anotherfeatureofthissystemisitsendsSMSalertstothefarmer.(DairyMaster)

HerdInsightsAlanyaanimalhealthmonitoringprovidestheHerdInsightssystem.ThissystemoperatesinasimilarfashiontotheMooMonitorsystem.HerdInsightsalsouseabasestation,whichcanstoredetailsof5000animalsonasinglebasestation.Thesystemisscalablemeaningifyoumeetthemaximum5000animalsononebasestationyousimply installanotherbasestationtocater fortheexcess.Similarlythis system is also available for use with computers, tablets or phones. TheHerdInsightssystemusedanRFIDtagonthecollartorecognizeeachanimalonthesystem.TheHerdInsightssystemprovidessimilarfunctionalitytothatoftheMooMonitorinthatitsendsthefarmerSMSalertsinformingthefarmerwhenisthebesttimetoapplytheAIprocesstothespecifiedcow.Usingthissystemwillprovide the farmer with similar results to that of the MooMonitor system.(HerdInsights)

HorseMoteHorseMoteisamonitoringdevicespecificallydesignedforusewithhorses.Thissystem is placed around the horses body in comparison to the two previoussystemswhichplacesthedevicearoundthecowsneck.TheHorseMotesystemis capableof recording information suchas thehorsesbody temperature,howmuch they are sweating, their heart rate and their movement using anaccelerometer.(EOIT)

Page 7: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

EquisenseEquisense are a French companywho also producewearable’s formonitoringhorses health based on theirmovements. Similarly to the HorseMote system,Equisense also use an accelerometer to retrieve data relating to the horsesmovementwhichtheycananalyzetodetermineofthehorseis lame.Theyalsorecord information such as body temperature and the level of sweat beingproducedbythehorsetodeterminehowmuchstraintheanimalisunder,speed,number of jumpsmadeby thehorse and theCadenceproducedby thehorsesmovements. Equisense is available on both the android and iOS mobileplatforms.Furthermoreeach trackingdevicecanbeusedonup to fourhorses.Thedevicealsohasabatterylifeofuptoeighthours.Additionallythisproductcosts $329. From viewing their website the application allows the user toschedule training sessions for the horse. It also provides the user withinformationrelatingtowhichdirectionthehorsesheadisturnedmost.Theappalso provides the user with a graphical representation of the horses workintensityaswellasitsoverallfitnesslevel.(Equisense)

SeeHorseSeeHorseisanotherhorsehealthandmovementmonitoringsystem.ThissystemisverysimilartotheEquisensesysteminthatitprovidestheuserwithsimilarresources.Informationsuchasthehorsesheartrate,bodytemperature,activitylevelsandmovementdetailsaremadeavailabletouser.Oneinterestingfeature

Page 8: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

oftheSeeHorsesystemis itcomesequippedwithawirelesschargingpod.TheSeeHorse device is more expensive than the Equisense device at $499. TheapplicationprovidedbySeeHorsefortheirproducthasamuchsimplerinterfacetoit.Onloggingintheuserisdirectedtothedashboardwhichpresentstheuserwith real time data on the horses heart rate in BPM, the number of steps thehorsehastaken,thehorsesrespiratoryrate,temperatureandaccesstopreviousdatathathasbeenpreviouslyobtained.Theappalsoprovidestheuserwithanalarmfunctionalitywheretheycansetcertaincriteriathatwillalertthemwhentheanimalisinsomedistress.(SeeHorse)

Page 9: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

ExistingGPSPetTrackingDevices

PodPodisaminiature-trackingdevicethatcanbeattachedtoyourpetscollarthatrecordstheiractivitywhichcanbeinterfacedthroughtheirwebapplication.ThePoddeviceprovidesitsuserswhichinformationsuchasyourpetslocation,thetimetheyspendwalking,runningoratrest.Furthermoretheusercansetsafezoneswhichwillalerttheownerwhentheirpethasleftthisarea.ThepodcantracktheanimalsmovementsforuptoeighthourswhichitcanthensynchronizewiththemobileapplicationviaBluetooth.Thedeviceitselfiswaterproofandaspreviouslystatedminiaturewithdimensionsof5cminlengthand2.3cmindiameteratacostof€179.Thedevicealsoboastsbatterylifeofuptofivedaysdependingonusagewithaspareinterchangeablebatteryprovided.IntermsoftheapplicationitselfitissupportedontheandroidandiOSplatformaswellasprovidingawebplatformforinterfacingwiththePod.(Pod)

WhistleGPSPetTrackerTheWhistleGPSPetTrackerisasimilardevicetotheaforementionedPodTrackerwhichprovidesfunctionssuchasrecordinginformationaboutyourpetslocation,thetimetheyspendwalking,runningoratrestandthedevicecansendalertstotheownerssmartphonewhentheirpetleavestheirhomezone.AgainlikethePodTrackertheWhistleGPSPetTrackerisalsowaterproof.Therearesomeslightdifferencesbetweenbothdevices,oneofwhichisthesizeoftheWhistleGPSPetTrackerthathasdimensionsof1.5x4.2x.0.8inches.AnotherdifferencebetweenthetwodevicesistheplatformstheysupportwiththeWhistleGPSPetTrackeronlyavailableontheandroidandiOSmobileplatforms.Currentlythisdevicecanbepurchasedatacostof$49whichisasizeabledifferenceincomparisontothepriceofthePodTracker.AconvenientfunctionthattheWhistleGPSPetTrackerprovidesistheabilitytoaddmultiplepeopletotheownersaccountsotheycanviewtheanimalslatestdataalso.(Whistle)

Loc8torPetGPSLoc8torisanothercompanythatprovideGPSTrackingdevicesforpets.Onesuchdeviceistheirtrackerthatisdesignedspecificallyfordogs.Thisdevicefunctionsinasimilarmannertothepreviouslymentionedpettrackersbyprovidingtheownerwithfeaturessuchassafezones,currentpetlocationandthepetspreviouslytravelledroutes.TheGPScoordinatesobtainedbythedeviceareaccurateuptofivemeters.Thebattery,whichisrechargeablehasthecapabilityoflastingbetween7-10daysdependingonusageandalertstheownerwhenthebatteryisrunninglow.ThedeviceisslightlycheaperthanthePodTrackerat€120.98.LikethePodTrackertheLoc8torPetGPSisavailableonanymobiledevicewithaninternetconnection.TheLoc8torgivestheownertheopportunitytospecifywhatintervalstheywantthedevicetorecordtheirpetslocationwhichisanadvantageousfeature.(Loc8tor)

Page 10: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

TabcatTabcatisanothercompanythatprovidesGPSTrackingdevicesforpets.Tabcatsdeviceisdesignedspecificallyforusewithcats.Tabcatdiffersfromthepreviousdevicesinhowitascertainsthecat’slocationbyusingradiofrequencies.ThedeviceworksbydirectingtheownertotheirpetusingaudioandvisualsignalsemittingfromtheTabcathandset,whichiscommunicatingwiththehomingtagsattachedtotheircatscollar.Tabcathastheabilitytolocateacatthatisupto122metersaway.Thedevicecomeswithanintelligentfeaturebuiltinthatisusedtotraintheownerscattocomehomebyemittingabeepingsoundfromthehomingtaguntilthecatreturns.Thedevicehasanexcellentbatterylifeofuptooneyear.AsthedirectionaltechnologyismoreaccuratethanGPSitispreciseupto2.5inches.Tabcatisaninexpensiveoptionforanycatownerwiththebasicpackagecostingaslittleas£69thatcomeswithtwohomingtags.(Tabcat)

KyonKyonprovideaGPStrackingcollarforpetsofanytype.Thisdevicehasasimilarsafezonefunctionalityasthealreadymentioneddevices.Theperimeterforthesafezoneis300ft.IftheanimalleavesthisperimetertheGPStrackingfunctionalityonthedeviceisenabled.TheKyoncollarutilizes3DGPStechnologythatcaninformtheownerwhatlevelofabuildingtheirpetisinforexample.LiketheLoc8torPetGPStrackerthisdevicealsohasarechargeablebattery(420mAh)whichischargedusingtheKyondockingstationwhichalsoactsasabeaconforthecollar.Thedeviceisalsowaterresistantlikemanyofthepreviouslymentionedpettrackers.TheKyoncollaralsoboastsabatterylifeofupto30days.ThecollaroperatesbytransmittingdatatoyourphoneordockingstationwhichthencommunicateswiththeKyonserver.TheKyoncollardeliversnumerousfunctionstotheownersuchasthepacifieroperationwhichpreventsyourpetfromengaginginafightwithanotheranimalbyemittingahighfrequencysoundfromthedevice.(Kyon)(Kyon)

Page 11: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

SingleBoardComputers

Whenattachinga trackingdevice toananimal it is essential that it is compactenoughnot tobeanobstruction to theanimalbutalso tobe strongenough towithstand any blows to the object itself. To achieve this research will beconductedonsingleboardcomputerssuchasRaspberryPi’s,Arduino’sandIntelGalileoboardsbecauseoftheirsmallsizebutphenomenalpower.ThisresearchwillbeginbylookingattheArduinoBoards.

ArduinoTherearefiveentry-levelboardsavailablefromArduino.TheyaretheArduinoUno (known as the GenuinoUno outside theUSA), Arduino 101, Arduino Pro,ArduinoMicroandtheArduinoProMini.(Arduino)

• ArduinoUno:TheArduinoUnowasthefirstUSBArduinoboardproducedwhichisbasedontheATmega328P.Ithas8-bitarchitecturewithaCPUclockspeedof16MHzandanoperatingvoltageof5volts.Itprovides32KBflashmemorywith2KBSRAMwhichprovidesfasterdataaccesstimes.(Arduino)

• Arduino101:TheArduino101isanadvancementontheArduinoUno.Itboasts32-bitarchitecturewithadualcoreCPUeachofwhichhaveaclockspeed of 32 MHz. Unlike the Arduino Uno, the Arduino 101 has aminimum operating voltage of 3.3V. Similarly to the Arduino Uno theArduino 101 has 14 I/O pins 4 of which are used for Pulse WithModulation(PWM(Arduino)).TheArduino101showsimprovements inthe volume of storage it offers for example it provides 196KB of flashmemorywith24KBofSRAM.(Arduino)

• Arduino Pro: The Arduino Pro is a smaller PCB than the previous two

products. It has dimensions of 52.07mm x 53.34mm. The Arduino Procomes in twoversions, the3.3-volt8MHzversionand the5-volt16MHzversion. With the reduction in physical size comes a decrease inprocessing power on both versions. Both PCB’s offer the same storagewith 32KB of flash memory and 2KB of SRAM like the Arduino Uno.(Arduino)

• ArduinoProMini:TheArduinoProMiniisamorecompactversionofthe

ArduinoPro.SimilartotheArduinoProitoffersa3.3-volt8MHzversionandthe5-volt16MHzversion.BothPCBsarebasedon8-bitarchitecture.LiketheArduinoProandArduinoUno,theArduinoProMinioffers32KBand2KBSRAM.(Arduino)

• Arduino Micro: The Arduino Micro is the smallest board that Arduino

offer.Itboasts8-bitarchitecturewithanoperatingvoltageof5-volts.ItsCPUoperates at16MHz. It alsoprovides theuserwith abuilt inmicro-USB connection. In terms of storage it is similar to themajority of the

Page 12: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

previously mentioned boards with 32KB flash memory and but with2.5KBofSRAM.(Arduino)

IntelGalileoThereisonlyoneIntelGalileoboardcurrentlyavailable,IntelGalileoGen2.TheIntel Galileo board is the first Arduino certified board based on IntelArchitecture. Note: The first generation Intel Galileo board is no longer inproduction.

• IntelGalileo:TheIntelGalileoGen2boardprovidesasizeableincreaseinpowerandperformancecomparedtothepreviouslymentionedArduinoboards.Theboardisbasedon32-bitIntelarchitectureItcomesequippedwith256MBDDR3RAMwith512KBofSRAM.Italsoboasts8MBonboardflash storage with the capability of adding an extra 32GB via microSDcard.(Intel)

RaspberryPiThe Raspberry pi series are possibly the most well known single boardcomputers out of the three, potentially due to the vast quantity of accessoriesandinformationavailabletotheirusers.TherearecurrentlyfiveRaspberryPi’savailable, they are the Raspberry Pi 1 Model A+, the Raspberry Pi Zero, theRaspberryPi 1ModelB+, theRaspberryPi 2ModelB and theRaspberryPi 3ModelB.

• RaspberryPi 1ModelA+: The Raspberry Pi 1Model A+ superseded theRaspberry Pi Model A in November 2014. The board has an operatingvoltageof5voltsandcomesequippedwithamicroSDexpansionslot,oneUSB slot, one headphone jack as well as a HDMI port. This model has512MBRAM.(Adafruit)

• Raspberry Pi Zero: The Raspberry Pi Zero is a physically smaller boardthantheRaspberryPi1ModelA+butithasverysimilarcomponentsandpower.LiketheRaspberryPi1ModelA+italsohasanoperatingvoltageof5volts.Itcomesequippedwitha1GHzsinglecoreCPU,512MBRAM,aminiHDMIport,twomicroUSBslotsandamicroSDcardslotforexternalstorage.(Adafruit)

• Raspberry Pi 1 Model B+: The Raspberry Pi 1 Model B+ incorporateseverything the previously mentioned boards have and more. It has anoperatingvoltageof5volts,providesfourUSBports,anewEthernetport,aheadphonejackaswellasamicroSDcardsocket.Similarlyithas512MBofRAMbutithasasmallerCPU,whichisratedat700MHz.(Adafruit)

• RaspberryPi2ModelB:TheRaspberryPi2ModelBrepresentsanothermilestoneforsingleboardcomputerswithregardsto itshardware.Thisboard comes equipped with 1GB of RAM accompanied by a quad coreARMv7 CPU. Similarly to the previously mentioned Raspberry Pi thisboardalsocontainsaHDMIport,aheadphonejack,amicroSDcardslot,anEthernetportandamicroUSBslot.(Adafruit)

• Raspberry Pi 3 Model B: The Raspberry Pi 3 Model B is their mosttechnicallyadvancedsingleboardcomputeryet.Itpossessesaquadcore64-bitARMv8CPUratedat1.2GHz.AnothernewfeatureisitsbuiltinWi-

Page 13: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Fichipalongwiththebuilt inBluetoothadapter.Thisboardalsohasanoperatingvoltageof5voltslikethepreviousRaspberryPiboards.Italsoboast1GBoframlikethepreviouslymentionedmodel.(Adafruit)

IntelEdisonThe Intel Edison board was designed to aid developers with regards to theInternetofThings.ThemaindifferencebetweentheIntelEdisonandtheotherpreviouslymentionedboardsisthatitisaSystemonaChip(SoC).

• Intel Galileo: The Intel Edison board comes equipped with a dual coreIntel Atom CPU rated at 500MHz. It also has 1GB DDR3 RAM and 4GBonboard flash storage. Unlike themajority of the previouslymentionedboardstheIntelEdisonhasanoperatingvoltageof3.3voltsto4.5volts.Thisisbyfarthesmallestboardofallwithdimensionsof35mmx25mmx4mm.(Adafruit)

Page 14: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Comparisons

Page 15: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

SupportedTechnologiesSelecting the technologies to implement a project with is possibly the mostimportant choice of all. Fortunately, with major technical advances in recentyears,thechoiceofwhatlanguagestouseforimplementationisnotasrestrictedasitoncewaswithsingleboardcomputers.

RaspberryPiThe Raspberry Pi boards offer a wide range of compatible programminglanguagessuchasPython,Java,C,Scratch,C++,RubywhicharepreinstalledontheRaspberryPibydefault. It isalsopossible touse languagessuchasHTML,JavaScript,ErlangandPerl aswell as anyother languages that can compileonARMv6andARMv7architecture.(Dikmans,2015)

ArduinoTheArduinoboardhasitsownprogramminglanguagethatismadeofasubsetof C and C++ functions. Compared to the Raspberry Pi boards the languageselection is muchmore limited. Due to the Arduinos small language selectionresearchregardingthisseriesofsingleboardcomputerswillcease.(Arduino)

IntelGalileoGeneration2The Intel Galileo Gen 2 offers a wide variety of compatible programminglanguages like the Raspberry Pi boards. Languages such as C, C++, Python,HTML5, JavaScript and Node.js are a selection of languages that areprogrammableontheIntelGalileoboard.(Intel)

IntelEdisonThe IntelEdisonoffers the same rangeofpotentialprogramming languagesastheGalileoGen2boarddoeswithC,C++,Python,HTML5,JavaScriptandNode.jsallcompatiblewiththeIntelGalileo.(Intel)

Page 16: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

RaspberryPivs.IntelGalileoGeneration2vs.IntelEdison

RaspberryPiPowerRequirementsAspartofthiscomparisontheaimistooutlinetheboardswiththeleastamountofpowerconsumption,mostdocumentationandalsothewidestrangeofaccessoriesthatcanbeusedonthem.ThefollowingtableillustratesthepowerrequirementsforaselectionoftheRaspberryPiboards.(RaspberryPi)

ThepowerrequirementsfortheRaspberryPiZeroundercertainconditionsareasfollows(RaspberryPi):

IntermsofpoweringtheRaspberryPithebestoptionmaybetoinstallasmallbatterypackwiththeRaspberryPiboardwhichischargedusingsolarpoweredsensorsthatareattachedtothestraponthecowsneck.

IntelGalileoGen2PowerRequirementsTheoutputpowerfortheIntelGalileoboardwithnoadditionalaccessoriesattachedisdisplayedinthetablebelow:(Intel,2016)

Page 17: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

IntelEdisonPowerRequirementsThepowerconsumptionfortheIntelEdisonbelowwastakenwiththeWi-Fidisabled.ThepowerconsumptionoftheIntelEdisonisvisiblylowerthantheGalileoboardwhilstalsobeingslightlylessthantheRaspberryPiZero.(Intel,2016)

Page 18: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

ManufacturedGPSUnitsTherearesomenotabledisadvantagestoimplementingananimaltrackerusingasingleboardcomputer.Oneofthemaindisadvantagesofusingthesecomputersisprovidingthemwithadequatepowertobeabletocollectandtransmitthedatatothedatabase.Therearebatterypacksavailablethatwouldbeabletosupplythesingleboardcomputersenoughpowertooperateforashorttimebutthentheproblemofsizeisintroduced.Itshouldbeaprioritythatthedevicesitscomfortablyontheanimalbutwiththeadditionofbatterypacksandcasesthiswillbecomemoreofaproblem.AnalternativetothesedisadvantagesistouseanalreadymanufacturedGPStrackerthatcouldbeutilizedtoattaintheGPScoordinatesoftheanimalandtransmitthedatatoadatabase.OnepossiblealternativeistheNanoTrackerwhichismanufacturedbyRoundSolutions.

NanoTrackerTheNanoTrackerisasmallportableGPSdevicethatcanintheorybeusedtotrackanythingformvehiclestoanimals.Onemajoradvantageofthisdeviceisitscompactsizeof60mmx33mmx13mmwhenthecaseisonthedevice.Thedevicecomeswithabuiltin350mAhlithiumpolymerbatterythatischargedviaamicroUSBinterface.ThedeviceisbasedoncellulartechnologywithananoSIMrequiredforthedevicetooperate.Thedeviceallowsdeveloperstoenable/disablecertainfunctionalitiesbasedontheirindividualneeds.Thesefunctionalitiesareasfollows:

• GeofencingallowsthedevelopertodefinecertainareaswherethetrackingdeviceleavewithoutanotificationbeingsentviaSMS.

• ThedevicehasabuiltinWellnessfunctionthatwillsendanalertwhenthedevicehasn’tmovedforsomepredefinedlengthoftime.

• Thedevicecomeswithapanicbuttonfunctionalitythatcanbedisableddependingonthepurposeofthedevicesusage.

ThedevicetransmitsthedataviaaHTTPPost.Thetransmitteddatacontainsinformationsuchaslongitude,latitude,speed,date,timeandbatteryvoltage.Thedevicecontainsanonboardaccelerometerwhichisusedtodetectwhenthereisanymovementaswellasforpowersavingmeasures.TheNanoTrackerisquiteaconfigurabledevice.Itispossibletoconfiguretheintervalsbetweendatatransmissions.Thedatasheetforthedevicestatesthatobtainingandtransmittingthedevicepositioneveryfivesecondswillrequirethebatterytobechargedafterapproximatelytwohourswhereasifthedeviceisconfiguredtotransmitthedataeverythirtyminutesthebatterywilllastapproximately43hours.Dependingonyourregionthedevicewillsupport2G,3Gor4GtechnologiesthatcangiveGPScoordinatesthatareaccurateuptotwometers.RoundSolutionsalsoprovidesoftwaredevelopmentkitsfortheNanoTrackerwhichiswritteninPython2.7.2.(RoundSolutions)

Page 19: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

ApplicationPlatforms

From the researchobtained inprevious sectionsof thisdocument it is evidentthat the majority of the available animal wearable’s work across a variety ofplatforms frommobile to desktop. As this product is aimed at the agriculturalsectorwhichhasseensmartphoneusagesurgeinrecentyears,inprinciplethisshould at the very least runonmobiledevices. (Potter)This then leads to thequestion ofwhichmobile operating system to develop the application for? Todeterminethesolutiontothistheadvantagesanddisadvantagesofeachmobileoperatingsystemwillfollow.

AndroidAndroid isanopensourcedoperatingsystembasedontheLinuxkernelwhichwas developed by the Open Handset Alliance. The first version of Android,version 1.1, was released in February 2009. Android applications arepredominantlywritten in the java programming language accompanied by theandroidSDK.Androidhadan82.6%marketshareintermsofsalesattheendofthesecondquarterin2016asdisplayedinthefollowinggraph.(Statista)

iOSiOS is the operating system thatwas developed by apple specifically for theiriPhones thatwere first released in 2007. iOS applications are programmed inprimarily inobjectiveCalongwithHTML, JavaScript andCSS for the frontend.Apple also introduced the swift programming language thatmakes it easier todevelopappsduetoitsmorereadablesyntax.(Rundle)

Page 20: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

MobileApplicationDevelopmentFrameworksMobileapplicationdevelopmentframeworksofferadifferentapproachtodevelopingapplicationsbyenablingtheprogrammertocreatehybridapplicationsusingwebtechnologieslikeHTML,CSSandJavaScriptforexample.Notonlydotheyremovethestrainofhavingtolearnandroidofswiftprogramminglanguagesandthereforehavingtodevelopthesameapplicationtwice,buttheyalsoenabletheprogrammertoporttheirapplicationtoanymobileoperatingsystem.ThereareseveralMobileApplicationDevelopmentFrameworksavailablethatwillbeanalyzedbelowtodeterminethebestoptionforthedevelopingthisapplication.

AdobePhoneGapAdobePhoneGapisamobileapplicationdevelopmentframeworkthatenablesprogrammersbuildhybridapplicationsusingHTML,CSSandJavaScriptthatarecompatiblewithmultiplemobileplatforms.AdobePhoneGapalsoprovidesaDeveloperMobileAppthatallowstheprogrammertotesttheirapplicationonaconnectedmobiledevicewithouthavingtoreinstalltheirapplicationtoseethechangesthathavebeenmade.(AdobePhoneGap)AdobePhoneGapalsoprovidesaservicecalledAdobePhoneGapBuildthatisusedforcompilingandbuildingyourappsinthecloud.BysubmittingthecodefilesinazipfolderAdobePhoneGapBuildcompilesandbuildsyourappusingthelatestSDK’sforyourtargetmobileoperatingsystemsafterwhichitreturnstheURL’stothedeploymentbundleforthetargetmobileoperatingsystems.

IonicIonicisanopensourcemobileapplicationdevelopmentframeworkthatenablesprogrammersbuildhybridapplicationsusingHTML,CSSandJavaScriptthatarecompatiblewithmultiplemobileplatforms.IonicalsorequiresaworkingknowledgeofAngularJStodevelopapplications.Theionicframeworkisintendedforfrontenddevelopmentwhichisthenintegratedwiththeintendedbackendtechnologiesfortheapplication.(Tutorialspoint)

ApacheCordovaAnothermobileapplicationdevelopmentframeworkavailableisApacheCordova.ApacheCordova,whichAdobePhoneGapisbasedon,isanopensourcemobileapplicationdevelopmentframeworkthatpredominantlyusesthesametechnologiesasthepreviouslymentionedframeworks,utilizingHTML5,CSS3andJavaScript.ApacheCordovahasauniquefeaturewherethereareAPI’sreadilyavailableforimplementingsimplefeaturessuchasdisplayingbattery

Page 21: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

statusoraddingnotificationstothenotificationsbaratthetopofthescreenonamobiledevice.ThefollowingimageillustrateshowanApacheCordovaapplicationintegrateswithamobiledevice:(ApacheCordova)

Page 22: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

DatabasesSQLvs.NoSQLAdatabasesmainfunctionistostorevastquantitiesofdatathatcanberetrievedandmanipulatedatanytime.Therearetwomaintypesofdatabases,SQLandNoSQLdatabases.ThemaindifferencebetweenSQLandNoSQListheirmethodofdatastorage.InSQLthedataisstoredintablesthatwitheachcolumnhavingaspecifieddatatype.InaNoSQLdatabasethedataisstoredinadocumentthatcanholdanytypeofdata,therearenorequirementstocreateaspecificschema.(Buckler,2015)

AdvantagesofSQL

• OneofthemajoradvantagesofSQListheavailabilityoftheJOINoperation.ThejoinoperationallowstheusertoaddorretrieveinformationfrommorethanonetableusingtheJOINoperation.

• SQLdatabasesarewidelyusedmeaningthereisendlessinformationavailabletoanyonetryingtoworkwiththem.

• SQLdatabasessupporttransactions,whichimprovedataintegritybyensuringthatmultipleupdatesthatarebeingappliedtotableseithersucceedorfail.

• Abilitytocreatestoredproceduresfordatabasecallsthataremaderegularly.

DisadvantagesofSQL• QueriescanbecomelongandcomplexwiththeinclusionofJOIN

statementsinthequery.Nestedqueriescanalsocausemorecomplexity.• MorethoughtrequiredforinitialsetupofanSQLdatabaseasyouhaveto

definethedatatypesforeachfieldineachtable.

AdvantagesofNoSQL• Noschemarequiredforthedatabase.• Startingtobecomemorepopulardespitetheirexistencesincethe1960’s.• Fasteratdataretrievalasthere’snoneedforcomplexquerieswithJOIN

statements.

DisadvantagesofNoSQL• NotascommonlyusedasSQLdatabasessolesssupportavailable.

Page 23: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

SQLDatabase

MySQLMySQLisafreerelationalSQLdatabaseprovidedbyOracle.AsitisanSQLdatabasethedataisstoredinatabularformatusingtableswithspecifieddatatypesforeachcolumninthetable.

AdvantagesofMySQL• OneofthemainadvantagesofincorporatingMySQLintoanyprojectis

theavailabilityofsupportforsuchadatabasesystemduetoitspopularity.

• RequireslittleknowledgetosetupaMySQLdatabasepartlybecauseofthepreviouspoint.

• Supportedbymostplatformsmeaningitcanbeintegratedintomostprojects.

DisadvantagesofMySQL• Nolongeropensourcemeaningpatchesarenotreleasedasoften.

NoSQLDatabase

MongoDBMongoDBisanopensourcedocumentbaseddatabasesystem.AsMongoDBisaNoSQLdatabasesystemthedataisstoredindocuments.(TutorialsPoint)

AdvantagesofNoSQL• OneofthemainadvantagesofincorporatingNoSQLintoanyprojectisthe

scalabilityitcanprovide.• Documentshavedynamicschemasmeaningthereisnorequirementfor

anyspecificrequirementsinthecollectionofdocuments.

DisadvantagesofNoSQL• AsNoSQLdatabasesareonlystartingtocometoprominence,thereisless

informationavailablecomparedtoMySQL.

Page 24: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

ConclusionBasedontheresearchgathereditissuggestedthattheprojectwillcommenceusingtheAdobePhoneGapapplicationdevelopmentframework.ThiswasthechosenapplicationdevelopmentframeworkbecauseoftheauthorsexistingexperienceinHTML,CSSandJavaScript.ThedecisionwasalsobasedonthevastquantityofinformationthatisavailableregardingAdobePhoneGapframeworkingeneralandthepluginsavailableforit.Whenmakingthedecisionofwhichapplicationframeworktouse,itwasalsonotedthatIonicrequiredAngularJSwhichwouldhaveaddedmorecomplexitytoanalreadysteeplearningcurve.ItisalsosuggestedthataMySQLdatabasebeusedthroughouttheproject.Thisdecisionwasbasedonthetabularnatureofthedataandtheauthorspriorexperiencewiththisdatabasetechnology.Similarlytothechoiceofapplicationframework,thevastquantityofinformationavailablewasalsoadecidingfactorinthechoiceofdatabasetechnology.

Page 25: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

BibliographyAdafruit.(2016,October6).AdafruitUltimateGPSHATforRaspberryPi.RetrievedOctober25,2016,fromAdafruit:https://cdn-learn.adafruit.com/downloads/pdf/adafruit-ultimate-gps-hat-for-raspberry-pi.pdfAdafruit.(n.d.).IntelEdisonComputeModule.RetrievedOctober15,2016,fromAdafruit:https://www.adafruit.com/products/2112Adafruit.(n.d.).RaspberryPi2-ModelB-ARMv7with1GRAM.RetrievedOctober13,2016,fromAdafruit:https://www.adafruit.com/products/2358Adafruit.(n.d.).RaspberryPi3-ModelB-ARMv8with1GRAM.RetrievedOctober13,2016,fromAdafruit:https://www.adafruit.com/products/3055Adafruit.(n.d.).RaspberryPiModelA+512MBRAM.RetrievedOctober12,2016,fromAdafruit:https://www.adafruit.com/products/2266Adafruit.(n.d.).RaspberryPiModelB+512MBRAM.RetrievedOctober12,2016,fromAdafruit:https://www.adafruit.com/products/1914Adafruit.(n.d.).RaspberryPiZero-Version1.3.RetrievedOctober12,2016,fromAdafruit:https://www.adafruit.com/products/2885Arduino.(n.d.).ArduinoBoard101.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Main/ArduinoBoard101Arduino.(n.d.).ArduinoBoardMicro.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Main/ArduinoBoardMicroArduino.(n.d.).ArduinoBoardPro.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Main/ArduinoBoardProArduino.(n.d.).ArduinoBoardProMini.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Main/ArduinoBoardProMiniArduino.(n.d.).ArduinoBoardUno.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Main/ArduinoBoardUnoArduino.(n.d.).ArduinoBuildProcess.RetrievedOctober23,2016,fromArduino:https://www.arduino.cc/en/Hacking/BuildProcessArduino.(n.d.).Products.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Main/Products

Page 26: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Arduino.(n.d.).PWM.RetrievedOctober11,2016,fromArduino:https://www.arduino.cc/en/Tutorial/PWMBuckler,C.(2015,September18).SQLvsNoSQL:TheDifferences.RetrievedOctober31,2016,fromSitePoint:https://www.sitepoint.com/sql-vs-nosql-differences/DairyMaster.(n.d.).AccurateHealth&FertilityMonitoring.RetrievedOctober15,2016,fromhttp://moomonitor.dairymaster.com/what-is-moomonitor/Dikmans,L.(2015,August7).ProgrammingLanguagesForRaspberryPi.RetrievedOctober21,2016,fromeProseed:http://www.eproseed.com/programming-languages-for-raspberry-pi/EngineersJournal.(2015,June30).High-techcollarbringswearablesrevolutiontoIreland'scows.RetrievedOctober15,2016,fromhttp://www.engineersjournal.ie/2015/06/30/high-tech-collar-brings-wearables-revolution-irelands-cows/EOIT.(n.d.).HorseMote.RetrievedOctober21,2016,fromEOIT:http://eoit.co/portfolio-item/horse-mote/Equisense.(n.d.).EquisenseMotionTracker.RetrievedOctober21,2016,fromEquisense:https://www.equisenshop.com/en/1-equisense-motion.htmlHerdInsights.(n.d.).Features.RetrievedOctober15,2016,fromHerdInsights:http://www.animalhealthmonitoring.com/herdinsights-featuresIntel.(n.d.).Architecture.RetrievedOctober23,2016,fromIntel:https://software.intel.com/en-us/iot/hardware/galileoIntel.(n.d.).Architecture.RetrievedOctober23,2016,fromIntel:https://software.intel.com/en-us/iot/hardware/edisonIntel.(n.d.).IntelGalileoGen2DevelopmentBoard.RetrievedOctober18,2016,fromIntel:http://www.intel.com/content/www/us/en/embedded/products/galileo/galileo-overview.htmlIntel.(2016,October13).PowerConsumptionforIntel®EdisonBoardforArduino*.RetrievedOctober25,2016,fromIntel:http://www.intel.ie/content/www/ie/en/support/boards-and-kits/intel-edison-boards/000006123.htmlIntel.(2016,March14).PowerConsumptionofIntel®GalileoGen2DevelopmentBoard.RetrievedOctober25,2016,fromIntel:http://www.intel.com/content/www/us/en/support/boards-and-kits/intel-galileo-boards/000020085.html

Page 27: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Loc8tor.(n.d.).Overview.RetrievedNovember4,2016,fromLoc8tor:http://www.loc8tor.com/uk/pets/locator-device-for-dogs/loc8tor-pet-gps-for-dogs.html#OverviewMioTechnology.(n.d.).HistoryofGPS.RetrievedOctober4,2016,fromMioTechnology:http://www.mio.com/technology-history-of-gps.htmlPod.(n.d.).Leadingdesign.RetrievedNovember4,2016,fromPod:https://www.podtrackers.com/Potter,B.(n.d.).87%ofFarmersWillOwnaSmartphoneby2016.RetrievedOctober23,2016,fromAgWeb:http://www.agweb.com/article/87-of-farmers-will-own-a-smartphone-by-2016-naa-ben-potter/RaspberryPi.(n.d.).FrequentlyAskedQuestions.RetrievedOctober25,2016,fromRaspberryPi:https://www.raspberrypi.org/help/faqs/RoundSolutions.(n.d.).NanoTrackerWorld'sSmallestTrackingDevice.RetrievedOctober31,2016,fromRoundSolutions:http://www.roundsolutions.com/media/pdf/PCB-NANOTRACKER_NanoTracker_Datasheet_EN_v1.05.pdfRundle,M.(n.d.).BuildingiOSAppsFromScratch.RetrievedOctober23,2016,fromDesignTheCode:https://designthencode.com/scratch/SeeHorse.(n.d.).Features.RetrievedOctober21,2016,fromSeeHorse:http://seehorse.ca/features/Statista.(n.d.).GlobalmobileOSmarketshare2009-2016,byquarter.RetrievedOctober23,2016,fromStatista:https://www.statista.com/statistics/266136/global-market-share-held-by-smartphone-operating-systems/Tabcat.(n.d.).Features.RetrievedNovember4,2016,fromTabcat:http://mytabcat.com/features/TutorialsPoint.(n.d.).MongoDB-Overview.RetrievedOctober31,2016,fromTutorialsPoint:https://www.tutorialspoint.com/mongodb/mongodb_overview.htmWhistle.(n.d.).Features.RetrievedNovember4,2016,fromWhistle:http://www.whistle.com/

Page 28: Research Document - Institute of Technology, Carlowglasnost.itcarlow.ie/~softeng4/C00183380/documents... · Raspberry Pi, Arduino, Intel Edison and Intel Galileo boards will be investigated

Recommended