critter sitter: weight sensing pet door dr. martin kaliski

34
Critter Sitter: Weight Sensing Pet Door Author: Shelby Richardson Advisor: Dr. Martin Kaliski Senior Project ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University San Luis Obispo June 2016

Upload: others

Post on 21-Mar-2022

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

CritterSitter:WeightSensingPetDoor

Author: ShelbyRichardson

Advisor:

Dr.MartinKaliski

SeniorProject

ELECTRICALENGINEERINGDEPARTMENT

CaliforniaPolytechnicStateUniversitySanLuisObispo

June2016

Page 2: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

2

TableofContents

ListofFigures............................................................................................................................3

ListofTables.............................................................................................................................3Abstract.......................................................................................................................................4

Introduction..............................................................................................................................6Background...............................................................................................................................8

Requirements...........................................................................................................................9

Design.......................................................................................................................................11TestPlans................................................................................................................................13

DevelopmentandConstruction.......................................................................................14IntegrationandTestResults............................................................................................16

Conclusion...............................................................................................................................19

Bibliography...........................................................................................................................20Appendices.............................................................................................................................21SeniorProjectAnalysis................................................................................................................21SpecificationsandRequirements.............................................................................................27PartsListandCost..........................................................................................................................28Schedule–TimeEstimates..........................................................................................................30ICLocationDiagram......................................................................................................................31PCBoardLayout.............................................................................................................................32ProgramListing(forSoftware).................................................................................................33HardwareConfiguration/Layout..............................................................................................34

Page 3: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

3

ListofFiguresFigure1:SampleHighLevelLookatSystemFunctionality………………………...…………..7Figure2:SchematicfortheWheatstoneBridge……………………………………………………11Figure3:IntegrationoftheWheatstoneBridgetotheAmplifier.A0signifiesthe AnalogPortontheArduinoUno………………………………………………..…..12Figure4:PlotofVoltagevs.WeighttoShowtheLinearRelationshipofVoltageto Weightin5lb.Increments…………………………………………………………….18Figure5:HighLevelBreakdownofSystemComponentRequirements…………………27Figure6:FlowDownDiagramoftheStepsTakentoCompletetheProject…………...28Figure7a:Fall2015GanttChart………………………………………………………………………....30Figure7b:Winter2015GanttChart……………………………………………………………..……..30Figure7c:Spring2016GanttChart……………………………………………………………………..30Figure8:LinearTechnologyLT1679IntegratedCircuitPinOutDiagramfrom Datasheet………………………………………………………………………………..…...31Figure9:SolderlessBreadboardLayout……………………………………………………………..32Figure10:CompleteSchematicfortheCritterSitter:WeightSensingPetDoor……..34

ListofTablesTable1:WeightSensorandControlSystemRequirementsandSpecifications………10Table2:TestingPlanfortheFullProjectIntegration…………………………………………...12Table3:MeasuredResistanceValuesforEachWeightSensorandtheChangesis ResistancewhenForceisApplied………………………………………………….15Table4:MeasuredVoltageValuesusedtodeterminetheRelationshipBetween VoltageandWeight………………………………………………………………………17Table5:LongTermCostAnalysis……………………………………………………………………….23Table6:DecompositionoftheInputsandOutputsandDescriptionof Requirements………………………………………………………………………………27Table7:OverallBreakdownofthePartsUsedandEachPartsTotalCost…………….29

Page 4: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

4

AbstractMartinKaliskiisatypicalpetowner.Hecurrentlyhousesbothcatsandadog.In

ordertokeepfromhavingtoconstantlylethispetsoutinthemiddleofthenighthe

hasinstalledapetdoorintohishome.Allwaswellandgooduntilearlyonemorning

MartinwokeuptothesoundofhisPomeranianbarkingviolently.Heran

downstairstoseewhattheproblemwas.Henotonlyfoundhisdogstandingthere

butalsoawildraccoon.Theraccoonhadslippedintothehouseintheearlymorning

andwasrummagingthroughthepets’food.Martinwassuccessfullyabletogetthe

wildanimaltoleavethroughthewayhecameonlytonoticeafewminuteslaterthat

theraccoon’sanimalaccomplicesoonsnuckoutbehindhim.Fromthatpointon

Martinrefusedtoleavethepetdoorunlockedandnolongerusesit.Wildanimals

enteringthroughahome’spetdoorisnotanuncommonthingandleavesasenseof

insecurityforapetowner.Withouthavingsomewayofmonitoringthis,apetowner

issubjecttootheranimalsenteringhis/herhomeandpotentiallydestroyinghis/her

