Home Automation Application with voice commands using Arduino

Page 1

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

Home Automation Application with voice commands using Arduino

1 ,2,3 Dept. of E&TC Engineering, Dr. D. Y. Patil Institute of technology, Maharashtra, India ***

Abstract- Sincethe utilizationof energyis expandingstep bystep, thereisan extraordinary need tostoptheabuse of energyaltogether.Homeautomationisoneofthebestwaysoftheutilizationofthisinnovationeverybodycanimprovetheir lifestyleatthehomes, iteraseshuman endeavorsandstress, energy efficient inthiswaymakea smarthome. Thishome mechanizationor innovationprogressismindblowinginprevioustimeandinthefuturetooitwilldevelopdramaticallyas their necessities, prerequisites, and advantages. Everybody wants to save their time and energy alongside this there are likewiseincapacitatedindividualsinhousesandtheycan'tmoveregularlyinthehomeforcontrollingmachines,soutilizinga homeautomationframeworkempowersthoseallindividualstocontrolalltheapparatuseseffectivelyandwithease.This papergivesthepragmaticmethodologyandexecutionofadependable,effectivelyopen,reasonable,minimizedandmodest. Homeautomationframeworkthatdependsonanandroidphone,homeappliancescanbecontrolledwithsimplyasingletouch ontheandroidportableapplication.

Key Words: Automationframework,ArduinoNANO,AndroidMobileApplicationControlled framework,BluetoothHC 05 controlled,programmablemechanization

1. INTRODUCTION

AutomationTechnologyhasnumeroususes,advantages,andapplicationsineveryfieldoflifesuchasindustrialautomation, Lightingcontrol,Aircraftautomation,automaticvehicles,Appliancecontrolandintegration,Securityandtrackingautomation technology.Theconsumptionsofenergyathomestendtoincreaseinproportionwithanincreaseofheavyhomeappliances likeairconditioning,refrigeratorsandheater.Homeautomationcangivemorequalityandeaseoflifeforeveryone. Home automationtechnologybecomesanenergyconsumptioncontrollerandaneasilyaccessiblesmarthometechnique..Thesystem designedisacombinationof smartphones and anembeddedsystemthatconsistsArduinoModule,aBluetoothdevice,and aRelaymodule.Thisresearchprovidesacheaper,efficient,effective,anduser friendlyinterfaceeasilyaccessiblesystemof homeautomation. The system can be easilyupdated with just simple changes thatensures reliability. . In general, home electricalappliancesstillusing the simpleman handlingcontrolsystem,thisproblemcanbeovercomebythedevelopmentof automaticandprogrammablecontrolsystem.This researchgivesanewsystemofhomeautomationbasedonArduinousing Bluetoothwirelesscommunication.ThisSimpleArduinobasedsystemiscostefficient,givesaccurate working, and gives userstocontrolallelectricaltypesofequipmentthroughaSmartphoneApplicationwithjustaclick.Thesystemprovidesan easyinterfacefortheusertooperateallhomeapplianceswithanapplicationorprogrammablecontrol. Throughthemobile application,onecansendsignalsofon/off easily.Onecansendsignalsinbothmodesswitchaswell asvoicecommands.The everdeveloping technologyin homeautomationisbecomingmorepopulardaybydayaspertheincreaseindemandand requirement.

1.1 System Description

Thesystemusedinthishomeautomationisasfollow; Figure1.Blockdiagram

©
| Page3076
2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

AsweseefromthediagramtheArduinoplaysthemainfunctionofmicrocontrollerinthesystem.Arduinocontrolsthe mobileappandBluetoothmodule.TheArduinoNANOhoststheC++programmingScriptswhichprovidestheusertoaccess allhomeappliances.Theprogrammingscriptisthecoreofthissystemwhichcarriesakeyroleinprocessingallinstructions withtheArduinoNANOmodule.Anad hoccommunicationprotocolissetupbetweentwodevices,whichallowcontrolling thebehavioroftheArduinoandBTboard/module.WirelessserialcommunicationissupportedbytheArduinoNANOover Bluetooth[5].Overallthishomeautomationsystemconsistsofthefollowingmajorparts:

A. ARDUINONANO

