0% found this document useful (0 votes)
78 views5 pages

Bike Lending Project for Students

1) An environmental science class at a small high school started a bike lending project to address traffic and parking issues caused by most students arriving by car. 2) They are collecting and fixing donated bikes, adding storage modifications, and installing additional dividers on existing bike racks to store the bikes. 3) An electronic security system using a Raspberry Pi computer will automate the process of checking out bikes using individual student ID passwords, with trip wires and an alarm to detect any unauthorized removal of bikes.

Uploaded by

api-325001255
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views5 pages

Bike Lending Project for Students

1) An environmental science class at a small high school started a bike lending project to address traffic and parking issues caused by most students arriving by car. 2) They are collecting and fixing donated bikes, adding storage modifications, and installing additional dividers on existing bike racks to store the bikes. 3) An electronic security system using a Raspberry Pi computer will automate the process of checking out bikes using individual student ID passwords, with trip wires and an alarm to detect any unauthorized removal of bikes.

Uploaded by

api-325001255
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SparshGauba

April14,2015
BikesLendingProject
Introduction
Withonly500students,myschoolisverysmall.However,sincealmostallofthe
studentscometoschoolinacar,thereisalwaysaparkingandtrafficprobleminthemornings
andafternoons.Inmyenvironmentalscienceclass,thistranslatedtounnecessaryuseofgasand
pollutionoftheenvironment.Afterfurthercollectingdatafromallofthestudents,myclass
foundoutthatmorethan50studentslivewithina5mileradius,makingitpossibleforthemto
cometoschoolwithouttheneedofcars.Asanenvironmentalscienceclass,wedecidedtostarta
projecttoencouragestudentstobiketoschoolbycreatingabikelendingsystem,throughwhich
studentscanrentbikesprovidedbytheschool.

GatheringBikesForTheProject
Tostartthisprojectwenotonlyneededseveralbikes,butalsotheinfrastructure,suchas
bikeracks,locks,andaconvenientprocessofrentingabikethatdidnotinvolveconstanthuman
presence.Thelackofbikeswasovercomebybringinginseveralbrokenanddonatedbikesfrom
thesurroundingneighborhoodandstudentsintheclass.Currently,weareintheprocessoffixing
thesebikesbyreplacingthechains,tiresetc.Wearealsopaintingtheminourschoolscolorsto
givethemauniformlook.Tomakethemmoresuitableforstudents,wearealsomodifying
severalbikestohaveasidecarorothertypesofconvenientstorageinwhichtheycanputheavy
orlargeprojectsthatotherwisewouldneedacarinordertobetransported.

BikeRacks

CurrentBikeRacks


Withenoughbikesforthebikelendingsystem,therealsoneedtobeenoughbikeracks
andgoodsecuritymeasuresinordertosafelystorethebikes,somethingwhichIamcurrentlyin
chargeof.Thiswasinitiallyachallengesincemyschoolhasveryfewbikeracks,mostofwhich
areusedregularlybypeoplewhousetheirpersonalbikestocometoschool.Usingthesebike
racksfortheschoolbikeswouldnotleaveanyspaceforstudentsownbikes.Atthesametime,
makingnewbikerackswouldrequiremetalpipingandtoolsthatdonotfitintothisprojects
budget.

Figure1GraphicalRepresentationofBikeRacks

Tosolvethisproblem,Idevisedaplantoincreasethenumberofbikesthatcanfitinthe
existingbikeracksbyaddingmoredividersandmetalbarstowhichbikelockscanbeattached.
Sincethepreexistingbikerackswerefairlyspreadapart,thiswasagoodwaytomaximize
spaceaswellasreducetheworkneededtocreatemorebikeracks.AsFigure1shows,thegray
portionsofthebikeracksalreadyexist,andareusedbystudentstolocktheirpersonalbikes.The
greenpartsofthebikerackarebeingbuiltbymyteammatesandIbyweldingscrapmetalpipes
togetherandattachingthemtothecurrentbikeracks.Theschoolcurrentlyhasthreegroupsof5
Ushapedbikeracksaroundthecampus,somodifyingallofthebikerackswillresultinenough
spacefor24bikes,10ofwhichwillbeusedbytheschooltostorebikesforthebikelending
program.