propertyorcausingharmtolovedones.

Thegoalforthisprojectistoproduceanewandinnovativewayatmanagingpet

doors.Thereareafewproductsouttherethatalreadyhavesmartpetdoor

technologybutthisprojectwillprovideaneasytouseandlessinvasivewayof

monitoringwhichanimalscanandcannotenterthehome.Thiswillbe

accomplishedbyimplementingsometypeofweightsensorthatisabletoregister

thedistinctsizeoftheanimaltryingtoenterthehomewithinaprogrammedrange

between10–15lbs.andfromthatallowaccess.Inordertohelpwiththecost,a

preengineeredweightsensorwillbeusedaswellasalreadyautomatedpetdoors.

Page 5: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

5

Theultimategoalistotakethisproductandbeabletoaddittoalreadyinstalledpet

doors.

Page 6: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

6

IntroductionThegoalforthisproductistodesignalessinvasivepetdoorthatallowsonlya

homeowner’spetstoenterthehouseandlockoutanyotherunwantedcreatures.

Takingaweightsensorandusingittodetecttheweightofthehomeowner’spetand

sendingitsvaluetoacentralsystemthatwillcommunicatebetweentheautomated

doorandsensorwillallowthissystemtobesuccessful.Oncetheanimalhasbeen

detectedandregistered,theprogramwilldecidewhetherornottounlockthedoor

andlettheanimalin.CalPolyproffessorDr.MartinKaliskibroughtthisproblemto

meandhashelpedmefindawaytoimplementthedesignandgetittoworkwith

oneanimal.

Thesensorthatwillbeimplementedisanelectromechanicaltransducer.Inorderto

saveoncost,adigitalbathroomscalewillbeutilizedsinceitcontains4

electromechanicaltransducers[1].Themaingoalistobeabletotakethissensor

alongwithitsbuiltincapabilitiesandhaveitcommunicatewithanArduinoUno

(microcontroller)whichwillbehookeduptothepetdoor[2].AnArduinoUnois

implementedforthemaininterfacesduetoitssizeandaffordability.Manyfactors

willneedtobetakenintoconsiderationsuchasweather,efficiency,andaccuracy.

ThegoalfortheoverallfunctionalityandsystemcanbeseeninFigure1.

Page 7: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

7

Figure1:SampleHighLevelLookatSystemFunctionality

Page 8: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

8

Background

Beforebeginninganytypeoftesting,researchwasconductedinordertoprovide

thebestpossiblesolutionwiththeamountoftimegiven.Surveysweretakentosee

whatpeopleusetodistinguishbetweenacatandaraccoon.Theanswerswere

pulledandsomeofthecommonresultsweresize,gait,sounds,whiskerlength,and

nosesize.

Giventhescopeoftheproject,itwasdeterminedthatthebestdistinguishingfactor

tousewasweight.Accordingtoresearch,anadultcatweighsanywherebetween7.8

–14lbs.[3]andaraccooncanweighfrom15-40lbs.[4]Thereisenoughofa

differenceinweightthataweightsensorcanbeimplemented.

Ratherthancreatinganewtypeofpetdoor,thesolutionthatwasdeterminedwas

tocreatesometypeoflockingmechanismthatcouldbeattachedtoanalready

existingpetdoor.Thesensorisplacedontheoutsideofthehousewiththelocking

mechanismlocatedontheinside.Byplacingthelockingmechanismontheinside,

thehomeowner’scatcanleaveasitpleasesbutmustmeettheweightrequirements

inordertocomebackin.Thisweightrequirementhelpstofilterandpreventany

unwelcomedanimalsfromentering.

Sincecatsandraccoonscouldpotentiallyweighthesame,thelockingmechanismis

placedontheinsidetoinsurethatifaraccoonweretogetin,itwouldbeableto

freelyleavewithoutbeingtrappedinthehome.Thegoalistomaketheproduct

workasaccuratelyaspossiblewhilestillcompensatingforpotentialerrors.

Page 9: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

9

RequirementsInordertoachievethebestresults,amarketingapproachwastaken.Thisapproach

helpedtoensurethatthebasicsystemrequirementswouldbemetalongwith

producingthemosteffectivesystempossible.Thefollowingrequirementswere

determined:

1. Thesystemshouldbeabletosensetheanimalthatistryingtoenterthe

homeatasafedistance.

2. Thesystemshouldhaveastrongtimertopreventotheranimalsfrom

followingthepetin.

3. Thesystemshouldbeasnoninvasiveaspossiblewithoutthepetowner

havingtoaddanyadditionalthingstothepet.