TheArduinoNanoisasmall,complete,andbreadboard friendlyboardbasedontheATmega328(ArduinoNano3.x).Ithas moreorlessthesamefunctionalityoftheArduinoDuemilanove,butinadifferentpackage.ItlacksonlyaDCpowerjack,and workswithaMini BUSBcableinsteadofastandardone.

B. BLUETOOTH(HC 05)MODULE

Bluetooth(HC 05)ModuleThemediumbetweenthesystemandtheAndroidmobileappforcommunicationistheBluetooth. Itplaystheroleofthewirelessmediuminthesystem.ThisconnectstheArduinosignaltothemobileappasArduinohas programmingwithinit.Itworkswithinalimitedrange,butitsrangescanbeincreased.

C. RELAYMODULE

© 2022, IRJET |
7.529 |
9001:2008 Certified Journal | Page3077
Impact Factor value:
ISO

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

Relay Module As the block diagram shows the AC supply of all appliances is across the relay module with acts as an electricallyoperatedswitch.

D. ANDROIDMOBILEAPP

Amobileappisusedtooperateallappliances.Intheapp,justsimpletouchcanturntoswitchoff/onyourallappliancefrom anywhereinthehome.

1.2 SIMULATION METHODOLOGY

Figure2. Simulationmethodalogy

Insimulationdesign,allthemajorcomponentsareplacedsothattheworkingandprocessingofthesystemcanbeobserved before implementing the hardware. The result of the simulation design was up to the mark that system works with high accuracyandhighexecutionspeed.TheArduinoIDEcaneasilybedownloadedfromtheofficialwebsiteoftheArduino.Arduino asamicrocontrollerwhichisconnectedwithBluetoothmoduleHC 05forwirelesscommunication.Arduinoisalsoconnected totheloadswithhelpofrelaymodulesystemhasafour channel relay module and all the loadsareparallelconnected. Afteralltheconnectionstheprocessofthesimulationwasexecutedandfinally observed that the system id working accuratelyandcorrectlywithoutanyerrors.Theandroidapplicationreceivescommandintwowaysfirstlyclickingthebutton and secondly voice command. These commands are carried by the Bluetooth module toward the Arduino for further processing.

2. HARDWARE DESIGN

Figure3.HardwareDesign

Inahardwareimplementation,ArduinoNANOisplacedasamicrocontrollertocontrolthehardware.OntheNanoboard,22 pinsareassociatedwithinputandoutput.Inthat14pins(D0toD13)aretruedigitalIOpins,whichcanbeconfiguredasper

©
Journal | Page3078
2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

you application using pinMode(), digitalWrite() and digitalRead() functions. [6]. Arduino does not carry any wireless connectionwithinitthatiswhyweuseBluetoothmoduleHc 05forwirelesscommunication.Bluetoothdeviceisusedfor communicationbetweenSmartphoneapplicationandArduinoNANO.TherelayModuleiscontrolledbytheArduinowhich receivesthecommandfromtheSmartphoneapplication andprocessesthereceivedcommand.TherelayModuleisusedas electricalswitchesinthesystem.Oursystemhasfourrelaychannelsfordifferentloads.Thedesignofthehardwareofour sampledhomeautomationsystemisasfollows:

HardwaredesignHardwareimplementationconsistsofthefollowing:

• ArduinoNANO

• BluetoothModuleHC 05

• 4ChannelRelayModule(9V)

• Powersupply,Loads(wattsavers)andconnectionwires,etc

• 9vBatteryor9vadapter

• Jumperwires

MATHEMATICAL DESIGN

Settheorywasusedinthissystemforthemathematicalrepresentation[1].LetsupposethesystemisSS={O,I,U,E,S,send[], Received[]}Here;

S = Starting state of the system. I= Input command for the system. O= {01, 02, 03, 04}, 01= Operation for load one 02= Operationforloadtwo03=Operationforloadthree04=OperationforloadfourSend[]=Itisacommandsendingfunctionto Arduino.Forexample,InputcommandSend[I]Receive[]=Itisthecommandreceivingfunctionfromthemobile app.For example:ReceivingthecommandReceive[I].

E=State’sEnd[1].[1]

I. SOFTWARE DESIGN