ElectronicSecuritySystem
Whilethebikeracksallowforeasystorageofbikes,therestillisaneedforasecurity
systemforbikesthatwillbeaccessibletoallthestudentswithoutthedangerofthebikesbeing
stolen.Usingcombinationbikelockswouldonlyprovidesafetyforaverylittletimesincetheir
combinationwillinevitablybecomecommonknowledgeandresultinthebikesbecoming
extremelyvulnerable.Furthermore,lockswithphysicalkeyswouldrequireconstantorganization
ofkeysfromaperson,whichissomethingIamtryingtoavoid.

Figure2SecuritySystemBlockDiagram

Inordertoovercomethechallengeofkeepingallthebikessafeandeasilyaccessibleby
userswithouttheneedofanotherperson,Iplantocreateanelectronicsecuritysystemthat
wouldautomatetheprocessofunlockingandlockingthebikes.Thealarmsystemconsistsof
RaspberryPi,apalmsizedcomputer,alongwithanelectricaltripwiregoingthroughtheframe

ofeachbike,asshowninFigure2,tocreateanalarmsystem.Undernormalcondition,the
GPIOINwillbegroundedandhaveaVoltageof0relativetoVCC.Ifthethetripwireis
disconnectedanywherewithoutauthorization,theGPIOINwillreceivetheVCCvoltageas
HIGHsignalandtheRaspberryPiwillsendasignaltosoundthealarmandstartrecordinga
footageofthebikesthroughtheGPIOOUTports.
Todeactivatethetripwireandthealarm,therewillbeanumpadattachedtothe
RaspberryPitoenterapassword,uniquetoeachuser.Thepasswordforeachstudentwillbehis
orherStudentIDnumber,whichisa4digitcodethatallstudentsaregivenbytheschooltobuy
schoollunch.Thisisconvenientforstudentssincetheywillnotneedtorememberanew
password,andalsomakesiteasyfortheschooltoseewhoischeckingoutbikes.

Figure3SecuritySystemStateMachineDiagram

Eachtimeapasswordisentered,thePiwillrecordthetimeofpasswordentryandturnon
thecameraforsecurity,asdetailedinFigure3.Afterthepasswordisentered,thetripwirewill
bedeactivatebythePi,whichwillallowtheusertounlockandcheckoutthebike.Toreturnthe
bike,eachuserhastoenterhisorherpasswordagain,whichwillcompletethetransaction.The

programontheRaspberryPiwillmanagealogfileofthetimeofallbikecheckoutandreturns,
aswellasnameofthestudentlinkedtothetransaction.
Ifthecircuitisbroken,thePiwillsoundanalarmandturnonthecameratorecorda
videooftheincident.Thealarmwillbedisabledafterenteringthemasterpassword,givenonly
totheschool,andconnectingthetripwire.Tosavedataandmakeiteasytolookupfootage
fromaparticulartime,thecamerawillbeenabledonlyduringemergencyandstudentactivity.

FuturePlans
Althoughthedesignoftheautomatedsecuritysystemprovidesampleamountofsecurity
withitspasswordentrysystem,tripwirealarmandacamera,therearestillsomeminoraspects
oftheRaspberryPislogicandthetripwiredesignthatcanbeimproved.Forexample,whilethe
passwordsystemallowsforstudentstobeidentifiedbytheirpasswords,thereisnowaytotrack
whichbikethestudenthastaken.Whenastudentunlocksthesecuritysystem,heorshecantake
anyoftheavailablebikes,andpossiblyevenmultiplebikes.Theonlyworkaroundforthis
probleminvolvesapersonlookingthroughthefootagedailytomakesurethatallthebikesare
accountedfor.Anothersolutioncouldbethatthesecuritysystemtakesasnapshotofthebike
racksdailyatagiventime,whichcouldbeeasilycheckedbyapersontocountthebikes.Also,
sincethisprojectisstillaworkinprogress,andwillstarttotakeshapeoverthenextfewweeks,
theseproblemswillbeaddressedbythetimethesecuritysystemisbeingimplemented.Thecode
fortheRaspberryPiwillbeimplementedinCtomakeitpossibleforitsGPIOtocontrolthe
camera,tripwire,andalarmspeaker.
Thecurrentnumberofbikes,whichisten,isagoodstartfortheproject,butnotenough
toeffectivelyimprovetheschoolstrafficproblem.Inthefuture,thisprojectissettoexpand
withadditionalbikesandbikeracks.Inordertosupportthisexpansion,moresecuritymeasures
willalsobemadetoprotectandmanagethebikes.

You might also like