4. Thesystemshouldhaveastronglockingsystem.

5. Thesystemshouldalsobeabletopreventthingssuchasweatherdamage(to

thesystemitselfandthehome).

6. Thesystemshouldbeeasilyimplementedintoexistingpetdoorsorprovide

acosteffectivesolutionforinstallingtheautomatedtechnologyifthepet

doordoesnotalreadyhaveit.

7. Devicemustbeenergyefficientinordertobebeneficialforthecustomer.

8. Thedimensionsshouldnotexceedthatofthepetdooritselfandmustbe

aestheticallypleasingforthehome.

9. Thesystemshouldbeeasytouseforthepetwithouttheneedofmuch

trainingforthepet.

10. Thesystemshouldbeeasilyprogrammable.

Page 10: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

10

Table1:WeightSensorandControlSystemRequirementsandSpecifications

MarketingRequirements

EngineeringSpecifications Justifications

3,8,9 Smallandportable • Floormatwithheight

ofapproximately0.5’’ • Dimensionsof

approximately3’’X4’’

Itmustbeabletofitinsideandoutsideahousewithouttakinguptoomuchspace

5 Weatherproofcasingandinsulation

Sincethisdoorwillcauseaccessbetweentheinsideandoutsideithastohavesometypeofweatherproofingtoprotectfromdamage.Alsosinceitisgoingtohaveelectricalcomponentsitwillhavetoprotectthephysicalsystemfromdamage

1,9 Sensormeasurementswithin+/-5lbs.

Thiswillhelpaccountforwaterweightoranyothersmallphysicalweightchangestheanimalmighthaveovershortperiodsoftime

2,9 Timebetweensensing:rangeof5-10seconds

Havingasetamountoftimeforthedoorwillhelpkeepfromotheranimalstrailinginbehindthepet.Italsoneedstohaveenoughtimesothatitdoesn’tletthedoorlockonthepet

6,8 Userinterfaceshouldattachtothepetdoorandnotbelargerthan3”by5”

Theuserinterfaceshouldbesmallenoughthatitdoesn’tcauseaneyesorebutitshouldbelargeenoughthattheweightandprogrammenucanbeseen

7 Powersuppliedfromthehomepoweroutlets

Reducesneedforabattery

4 SystemshouldbeabletohavealockingmechanismthatisdigitallycontrolledbyanArduinoboardimplementedwithamotor

The entire control system shouldbecontrolledbyasmallcontrollerand not be larger than the actualpetdoor.Thiswillalsohelpmakeitmorecosteffective

Page 11: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

11

DesignAfterexposingthewiresonthesensorsfromthedigitalbathroomscale,the

WheatstonebridgewasconstructedtoresembleFigure2.

Figure2:SchematicfortheWheatstoneBridge

ThevoltagechangeproducedistoosmalltobereadbytheArduino.Tosolvethis

theoutputoftheWheatstonebridgeissenttoaLT1679-Dual/QuadLowNoise,

Rail-to-Rail,PrecisionOpAmp[5].Usingthedesiredvoltagecalculationfoundinthe

IntegrationandTestResults,thefollowingresistorvaluesweredetermined:

R15=330kΩ

R14=112Ω

R13=11Ω

R12=320Ω

R11=112Ω

R10=11Ω

R9=10kΩ

Page 12: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

12

TheseresistorvalueswereplacedintoFigure3below.Theseresistorswerechosen

inordertoseevoltagechangeswithinthe0.1Vrange.Oncethesevoltagesare

verifiedtheoutputissenttoananalogportontheArduino.UtilizingtheArduino’s

AnalogtoDigitalconverter(ADC),adigitalsignalisproducedandusedtodrivea

servomotor.Thisservomotorisusedtocontrolthelockingmechanism.

Figure3:IntegrationoftheWheatstoneBridgetotheAmplifier.A0signifiesthe

AnalogPortontheArduinoUno

Page 13: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

13

TestPlans

Severalstepsaretakentoensurethatthesystemfunctionsproperly.Thefollowing

planinTable2wasdesignedinordertocreateatestingstrategythatwouldprove

thesystemsfunctionality.Inorderforthisprojecttobesuccessful,theWheatstone

bridgecircuitmustbetestedfirst.Thisbridgeiscrucialwhenmeasuringthechange

involtageandcorrelatingittoweight.Thecircuitmustmakethesechangesandthat

thechangesreflectwhatistobeexpected.Next,theoperationalamplifieris

integratedandtheoutputvoltageshouldnowreflectalargervoltagesignaland

showtheappropriatechangesinvoltage.Thisamplifiedsignalissenttothe