ThesoftwarepartofthesystemisprogrammingonArduinoNANOandsecondisthedesigningoftheandroidmobile telephoneoperationforthesystem.Thesoftwarewhichwasusedinthissystemformakingcomeintoexistencethetelephone operationwasMittelephoneoperationinventor[1].

Page3079
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal |
Figure
4 AppDesign

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

II. CODES OF ARDUINO NANO

TheprogrammingoftheArduinowhichactasthemicrocontrolleristheheartofthesystemwhichplaysavitalparttoact thesystemaccuratelyandwithsmallamountofsupport.codesoftheArduinoareonlydesignedatC++languageandwhich needthesystemaccordingtotheuserteaching[8].Thesecodesareonlydesignedforthissamplestartingplaceautomation system.ThesecodeshaveparticularlyusedpinsintheArduinowhichtheonlybeusedforthistypeofsamplesystem.The hardwareofthesystemisdesignedaccordingtothesecodes.Hereisthelinkofthecodesusedinthissamplesystem[8].

III. EXPERIMENT TEST

Basedontheoperationofmakingobservationsandworkguided,attempttolookattheoutcomeofthesystem.

Atanearlyage,thehomeappliancesbusinessmanagersweresuchascontrolledbyhandliketoturnon/offtheappliances onehastogototheswitchboard.Itisgoodfornormalpeoplebutanoldagepersonandthephysicallyputoutofnormal operationpersoncannotwayinit.So,thesystemenablestocontrolofallstartingplaceappliancesfromafaraway,widely differentareainnow.Nowwecanoperateourstartingplaceappliancesfromanywhereinthehomebutwithintherangeof theBluetoothpartofagreaterunit.Thiswayingivesachancetomakeseemunimportanttheusingupofenergy,user7'stime, andtakeinforalltooperateelectricalappliances.Thissystemisverysimple,nothardtouseanditisespeciallyselectedfor peoplewithoutatechnicalbackknowledge.Itisverysimple,nothardtousethehomeautomationsystemwhichmakesuser friendlyandactofmakingregulartosupport.Thissystemismuchbetterforscalabilityandabletomakereadyadjustments thanthebybusinessavailablestartingplaceautomationsystems.

Thesystemisverysimpleintheputtingintoeffectandalsofortheuser7'spointofview.Thecomplexpartofthesystemis verylowsothatallnon technicalpeopledonotdiscoverithardtousethetechnology.Forthehardwaresimplicity,short sendingwordServicewithlowpricefortake backandcontrolfromanyphonetomoveupanddowntheswitchstate.The processingtimeoftheneedisverylowwhichshowshighefficiency.Theworkingefficiencyofthesystemisveryhighbecause theneedaspergivenbytheuserisaccuratelydonebythesystem.Intheputtingintoeffectofthesystem,itisverycarefully observedtheefficiencyofthesystemthatwhentheneedisgivenfortheL0AD1thenitisonlyprocessedforload1andgiven accurateresultswith100%efficiency.Intheputtingintoeffect,themicrocontrollersayswithoutanydoubtthesystemwith highaccuracyintheworkingprocess.Bluetoothpartofagreaterunitwithalimitedrangemakescertainthehighexecution speedofthesystem.relaypartofagreaterunitwithloadconnectionsgiveselectricalopenswitchandsafetyintheformofany fault.

©
| Page3080
2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056

Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

IV.RESULT AND DISCUSSION

Thissystemhasmanyadvantagesoverotherfamilylivingplaceautomationsystemsthatareitslowpriceanduser friendly interface,anotheristhenobeingcomplexofthesystem.Thissystemhasarangelimitbecauseof,inrelationtotheuseofa Bluetoothpartofagreaterunitwhichmakesitsaferandmorecomfortablefortheusertowayinthesystem.Manyotherwell dressedstartingplaceautomationtechnologieshascomplexconditionsandtheyareveryhighpriced,ofgreatvaluethussystem cameupwithnewtechnologysothatallpeoplecanmakeautomatictheirworksorduties.Inthissystem,insteadofusing advanced7technologiessuchaswi fi,IoT,andCloudasaBluetoothpartofagreaterunitisusedforcommunicationpurposeand integrating all other apparatuses in wireless mode. Bluetooth technology makes certain the quicker data transfer and its processing'smuchquickerthanothertechnology.