Arduino.Wethencanprintthevaluesbeingreadbytheanaloginputtothe

computerscreenandverifythatthevoltagebeingdisplayedinconsistentwithwhat

isbeingsupplied.Converttheanaloginputtoadigitalsignaltodriveaservomotor.

Iftheservomotorrotatesproperlywhendesiredweightisapplied,theprojectis

completed.

Table2:TestingPlanfortheFullProjectIntegration

Component Test Pass/Fail

WheatstoneBridge

Testeachpressuresensorandverifytheresistivechanges.ConstructthecircuitandverifytheoutputchangesacrossE+andE-

Pass

Amplifier

Constructtheamplifierinordertoincreasethevoltagerange.IntegratetheamplifierwiththeWheatstonebridgeandmeasuretheoutputfromtheamplifier.Verifythatchangefollows0.1Vincrements.

Pass

ArduinoConnecttheoutputoftheamplifiertoananaloginputontheArduino.VerifythattheArduinoisreadingthevoltage.

Pass

ServoMotorConnectaservomotortoadigitalportonanArduino.Verifythattheservorotatesappropriatelytosimulatelockingandunlocking

Pass

Page 14: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

14

DevelopmentandConstruction

Beforeassembly,eachelectromechanicaltransducermustbetested.Testingfor

ohms,placeamultimeteracrosstheblackandredwirewithredbeingground.

Applypressuretoseeiftheresistanceisstationaryorchanging.Recordwhetherthe

resistanceincreasesordecreases.Repeatandplacethemultimeteracrossthered

andwhitewires.Verifythatthewhiteandblackwiresareinseries.Determining

thesevaluesiscrucialwhenredesigningtheWheatstonebridge.Theresultscanbe

seenintheTestResultssectionunderTable3.

OncetheresistancesaredeterminedthecircuitinFigure2isconstructed.The

circuitneedstobesuchthataspressureisappliedthevoltageatports2&3

increaseand1&4decrease.Settingitupthiswaywillhelptoinitiallyamplifythe

signalbeforeanoperationalamplifierisadded.Whenconnecting5voltstotheS+

port,S-toground,andasensitivemultimeteracrossE+andE-,itcanbeverified

thatwhenpressureisappliedachangeinvoltageoccurs.Thischangeinvoltageisin

themicrovoltsrangeonamultimeterandisvalidatedsincetheresistorschange

withpressurecausingachangeinthevoltagecomingout.

ThissmallvoltagechangeisnotsufficientwhenbeingconnectedtotheArduino

Uno.Inorderforasufficientvoltagevaluetobesent,amplifythevoltagevia

implementationofanoperationalamplifierwithinthenewcircuit.Forthis

application,aLT1679-Dual/QuadLowNoise,Rail-to-Rail,PrecisionOpAmpchip

wasused.ThecircuitinFigure3isconstructedusingcalculatedresistorvalues.

Apply5voltstotheoperationalamplifierandtheWheatstonebridge.Measurethe

Page 15: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

15

outputoftheoperationalamplifierandverifythattheoutputvoltagechangesin

0.1voltincrements.

Oncethevoltageisoutputtingsufficientvoltagechanges,developacorrelation

betweenweightandvoltage.Using5lb.weights,slowlyincrementwhilerecording

thechangeinvoltageforeachweight.Plotthevaluesanddeterminethelinear

relationshipbetweenthetwo.

Afterdeterminingthelinearrelationship,opentheArduinoprogrammingsoftware.

Writeaprogramthattakestheanaloginputfromtheoperationalamplifierand

convertsittoadigitalcommand.Forthisproject,puttheoutputoftheoperational

amplifiertoportA0ontheArduino.Scaledowntheinputsothatthevaluebeing

readcorrelatestotheexactvoltagebeingsentoutbytheamplifier.Theinputwill

thenbesenttotheAnalogtoDigitalconverterontheboardandthevaluewillbe

read.Setathresholdsothataservomotorwillonlyrotatefrom90–0degreesifthe

scalereadsbetween10-15lbs.Themotorshouldstayat0degreesfor5secondsand

thenreturnbacktothe90degrees.Connecttheservotoadigitalpinandapplythe

conditionsfortheoutput.Iftheweightiswithintherangeoflessthan10lbs.or

greaterthan15lbs.themotorshouldnotrotate.

Page 16: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

16

IntegrationandTestResultsAftercuttingthecircuitryoutofthedigitalbathroomscale,eachsensorwas

individuallymeasuredwithamultimeterandtheresistanceswererecorded.While

measuringresistances,pressurewasappliedtodeterminewhetherthecurrent

increasedordecreased.TheresultscanbeseeninTable3.

Table3:MeasuredResistanceValuesforEachWeightSensorandtheChangesis

ResistancewhenForceisApplied

Pressure

Resistor

Location

BlackIncrease/

DecreaseWhite

Increase/

Decrease

Blackand

Whitein

Series

TopLeft 1kΩ increase 1kΩ decrease 2kΩ

TopRight 1kΩ increase 1kΩ decrease 2kΩ

BottomLeft 1kΩ increase 1kΩ decrease 2kΩ

BottomRight 1kΩ increase 1kΩ decrease 2kΩ

DesiredVoltageCalculation:

Thefollowingequationwasusedtodeterminewhichresistorvalueswereselected.

Onceselected,theresistorswereplacedintotheamplifierdesign.

𝑽𝒐𝒖𝒕 = (𝑽𝟐 − 𝑽𝟏)(𝟏+𝟐𝑹𝟐𝑹𝟏

)(𝑹𝟒𝑹𝟑)

𝟓𝑽 = (𝑽𝟐 − 𝑽𝟏)(𝟏+𝟐𝑹𝟐𝑹𝟏

)(𝑹𝟒𝑹𝟑)

Page 17: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

17

AfterincorporatingtheWheatstonebridgewiththeamplifier,constantweightwas

appliedtothebridgeinincrementsof5lbs.Foreachincrementthevoltagewas

measuredattheoutputoftheamplifier.TheresultscanbeseeninTable4.Initially,

thechangeinvoltagewasinthemicrovoltrangebutafterapplyingtheamplifierthe

changeswereseenwithinarangeof0.4V.

Table4:MeasuredVoltageValuesusedtodeterminetheRelationshipBetweenVoltage

andWeight

ThevaluesfoundinTable4wereplacedintoExcelandplottedinorderto

determinearelationshipbetweenweightandvoltage.FromFigure4alinear

relationshipwasdetermined.Thisrelationshipwaslaterusedinwritingthe

softwarefortheADContheArduinoUno.

Page 18: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

18

Figure4:PlotofVoltagevs.WeighttoShowtheLinearRelationshipofVoltageto

Weightin5lb.Increments

Page 19: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

19

ConclusionInordertokeepthecosttoaminimumadigitalbathroomscalewasreverse

engineeredandtakenapartinordertoobtainfourelectromechanicaltransducers.

Eachtransducerhadthreewires,oneasasupplyandtheothertwocontained

resistors.Theresistorsweremeasuredtobeapproximately1kilohmandwere

sensitivetopressure.ItisconcludedthatthescaleimplementsaWheatstonebridge.

Thisbridgecircuittakesintwosignalvoltages(S+andS-)thatrepresentthevoltage

beingsuppliedandground.Itsoutputwhenmeasuredprovidesexcitesignals(E+

andE-)thatsendoutthechangeinvoltageduetotheincreaseordecreasein

resistance.Thischangeinvoltageprovedtohavealinearcorrelationtoweight.The

resistancechangeisminimalandinorderforthemicroprocessortoreadthesignal,

thevoltagechangeneededtobeamplified.Anoperationalamplifierwithahighgain

wasusedtoshowthechangeinvoltagewithina0.1Vdeviation.Thisvaluewasthen

senttoanAnalogtoDigitalConverter(ADC)andusedtodeterminewhenthedoor

wouldbecommandedtoopenorclose.

Page 20: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

20

Bibliography[1] http://www.healthometer.com/ Websiteforthebrandofdigitalbathroomscalethatwasusedasthe pressuresensitiveWheatstonebridgecircuitforthesystem.[2] https://www.arduino.cc/en/Main/ArduinoBoardUno WebsitecontainingthecircuitschematicfortheArduinoUno.Thiswasused asthemicrocontrollerduetoitsbuiltinAnalogtoDigitalConverter.[3] www.wikipedia.com Websitethataidedintheresearchofthecharacteristicsofacat. Ultimately,thevarietyinweightwasusedasthedeterminingfactor forthecircuit.[4] http://wdfw.wa.gov/ Websitethataidedintheresearchofthecharacteristicsofaraccoon. Ultimately,thevarietyinweightwasusedasthedeterminingfactor forthecircuit.[5] http://cds.linear.com/docs/en/datasheet/16789fs.pdf WebsitecontainingtheschematicfortheLT1679QuadLowNoise,Railto Rail,PrecisionOPAmp.ThisOPAmpwasusedtoamplifythestrain gaugesthatwereusedincreatingtheWheatstonebridgecircuit.[6] R.FordandC.Coulston,DesignforElectricalandComputerEngineers, Mcgraw-Hill,2007,p37. Thisbookcontainsmanyusefultoolswhenbeginningthedesignfor electricalengineers.Itwasusedasareferenceincalculatingcost analysisforbothlaborandproduction.