• WhentheusergivesthecommandtotheSmartphoneapp[6]theapplicationgivesthesignaltotheBluetoothdevicewhich isdirectlyconnectedwiththeArduinoboardSmartphoneapphasalltheGUIoptionsforallappliancesseparately.

• AfterreceivingthesignalfromtheSmartphoneapplicationBluetoothdevicesendthesignaltotheArduinoboardfor furtherprocessing,

• ThecontrollerinthissystemisArduinowhichcontrolsalltheappliances.BluetoothdevicesandtheRelayModule are connectedtotheArduinoNANO[4].TheRelay boardcommandfortheswitchingon/offtheappliancesisprocessedby ArduinoNANO.

• TheRelayboardactsastheopenswitch,itoperateson/off[3].TheMainsupplyofallhomeappliancesisconnected throughtherelayboard.

• MainwhileusergivesthecommandtoSmartphoneApplicationwhichistransferredtotheArduinothroughBluetooth Finally,Arduinocontrolsalltheappliancesbyprocessingthecommandandworkrelayaccordingly.

CONCLUSION

Thispaperpresentsacheap,secured,efficient,easilyaccessible,automaticallycontrolledsolutionforthehomeappliances Thissystemhasmanyfeaturesanditscostisalsoverylowcomparedto allothersystems.Itprovidessmartwork,energy consumptioncontrol,security,comfort,andeaseatthesametime.Inthispaper,theapproachwasnovelandhasachievedthe desiredtargettocontroltheapplianceswirelessly.Thesystemcanbeeasilymodifiedandupgradedwithdifferentfeaturesas pertheneedoftheuser.

Thisinterfacemakesthesystemaperfectchoiceforbotholdandnewhouses.Thefuturesystemwouldbemodifiedtoasystem remotelyviaIoTtechnologyandcloud.Wi FitechnologycanbeagoodreplacementforBluetoothtechnologytomaximizethe rangeandspeed.[3]ForthecontrolandmonitorvirtuallyalltheelectricaldevicesGSMtechnologywouldbeusedeasilyinthe systemwithasmallmodification.Thesystemcanbemadeadvancedbyusingdifferentsensorslikelightsensors(LDR),motion sensors (PIR sensor), and also various temperature sensors, based on the condition that provides toggling of devices

Page3081
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal |

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056 Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

automatically.Byusingthesealltherewouldbemorecomfortableandenergysavedi.e.,turningofflightsifnotnecessaryand checkingthebrightnessrequiredbyLightsensorandthemotionsensorlikePIRsensorcanbeusedtoturnoff/onanyelectrical devicesautomaticallyandalsocanbeusedforthesecurity.Forthesafetyofhomeownersandagreatercontrolsystem,itcanbe easilyintegratedcloselywiththehome.

The software app which is installed in the android mobile is modified by implementing other features such as speech recognitionvoicecontrolandcanbemodifiedbyfingerprintaccesstotheappthatmakesthewholesystemmoresecureand advanced.Themajormodificationstepwouldextendthesystemtoalarge scaleenvironmentlikeindustries,factories,and offices.

ACKNOWLEDGMENT

WewouldliketothanktheDepartmentElectronicandtelecommunicationEngineering,Dr.D.Y.PatilInstituteof Technology, forhisindispensablesupport.

REFERENCES

[1].N.David,A.Chima,A.UgochukwuandE.Obinna,”DesignofahomeautomationsystemusingArduino”,Internationaljournal ofScientific&EngineeringResearch,Vol.6,pp.795 801,june 2015.

[2].Prof.M.BSalunke,DarshanSonar,NileshDengle,SachinKangude,DattatrayaGawade,“HomeAutomationUsingCloud ComputingandMobileDevices”,Vol.3,Issue2(Feb.2013),||V2||PP35 37

[3].A.ElShafeeandK.A.Hamed,"DesignandImplementationofaWi FiBasedHomeAutomationSystem,"WorldAcademy ofScience,EngineeringandTechnology,vol.68,pp.2177 2180,2012.