Page 21: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

21

Appendices

SeniorProjectAnalysisProjectTitle:CritterSitter:WeightSensingPetDoor Student:ShelbyRichardson Advisor:Dr.MartinKaliski

1. SummaryofFunctionalRequirements

Thisprojectiscenteredontheconceptofincorporatingbothadigital

communicationsystemthatwillworkalongsideacontrolsystem.Therewill

beaweightsensorimplantedintoafloormatlocatedattheentranceofthe

petdoor.Thissensorwillmeasuretheweightofanobjectthatisplacedon

thematandwillunlockthedooriftheweightbeingmeasuredisequaltothat

ofthehomeownerspetwithadeviationofapproximately+/-5lbs.The

systemshouldworkfastenough(aroundapproximately5seconds)sothat

thepetdoesn’tgetfrustratedandmove.Theamountoftimethatthedoor

willremainunlockedwilllastfordurationofapproximately5secondsso

thattheanimalhasenoughtimetoenterthrough.

2. PrimaryConstraints

Themainconstraintthatthisprojectwillfaceistiming.SinceIamaone-

personteam,designingandimplementingthisproductwilltakeasignificant

amountoftime.Anotherhugeconstraintwillbemakingsurethatthesystem

canworkeffectivelywithinamatandbesecuredfromtheenvironmental

factorsthatwillcausesignificantdamage.Thesystemwillalsofacealotof

challengeswithtimingaswellasifanotheranimalisroughlythesamesize

Page 22: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

22

asthehomeownerspetbeingabletoaccessthehomeaswell.Anotherhuge

constraintwillbekeepingitascosteffectiveaspossible.

3. Economic

Thegoalbytheendofthisprojectistohaveasystemthathasalreadybeen

testedandmodifiedbasedoffofconsumerreportsandsurveys.Someofthe

riskitemsthatmayaffectmyscheduleinclude:

-Failingtoreachdeadlines

-Componentsbreaking

-NottestingthesystemasIgowhichcanleadtoharderdebugging

-Programmingnotinterfacingwiththesystemproperly

-Faultydatabeingsentthroughthecommunicationnetwork

LaborEstimation

Thisproductasmentionedbeforewillbeverytimeconsuming.Sincethe

projectwillbedonebyonepersonthecostperhourwillrangeatabout$32

(matchingcompetitiveratesforwhatanelectricalengineerwouldbepaid).

Thetimespentondesigningandtestingwillrangeabout125-150man-hours.

ReferencingFordandCoulstonChapter10,theoptimalcostwouldbe(cost)=

125hrs.x$32=$4000[6].Theleastoptimal(cost)=150hrs.x$32=$4800.

4. IfManufacturedonaCommercialBasis

Ifthisprojectweretobemanufacturedonacommercialbasis,itwouldhave

thecharacteristicsasseenbelowinTable5Thecostwouldbedetermined

basedonthesizeofthepetdoorthatwasneededinordertoaccommodatea

specificpetorhowmanypetdoorsareusedinthehouse.Thecostshouldnot

Page 23: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

23

changeverymuchconsideringahomeownerislikelytoonlyhaveonepet

doorinstalledinthehome.

Table5:LongTermCostAnalysis

Item Cost

Resistor 7@$0.05=$0.35

LT1679 $6.43

Wire $6.99

ArduinoUno $24.95

Servo $5.95

Wood $1.50

WeightSensor 4@$3.99=$15.96

Labor 12hours@$32.00anhour=$384

Total $446.13

5. Environmental

Thisproductshouldhaveveryfewenvironmentalimpacts.Thegoalisto

haveaproductthatusesminimalelectricityfromthehomeandnotcause

anyadditionalelectricalcoststotheconsumer.Themanufacturingofthe

printedcircuitboardswillincorporatemetalssuchassilicon.Thesystemwill

alsobesafeandeasyfortheanimalstouseandwillnotcauseanyadded

irritationtothemsuchasmicrochipsorbulkycollars.

6. Manufacturability

Someissuesthatmightoccurwithmanufacturabilityaretheinfringementon

Page 24: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

24

otherpetdoorpatentrights.Thegoodpartaboutthisprojectisthatthe

majorityofthecomponentsbeingusedhavealreadybeendesignedand

manufacturedbyothercompanies.Thepriceofthesecomponentsand

dependingonwhoIpurchasefromwillenduphavingasignificantimpacton

thechangesthatmayoccurinthetotalcostofthefunctioningsystem.Ifat

anypointthesensorisdamagedthedoorwillnolongerbefunctionaland

mayeitherremainlockedorunlocked.Thiscomponentmostlikelywillbe

theonethatneedstobereplacedmostoften.

7. Sustainability

Somechallengesthatthissystemwillfacewillbemaintainingtheintegrityof

thesystemwhenconstantlysubjectedtoanimalsandthenatural

environment.Thegoalistomakesurethatthephysicalsystemisalways

protectedfromanysortofoutsidedamage.Thisiswherethephysicaldesign

ofthefloormatwillplayahugerole.Anotherkeythingismakingsurethat

thetimerandprogramdon’tglitchbecauseifittriestolockonthepetitmay

causethepettobecomefrightenedcausingthemtoinflictdamagetonotonly

themselvesbutthedoor.Damagetothepetscouldleadtoaneventual

lawsuit.

Ifthedesignneedstobeupgradedthenthemicrocontrolleritselfwillhaveto

bereplaced.Thiswilltakeawaythemaincontrollerofthesystem.This

shouldnotbeaproblemhoweverfortheweightsensorsandthoseshouldbe

easilyintegrated.Upgradingthedesignwouldcausetheconsumertohaveto

installandreprogramthenewsystem.Thiscouldbeahugeproblemfor

Page 25: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

25

consumerswhostrugglewithnewtechnologyandhavingtointegrate

technicalthingssuchasthecontroller.

8. Ethical

InreferencetotheIEEECodeofEthics[6],thefollowinglistwascomprised

toshowthepotentialethicalissuesthatthisprojectmayexperience:

-Notenoughfunding

-Havingasystemthatfailsafterashortamountoftime

-Animalsphysicallybreakingthesystem

-Infringingonanotherpetcompanies’patents

-Weightsensorfailingtoweatheroranimalinvolvement

-Weightsensorfailingwithchangesinanimaldiets

-Physicaldamagetohome

-Promisingtokeepanimalsoutbuthavingthesystemfail

-Recognizingandreferencinguseofsimilarpetdoortechnologies

-Automatedsystemcausingharmtothepet/keepingthepetfrom

physicallyusingthesystem

9. HealthandSafety

Thebiggesthealthandsafetyriskwouldbethetimingsystemfailingandthe

doortryingtocloseandlockonthepetwhileitisintheprocessof

entering/leavingthedoor.Thiscancausetheanimaltohaveintenseanxiety

orcausephysicalharmtothepet.Anothersafetyriskwouldbethatawild

animalofasimilarsizetothepetisabletofakeoutthesystemandenterthe

homecausingthehomeowner’spersonalbelongingsandfamilytobeatrisk.

Page 26: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

26

10. SocialandPolitical

TherearenopoliticalthingsthatIfeelthisproductwillaffect.Theonly

concernIcanseeispotentialanimalrightsactivistsworryingaboutthe

dangersthatitmayhaveontheanimalhoweverthissystemwillbeless

invasivethanmicrochippingthem.Icanseeanimalrightsactivistsbeing

morelikelytoapproveofaproductlikethisovermicrochipping.IfIfailto

provideaneffectivesolutiontopetdoorsthanthehomeownersarebackto

leavingtheirhomesatrisktowildanimalinvasions.

Development

Thedesignanddevelopmentofthisproductreferencesthespecificationsgivenby

theIEEEprotocol.Thisallowsmorecreativefreedomandtheabilitytomanipulate

boththecodinganddesignofthesystem.ThecreativesolutionthatIamofferingis

thattheweightsensorincorporatedintoaestheticallypleasingfloormats(allowing

theanimalstocleantheirpawsbeforeentering)willbeeasytouseandwill

effectivelykeepoutunwantedanimalswheremycompetitorshavealready

promisedtodoandfailed.

Page 27: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

27

SpecificationsandRequirements

Forthisprojecttobesuccessful,therearethreecomponentsthatneedtobe

completed.Thesystemneedstobeabletobeinstalledeasily,theweightsensor

needstobeintegratedandcalibrate,andthemotorneedstofunctionproperly.

Figure5outlinesinmoredetailwhateachrequirementneedstosatisfy.

Figure5:HighLevelBreakdownofSystemComponentRequirements

Theinputandoutputsneedtobeestablishedtomakesurethateachcomponentis

incorporatedproperly.Table6givesamoredescriptivelayoutofwhateachinput