[4]. Ahmed Elshafee, Karim Alaa Hamed, "Design and Implementation of a Wi Fi based Home Automation System”, InternationalJournalofComputer,ElectricalAutomation,ControlandInformationEngineeringVol:6,No:8,2012,pp1074 1080.

[5].Zekeriyakeskin,YunusEmrekocaturk,okanBingol,KublaiTasdelen,“Web basedsmarthomeautomation:PLCcontrolled implementation”,vol11,NO3,2014.

[6].SilviuFolea,DanielaBordencea,CasianaHotea,HonoriuValean“SmartHomeAutomationSystemUsingWi FiLowPower Devices”.

[7].MitaliPatil,AshwiniBedare,VarshaPacharne"TheDesignandImplementationofVoiceControlledWirelessIntelligent HomeAutomationSystemBasedonZigBee."InternationalJournalofAdvancedResearchinComputerScienceandSoftware Engineering

[8] T. Adiono, et al., “Curtain control systems development on mesh wireless network of the smart home,” Bulletin of ElectricalEngineeringandInformatics(BEEI),vol.7,no.4,pp.615 625,2018.

[9]O. S.Al Heety,Z.Zakaria, M.Ismail,M.M.Shakir, S.Alani,andH.Alsariera,“AComprehensiveSurvey:Benefits,Services, RecentWorks,Challenges,Security,andUseCasesforSDN VANET,”IEEE Access,vol.8,pp.91028 91047,2020.

[10]S. Alani,etal., “A Study Review on Mobile Ad Hoc Network : Characteristics, Applications, ChallengesandRouting Protocols Classification,” InternationalJournal ofAdvanced Scienceand Technology,vol. 28,no. 1, pp.394 405,2019

[11]R. A. Rahman, et al., “IoT based temperature and humidity monitoring framework,” Bulletin of Electrical EngineeringandInformatics(BEEI),vol.9,no.1,pp.9 11,2020.

[12]A. H. Ali, et al., “Smart monitoring system for pressure regulator based on IOT,” International Journal of ElectricalandComputerEngineering(IJECE),vol.9,no.5,pp.3450 3456,2019.

[13]A.M.Fahad,etal.,“Ns2 basedperformancecomparisonstudybetweendsrandaodvprotocols,”InternationalJournalof AdvancedTrendsinComputerScienceandEngineering,vol.8,no.1,pp.379 393,2019.

2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal |

Page3082
©

International Research Journal of Engineering and Technology (IRJET) e ISSN: 2395 0056 Volume: 09 Issue: 05 | May 2022 www.irjet.net p ISSN: 2395 0072

[14]A.A.Jaber,etal., “Internetofthingsbased industrialenvironmentmonitoring andcontrol: Adesign approach,” InternationalJournalofElectricalandComputerEngineering(IJECE),vol.9,no.6,pp.4657 4667,2019.

[15]S.Alani,etal.,“Anew energy consumptiontechniqueformobile Ad Hoc networks,”InternationalJournalofElectrical andComputerEngineering(IJECE),vol.9,no.5,pp.4147 4153,2019.

[16]M. A.Saad,etal., “Performance evaluationimprovement of energy consumption inadhoc wireless network,” InternationalJournalofAdvancedScienceandTechnology,vol.29,no.3,pp.4128 4137,2020.

[17]S.A.Rashid,etal.,“Predictionbasedefficientmulti hopclusteringapproachwithadaptiverelaynodeselectionfor VANET,”JournalofCommunications,vol.15,no.4,pp.332 344,2020.

[18]Mahmood,S.N.,etal.,“GSMbasedgasleakmonitoringsystem,”PeriodicalsofEngineeringandNaturalSciences,vol.7, no.2,pp.670 678,2019.

[19]A. L.Mahmood, etal., “Design and performance analysis of stand alone PVsystem atal nahrain university, Baghdad, Iraq,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 11, no. 2, pp.921 930, 2020.

[20]J.S.P.PeterandV.S.K. J. Reshmaa,“AStudyon MQTTbasedEnvironmentalParameters, Monitoring andAlarming System,”EurasianJournalofAnalyticalChemistry,vol.13,pp.323 327,2018.

2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal

©
| Page3083

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.