andoutputofthesystemdoes.

Table6:DecompositionoftheInputsandOutputsandDescriptionofRequirements

Page 28: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

28

Figure6isaflowdiagramthatshowsthestepsthataretakeninordertocomplete

theprojectinasufficientamountoftime.Firsttheweightsensorneedstobe

designedintoaWheatstonebridge.Followingthisstepistheintegrationofan

amplifiertoamplifythevoltagesignalandthefoundationalprogrammingisstarted.

Oncethesestepsarecompletedtheentiresystemcanbeintegratedtogether.

Figure6:FlowDownDiagramoftheStepsTakentoCompletetheProject

PartsListandCost

Table7liststhepartsusedandthecostofeachindividualitem.Sinceadigital

bathroomscalewasused,theoverallcostwascheaper.Inordertogiveamore

realisticvalue,electromechanicaltransducerswereresearchedonlineandthatcost

isincludedinthetablebelow

Page 29: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

29

Table7:OverallBreakdownofthePartsUsedandEachPartsTotalCost

Item Cost

Resistor 7@$0.05=$0.35

LT1679 $6.43

Wire $6.99

ArduinoUno $24.95

Servo $5.95

Wood $1.50

WeightSensor 4@$3.99=$15.96

TOTALCOST $62.13

Page 30: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

30

Schedule–TimeEstimatesTheGanttchartsfoundbelowinFigures7(a-c)showthetimeframethatwas

constructedinFallof2015afordevelopingthisproject.Thechartsaresplitupby

quarterinordertocreateahigher-levelchecklisttofollow.Itisimportanttonote

thatthesechartsweremeantasaguide.Justaswithanytypeofengineeringproject

theschedulewasadjusted.Fallquarterwasusedasaninitialbrainstormingto

figureoutwhatwasnecessarytobedonetocompletetheproject.Winterquarter

involvedresearchanddevelopmentofthedesiredsystem.Springquarterwas

wheremostofthefinaldesignandtestingoccurred.

Figure7a:Fall2015GanttChart

Figure7b:Winter2015GanttChart

Figure7c:Spring2015GanttChart

Page 31: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

31

ICLocationDiagram

ThefollowingdiagramfortheLT1679wasobtainedfromtheLinearTechnology

websiteandincludedinFigure8below[5].

Figure8:LinearTechnologyLT1679IntegratedCircuitPinOutDiagramfrom

Datasheet

Page 32: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

32

PCBoardLayoutForthisprojectaPCboardwasnotcreated.Insteadasolder-lessbreadboardwas

used.Itisimportanttonotethatbecauseofthisdecision,thewiresneededtobe

shortenedasmuchaspossibleinordertoavoidunduesignaldistortion.Whenno

loadisappliedthereshouldbe0voltsbeingreadbytheArduino.IfaPCboardwas

used,thiswouldhavegivencloserresultsto0voltsthanthesolderlessbreadboard

did.ItisrecommendedforfutureproductionthataPCboardbeusedinorderto

increasetheaccuracyandsensitivityofthescale.Thesolderlessbreadboardlayout

canbeseeninFigure9below.

Figure9:SolderlessBreadboardLayout

Page 33: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

33

ProgramListing(forSoftware)#include<Servo.h>Servomyservo;voidsetup(){//putyoursetupcodehere,torunonce:Serial.begin(9600);//initializingserialcommunicationat9600bits//persecondmyservo.attach(9);//attachservotopin9myservo.write(90);//setservotolockingposition}voidloop(){//putyourmaincodehere,torunrepeatedly:intsensorValue=analogRead(A0);//readinputonanalogpinA0floatvoltage=sensorValue*(5.0/1023.0);//convertanalog//readingto0-5Vdelay(2000);//waittogetasolidreadingSerial.println(voltage);if(voltage>1.0&&voltage<1.4){//checkifvoltageisinrangemyservo.write(0);//unlockthedoordelay(5000);myservo.write(90);//lockthedooragaindelay(5000);}else{myservo.write(90);//doorremainslocked}}

Page 34: Critter Sitter: Weight Sensing Pet Door Dr. Martin Kaliski

34

HardwareConfiguration/Layout

Figure10belowisthecompletelayoutoftheproject.Thisfigureshowsthe

connectionoftheWheatstonebridgetotheLT1679.TheLT1679connectstothe

analoginputoftheArduinoUno,whichthenconvertstheanaloginputtoadigital

value.Thisdigitalvaluedrivesthemotor.

Figure10:CompleteSchematicfortheCritterSitter:WeightSensingPetDoor