Вы находитесь на странице: 1из 19

let's make Explore(/tag/typeid/) Publish(/about/create.

jsp)
Login(/account/login/) | SignUp(/account/gopro)

Classes NEW! (/classes/)


Featured: share what you make
(/id/intel/) IntelIoT(/id/intel/)
(/)
(/tag/typeid/categorytechnology/channelarduino/) Arduino(/tag/typeid/categorytechnology/channelarduino/)

(/tag/typeid/categorycraft/channelknittingandcrocheting/) Yarn(/tag/typeid/categorycraft/channelknittingandcrocheting/)

(/tag/typeid/categoryworkshop/channellighting/) Lighting(/tag/typeid/categoryworkshop/channellighting/)

AboutThisInstructable

License:
8 223,271 views
1,147 favorites

(/file/FY81ISKHUHT1G99/)
ASCAS
(/member/ASCAS/)
MyYouTubeChannel
(https://www.youtube.com/c/techbuilder?
ControlyourArduinowithvoicecommandsusinganAndroidsmartphone! sub_confirmation=1)
Beforewemakeavoiceactivatedhomeautomationsystem,wemustfirstlearn (/member/ASCAS/)
Follow 7273
thebasicprinciplesoftheexperiment.Thisguidewillletyoucommandthe
ArduinousingyourAndroidsmartphoneandaHC05Bluetoothmodule. Bio:HiI'mAngelo!Iama18y/ocollege
sophomoretakingmymajorsinBSECEat
Thedesigneroftheappdidnotincludeasamplecode.Ilookedforalternatives theDLSU.Iusemycourseas...More
inGoogle'sPlayStorebutnonewasasgoodastheappthatI'vefound.Luckily,I (/member/ASCAS/)

wasabletofigureitoutalthoughittookmeawhiletoprogramit.SorryIOS
users,thisappisn'tavailableinApple'sappstore:/ MorebyASCAS:

VoiceActivatedArduino(Bluetooth+Android)
HowDoesItWork? by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)
HaveyoueverencounteredAndroid'sspeechrecognition?Yesandroidhasone (/id/Builda
andyoucanuseittocontrolyourArduino,viaBluetooth.TheAppworksby
Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .
pressingthemicbutton,thentheitwillwaitforyoutosayacommand.Theapp
willthendisplaytheword'sthatyou'vestatedandwillsenddatastringsforthe
Collection IMadeit! Favorite Share
BluetoothBoomboxSpeakerfrom
Arduinotoprocess.

HomeAutomationSystem(onJuly4,2014):
Amonthfromnow/I'llbereleasingahighlysophisticatedhomeautomation+
securitysystem.It'smybiggestprojectever!Ourcurrentagendaistoprograma
bettersmartphoneappthatwork'slikeSiri(talksback)andsendsstrings(data
types)totheArduinoviabluetooth.Ifyouwanttotakeasneakpeekofthe
projectandit'sconcept,kindlyskiptothelaststep.TheprototypethatI'm FastRaspberry
Scratch/) (/id/DIY
workingonnowiscomposedofanetworkofwirelessswitchboxesthat
connectstoamaincontrolpanelviaWiFi/Bluetooth.
PiBuilder
LifeSizePhoneControlledBB8Droid/)
Here'sAQuickVideoDemo:

Voice Activated Arduino Demo (using smartphone) Controlsensors,motors,


(/id/BuildThe
actuators&morewithour
freedrag&dropproject
builder.
WorldsLoudestAlarmclock/)

cayenne.mydevices.com

Ad
LedCircuitBoards
Choosefrom1M+VerifiedSuppliers.Contact
Directly&GetLiveQuotes!
www.alibaba.com

Step1:Parts&Materials

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android) by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share

(/file/FEMH9C6HUFW7EGF/)
FastRaspberry
PiBuilder
(/file/FQO92EMHUFW7EIP/) (/file/F88GCS8HUHFQ6Z5/)
(/file/FLJS92EHUHFQ6ZD/)

Ifyourhavingtroubleinfindingthem,I'msureRadioShack Controlsensors,motors,
(http://www.radioshack.com/home/index.jsp)hasallofthem.Ifyouwanttobuy actuators&morewithour
onlinetrysearchingonAmazon(http://www.amazon.com/)orDealExtreme freedrag&dropproject
(http://dx.com). builder.

Thingthatyou'llneed:
5LEDIndicators(thecolorofyourchoice)(http://www.dx.com/p/590635nm
8001000mcd3mmledgreen20piecepack124844#.U1xxNvmSySo)
ArduinoUNO(acloneworksfine)
(http://www.amazon.com/s/ref=nb_sb_noss_2?url=searchalias%3Daps&field
cayenne.mydevices.com
keywords=arduino%20uno%20)
HC05SerialBluetoothModule(http://www.dx.com/p/jymcuarduinobluetooth
wirelessserialportmodule104299#.U1xw6fmSySo)
SolderlessBreadboard(http://www.amazon.com/SolderlessPlugBreadBoard
tiepointspower/dp/B005GYATUG/ref=sr_1_2?
ie=UTF8&qid=1398567508&sr=82&keywords=solderless+breadboard)
JumperCables(http://www.amazon.com/Breadboardjumperwire75pcs
pack/dp/B0040DEI9M/ref=sr_1_16?ie=UTF8&qid=1398567508&sr=8
16&keywords=solderless+breadboard)

Buy Electronic
Components
Immediate access to deep
inventory. ECIA Authorized
Distributor.
ttiinc.com

Step2:AssembleTheMiniBluetoothShield
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android) by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share


FastRaspberry
PiBuilder

Controlsensors,motors,
actuators&morewithour
freedrag&dropproject
builder.

(/file/FZPRR6IHUFW7G3C/) cayenne.mydevices.com

(/file/FP2B0JKHUFW7EM0/) (/file/FY4PM13HUFW7FVX/) (/file/F0ABUE2HUFW7G4H/)

MyJYMCU(DXBluetoothModule)isstillinstalledonmyrobots,whatIhave
rightnowisthebareHC05module.

Asweallknow,theHC05doesn'tcomewithaPCB.Solderingwires,directlyto
themetalconductors,isn'tagoodideasincetheconductorscouldchipoff
anytime.Asasolution,youcancutafractionofperfboardthenmounttheHC
05onit.ImistakenlyconnectedmyLEDindicatoronablank(N/A)pinsomine
doesn'twork.
___________________________________________
ToolazytoassembleaBluetoothshield?DX.comhasareadymadeversion
(clickhere(http://www.dx.com/p/jymcuarduinobluetoothwirelessserialport
module104299)).I'veusedtheDXBluetoothmoduleonmyrobots,it'stested
andit's100%ok!YoucanvisitBluetoothrelatedprojects(BluetoothSumobot
(http://www.instructables.com/id/AndroidControlledBluetoothSumobot
UltimateDIY/)andBluetoothFPVRover
(http://www.instructables.com/id/RoverBot1/))asreference.

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

Step3:ConnectTheBluetoothModule
VoiceActivatedArduino(Bluetooth+Android) by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share


FastRaspberry
PiBuilder

Controlsensors,motors,
actuators&morewithour
freedrag&dropproject
builder.

(/file/F3LMXRLHUFW7G4I/) cayenne.mydevices.com

(/file/FN7MREWHUFW7G7Y/) (/file/FWEIBOCHUFW7G5O/)
(/file/FVWD6NHHUHFQ715/)

GrabsomejumpercablesandpowertheBluetoothmodulewith3.3volts.
Remember,thebareHC05runon3.3vandnoton5v.Ontheotherhand,the
JYMCUhasabuiltinregulator,itcanrunona5vline.

NowconnecttheRX(pin#0)oftheArduinototheTXpinoftheBluetooth
moduleandtheTX(pin#1)oftheArduinototheRXpinoftheBluetooth
module.(refertotheimageabove)

Step4:ConnectTheLEDs

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android) by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share

(/file/F39UGJTHUFW7GMS/)
FastRaspberry
PiBuilder

(/file/F9NUB98HUFW7GES/) (/file/F18O0IUHUFW7GLM/)
Controlsensors,motors,
actuators&morewithour
freedrag&dropproject
ConnectthepositiveleadsofeachLEDonpins#2,3,4,5,6oftheArduino.The
builder.
negativeleadsofeachLEDgoestothenegativerailofthebreadboard.The
negativerailofthebreadboardgoestotheArduino'sground.

Step5:ProgrammingTheArduino cayenne.mydevices.com

(/file/FV4T7SLHUHFQ67P/)

UnderstandingTheApp:
Beforeyouprogramthearduino,youmustfirstlearnhowtheappworks.The
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
appworkbyrecognizingyourvoicecommand,itwillthendisplaythewordsthat
you'vespokenthensendingdata/stringstothearduinoviabluetooth.What'sa
string?Astringislikeaword,youcanmakeconditionalstatementsoutofit[ex:
VoiceActivatedArduino(Bluetooth+Android) by
if(voice=="*computeron"){//turnPin#2on}].The"voice"isyourstring,
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)
"=="isyourcondition(meansequalto),"*computeron"isyourcommandand
thecodeinsidethecurlybraces"{}"arethecodestobeexecutedonceyour
Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .
stringmatchesthecommandcondition.
Collection IMadeit! Favorite Share

What'stheformatofthestring?Howdoesitknowwhenthenextcommand
kicksin?Howdoesitdifferentiateasetofwordsfromanewcommand?The
appsendsstringsinthisformat*command#,theasterisk(*)indicatesthestart
ofanewcommandandthehashtag(#)indicatestheendofacommand.Iwas
abletoremovethehashtag(#)aftereachwordintheconditionalstatementwas
notabletoremovetheasterisk(*).You'llneedtostartyourcommandcondition
withanasteriskotherwisethesketchwillnotwork.
FastRaspberry
HowCanIChangeTheCommands?
Youcanseethatthe"*TVon"ishighlightedfromtheimageabove.Ifyouwant
PiBuilder
tochangethecommandto,hummlet'ssay"opengaragedoor",youcanreplace
the"*TVon"with"*opengaragedoor".Alwaysremembertostartthe
commandwithanasterisk.
Controlsensors,motors,
actuators&morewithour
//CodedBy:AngeloCasimiro(4/27/14) freedrag&dropproject
//VoiceActivatedArduino(Bluetooth+Android)
builder.
//Feelfreetomodifyitbutremembertogivecredit

Stringvoice
int
led1=2,//ConnectLED1ToPin#2
led2=3,//ConnectLED2ToPin#3
cayenne.mydevices.com
led3=4,//ConnectLED3ToPin#4
led4=5,//ConnectLED4ToPin#5
led5=6//ConnectLED5ToPin#6
//CallAFunction//
voidallon(){
digitalWrite(led1,HIGH)
digitalWrite(led2,HIGH)
digitalWrite(led3,HIGH)
digitalWrite(led4,HIGH)
digitalWrite(led5,HIGH)
}
voidalloff(){
digitalWrite(led1,LOW)
digitalWrite(led2,LOW)
digitalWrite(led3,LOW)
digitalWrite(led4,LOW)
digitalWrite(led5,LOW)
}
////
voidsetup(){
Serial.begin(9600)
pinMode(led1,OUTPUT)
pinMode(led2,OUTPUT)
pinMode(led3,OUTPUT)
pinMode(led4,OUTPUT)
pinMode(led5,OUTPUT) Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
}
////
VoiceActivatedArduino(Bluetooth+Android)
voidloop(){ by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)
while(Serial.available()){//Checkifthereisanavailablebytetoread
delay(10)//Delayaddedtomakethingstable
Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .
charc=Serial.read()//Conductaserialread
Collection IMadeit! Favorite Share
if(c=='#'){break}//Exittheloopwhenthe#isdetectedaftertheword
voice+=c//Shorthandforvoice=voice+c
}
if(voice.length()>0){
Serial.println(voice)
////
//ControlMultiplePins/LEDs//
if(voice=="*allon"){allon()}//TurnOffAllPins(CallFunction)
elseif(voice=="*alloff"){alloff()}//TurnOnAllPins(CallFunction) FastRaspberry

//TurnOnOneByOne//
PiBuilder
elseif(voice=="*TVon"){digitalWrite(led1,HIGH)}
elseif(voice=="*fanon"){digitalWrite(led2,HIGH)}
elseif(voice=="*computeron"){digitalWrite(led3,HIGH)}
elseif(voice=="*bedroomlightson"){digitalWrite(led4,HIGH)} Controlsensors,motors,
elseif(voice=="*bathroomlightson"){digitalWrite(led5,HIGH)} actuators&morewithour
//TurnOffOneByOne// freedrag&dropproject
elseif(voice=="*TVoff"){digitalWrite(led1,LOW)} builder.
elseif(voice=="*fanoff"){digitalWrite(led2,LOW)}
elseif(voice=="*computeroff"){digitalWrite(led3,LOW)}
elseif(voice=="*bedroomlightsoff"){digitalWrite(led4,LOW)}
elseif(voice=="*bathroomlightsoff"){digitalWrite(led5,LOW)}
////
voice=""}}//Resetthevariableafterinitiating
cayenne.mydevices.com

Voice_Activation.zip(/ORIG/FR5/G1F5/HUHFQ6GC/FR5G1F5HUHFQ6GC.zip)

Step6:LearnToUseTheApp

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android) by
(/file/FI51050HUHFQ6K6/)
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .


DownloadTheFreeAppHere:AndroidMeetsRobots:Voice
Collection IMadeit! Favorite Share
(https://play.google.com/store/apps/details?
id=robotspace.simplelabs.amr_voice)

5SimpleSteps:
1st.)DownloadtheappfromGooglePlayStore
2nd.)Taponoptionsmenuthenselect"ConnectRobot"
3rd.)ClickonyourBTModule(inmycaseit'stheHC05)
4th.)WaituntilitsaysConnectedtoBTModule(HC05)
5th.)Taponthemiciconandstateyourcommand! FastRaspberry
Here'sAQuickDemoVideo:
PiBuilder
Voice Activated Arduino Demo (using smartphone)

Controlsensors,motors,
actuators&morewithour
freedrag&dropproject
builder.

cayenne.mydevices.com

Step7:NextProject:HighlySophisticatedHomeAutomation
(Network)

(/file/FJBWMJ7HUHFQ6VT/)

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
Here'sadrawingofwhattoexpectonmynextArduinoproject!
VoiceActivatedArduino(Bluetooth+Android) by
Sorryfortheterribledoodle:)
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share


Ad
LedCircuitBoards
Choosefrom1M+VerifiedSuppliers.Contact
Directly&GetLiveQuotes!
FastRaspberry
www.alibaba.com
PiBuilder

Controlsensors,motors,
actuators&morewithour
freedrag&dropproject
builder.

Wehaveabenicecommentpolicy. cayenne.mydevices.com
Pleasebepositiveandconstructive. wIMadeit! AddImages PostComment

moniba1(/member/moniba1) 5daysago Reply

siriwanttoconnectanlcdinterface16x2withthisprojectwhichwillshowthe
statusthatwhichlightisonatcertaininstantoftime.Thusinordertodosoi
needmodifiedversionofthiscode...socanuplzprovidemethatcode...itsmy
projectandihavenotimeleftsocanudothisfavourtomeasearlyas
possible?

maryamb7(/member/maryamb7) 14daysago Reply

PLEASEtellmehowtodownloaditcompletely...iamwaitingforananswer

Asmita01(/member/Asmita01) amonthago Reply

WhydoweneedthePCBdesignonHC05module?AndhowcanIdothis?
Pleaseguideme.AndIcannotconnectmymodulewithmygalaxygrand2set.
HowcanIconnect?

RomeoManuelD(/member/RomeoManuelD) amonthago Reply

Hi!Thisisaveryniceprojecttomake,andthankyouformakingatutorial.
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
However,IwanttoaddanAIfunctionthatyoucantalkto,likeSiriforexample.
IsthereanywayIcaneditthesourcecodeofthemobileapp?

VoiceActivatedArduino(Bluetooth+Android)
Thanks! by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .


Boldevin(/member/Boldevin) amonthago Reply
Collection IMadeit! Favorite Share
Hi

Iwantaversionofthisandroidappthatisconstantlylisteningfor
voicecommandssothatidontneedtopressthebuttoneverytime.doyouknow
ofanalternateapp/sourcecodeforthisonesoicanchangeitmyself?
js0902(/member/js0902) amonthago Reply

hi,itisagreatprojectanditisrelatedtomyfinalyearproject! FastRaspberry
unfortunatelyitisnotworkingwheniamusingsamsunggalaxys4astheapp
keepcannotrecognisemyvoiceandshowingtryagain..... PiBuilder
ihavetestedthevoicerecognitionfunctionofmyphoneanditisworking...
anyonecanhelp??

Controlsensors,motors,
enjsof(/member/enjsof)madeit! amonthago Reply
actuators&morewithour
freedrag&dropproject
Imadeabluetoothactivatedrelayswitchusingthistutorial.Greatjob!IwishI
builder.
cangetittopowerbyusingthesameswitchandnotdependingonbatteriesor
ausbcable.Thanksfortheguide.

cayenne.mydevices.com

(https://cdn.instructables.com/FH3/XKZV/IUYDBJPK/FH3XKZVIUYDBJPK.LARGE.jpg)

X
VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)made
|
8 3monthsago Reply
it!

Worksperfectly.Ihaveplanstousethisinmylivingroom.

(https://cdn.instructables.com/FGI/TDXV/IT22TK1Y/FGITDXVIT22TK1Y.LARGE.jpg)

sachin008(/member/sachin008) . VolthausElectronicsLaboratory
(/member/VolthausElectronicsLaboratory) 2monthsago Reply

Oksirthanksalot

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
RaylinP(/member/RaylinP) . VolthausElectronicsLaboratory(/member/Volthaus

VoiceActivatedArduino(Bluetooth+Android)
ElectronicsLaboratory) 2monthsago
by
Reply

ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)
heydudecanugivemethesamplecodes?Ihaveproblemwitherrorin
mycodesandwhatcodelanguagedoyouuse?????thanks.:)
Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share


X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
. RaylinP(/member/RaylinP) 2monthsago Reply
8

HelloRaylinP,
ThecodeiseditedinanduploadedfromtheArduinosoftware.Also
knownastheArduinoIDE(integrateddevelopmentenvironment)andthe
videoandtheInstructablearticleiswhereIfoundtheinformation.Idid
managetoaddtwomorerelaystomycopyoftheArduinosoftware
(sketch)foratotaloffour. FastRaspberry
HereistheInstructable:
http://www.instructables.com/id/ArduinoHomeAutomationBluetooth/ PiBuilder
andhisYoutubevideo:
https://youtu.be/ecPbeIkFHxQ?list=PLLS_feeVWGq
LMUirPsmULI0Tl4721JLe
SoifIcanhelpyouwithanythingletmeknow.
Controlsensors,motors,
DavidConnolly,
volthauslab actuators&morewithour
freedrag&dropproject
builder.
X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
. VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory) Reply
8
2monthsago
MyvoicecontrolledArduino/4relaysketchisat:

http://volthauslab.com/sketchs/FourRelayVoiceControl/HomeAutomationVH4.ino

cayenne.mydevices.com

RaylinP(/member/RaylinP) . VolthausElectronicsLaboratory(/member/Volthaus
ElectronicsLaboratory) 2monthsago Reply

Sir,DavidImsothankfulforconsideringmyquestionandgivingsomeof
yourtimejusttoreplyme,Igreatlyappreciateit,:)andcanIask1more
thing?whenyoutrywiththecodeofSir.AngeloCasimerodoesthecode
work?orhavingsomeerror?thankyouverymuch!:)

creditstoSirAngeloCasimero:)
Stringvoice
int
led1=2,//ConnectLED1ToPin#2
led2=3,//ConnectLED2ToPin#3
led3=4,//ConnectLED3ToPin#4
led4=5,//ConnectLED4ToPin#5
led5=6//ConnectLED5ToPin#6
//CallAFunction//
voidallon(){
digitalWrite(led1,HIGH)
digitalWrite(led2,HIGH)
digitalWrite(led3,HIGH)
digitalWrite(led4,HIGH)
digitalWrite(led5,HIGH)
}
voidalloff(){
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
digitalWrite(led1,LOW)
digitalWrite(led2,LOW)
VoiceActivatedArduino(Bluetooth+Android)
digitalWrite(led3,LOW) by
digitalWrite(led4,LOW)
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)
digitalWrite(led5,LOW)
Download } h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .
////
Collection IMadeit! Favorite Share
voidsetup(){
Serial.begin(9600)
pinMode(led1,OUTPUT)
pinMode(led2,OUTPUT)
pinMode(led3,OUTPUT)
pinMode(led4,OUTPUT)
pinMode(led5,OUTPUT)
}
//// FastRaspberry
voidloop(){
while(Serial.available()){//Checkifthereisanavailablebytetoread PiBuilder
delay(10)//Delayaddedtomakethingstable
charc=Serial.read()//Conductaserialread
if(c=='#'){break}//Exittheloopwhenthe#isdetectedaftertheword
voice+=c//Shorthandforvoice=voice+c
Controlsensors,motors,
}
if(voice.length()>0){ actuators&morewithour
Serial.println(voice) freedrag&dropproject
//// builder.
//ControlMultiplePins/LEDs//
if(voice=="*allon"){allon()}//TurnOffAllPins(CallFunction)
elseif(voice=="*alloff"){alloff()}//TurnOnAllPins(CallFunction)

//TurnOnOneByOne//
elseif(voice=="*TVon"){digitalWrite(led1,HIGH)}
elseif(voice=="*fanon"){digitalWrite(led2,HIGH)} cayenne.mydevices.com
elseif(voice=="*computeron"){digitalWrite(led3,HIGH)}
elseif(voice=="*bedroomlightson"){digitalWrite(led4,HIGH)}
elseif(voice=="*bathroomlightson"){digitalWrite(led5,HIGH)}
//TurnOffOneByOne//
elseif(voice=="*TVoff"){digitalWrite(led1,LOW)}
elseif(voice=="*fanoff"){digitalWrite(led2,LOW)}
elseif(voice=="*computeroff"){digitalWrite(led3,LOW)}
elseif(voice=="*bedroomlightsoff"){digitalWrite(led4,LOW)}
elseif(voice=="*bathroomlightsoff"){digitalWrite(led5,LOW)}
////
voice=""}}//Resetthevariableafterinitiating

X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
. RaylinP(/member/RaylinP) 2monthsago Reply
8

Yesthecodeisfine.You'llwanttouseTools/AutoFormatifyoucopyand
pastethecodefromthispageIthink.Sometimescopyandpastingthe
codeintoawebpagecanmakeanegativechangeinthecode.Betteryet
downloadthezipandusethat.

RaylinP(/member/RaylinP) . VolthausElectronicsLaboratory(/member/Volthaus
ElectronicsLaboratory) 2monthsago Reply

HisirIhaveonemorequestion.canIuseanybluetoothserial?hopeill
getyourreplytnx:)
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android)
X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
by
|
. RaylinP(/member/RaylinP) 2monthsago
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/) Reply
8

Download IhavethebestresultsusingtheHC05module.Itseemstodoabetter
h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .
jobofmaintainingtheconnection.OftenwhenIuseHC06Ihavetokeep
Collection
reconnecting.Youareverywelcomemyfriend..I'malwaysgladtohelp IMadeit! Favorite Share
someonewhoisinterestedinelectronics.Goodluck.

sachin008(/member/sachin008) . VolthausElectronicsLaboratory
(/member/VolthausElectronicsLaboratory) 2monthsago Reply
sirIusedvoltagedividerforrxandtxstilltheLEDsaren'trespondingas
permycommands..Ichangedtheprogramandaddedaelsestatementin
theendwhatInoticediswhenispeakdirectlyelsestatementisgetting FastRaspberry
executednottheifelsestatements.Amnotunderstandingwhetherit'sthe
problemwithmyprogramormodule??? PiBuilder

X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
8
. sachin008(/member/sachin008) 2monthsago Reply Controlsensors,motors,
Ihavesomeinterestinginformation.Ihadthisworlingperfectlyand actuators&morewithour
decidedtobuildasecondsystem.Allthesamepartsandcode.Uploaded freedrag&dropproject
codeanddidnotgetLEDStoblink.Uploadedcode(samecodeas builder.
before)totheworkingsystemandnowitnolongerworks.Iwillbetrying
someotheroptionsbutIsuggesttryingitwithotherpartsandobserving
results.

RaylinP(/member/RaylinP) . VolthausElectronicsLaboratory(/member/Volthaus
cayenne.mydevices.com
ElectronicsLaboratory) 2monthsago Reply

ThankyousoMuchsirDavid:)hopeIcanreturnthefavor,againThank
you!:)

RaylinP(/member/RaylinP) . VolthausElectronicsLaboratory(/member/Volthaus
ElectronicsLaboratory) 2monthsago Reply

ThankyousomuchsirDavid!:)Imsograteful:)thankyouforconsidering
myquestionsandmakinguseofyourtimejusttoanswerme.againthank
you:)

sachin008(/member/sachin008) . RaylinP(/member/RaylinP) Reply

2monthsago
dudedidyourectifytheproblem??..Ifsoplzplzguideme,I
triedeverythingperfectlymyvoiceisalsorecognisedonthearmvoice
application(afterispeaktextappearsontheapp)butledsarenotblinking
asperthecommands.plzplzhelpmetosolvethisproblem...

RaylinP(/member/RaylinP) . sachin008(/member/sachin008) Reply

2monthsago
IwanttohelpyoududebutIdontknowhow.maybeyoucan
asksirDavidofVolthausElecs.Lab

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
sachin008(/member/sachin008) . RaylinP(/member/RaylinP) Reply

2monthsago
VoiceActivatedArduino(Bluetooth+Android)
TysmraylinPforreplyingsoquickly..Canyoutellmehowcan
by
icontactDAVIDsir??
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

sachin008(/member/sachin008) . VolthausElectronicsLaboratory
Collection IMadeit! Favorite Share
(/member/VolthausElectronicsLaboratory) 2monthsago Reply

SirItriedeverythingperfectlymyvoiceisalsorecognisedonthearm
voiceapplication(afterispeaktextappearsontheapp)butledsarenot
blinkingasperthecommands.plzplzhelpmetosolvethisproblem...
X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
8
. sachin008(/member/sachin008) 2monthsago Reply
FastRaspberry
Whenyouencounterproblemsyouoftenlearnevenmore..Younowneed
todoublecheckandconfirmyouhaveconnectedthepositiveleadsof
PiBuilder
eachLEDondigitalpins#2,3,4,5,6oftheArduino.(NottheAnalogpins)
ThenegativeleadsofeachLEDgoesto220ohmresistorsandthento
thenegativerailofthebreadboard.Ifyoudonotputaresistorbetween
eachLEDandthegroundyouwillprobablyruintheLED.ChecktheLED Controlsensors,motors,
andmakesureitisgoodandlights.Youcouldusethe5Voutputpinon
actuators&morewithour
theArduino..Maybepostapictureofyoursetup?Ihopethishelps,ifnot
wewillkeepworkingonituntilitdoes.Donotdespair,thisisthefunpart freedrag&dropproject
Sachin008. builder.

sachin008(/member/sachin008) . VolthausElectronicsLaboratory
(/member/VolthausElectronicsLaboratory) 2monthsago Reply

Thankyousirforconsideringmyquestion.SirIhaveconnectedLEDsand
BluetoothmoduleexactlyhowyousaidstillmyLEDsareglowingasper cayenne.mydevices.com
mycommand

X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
. sachin008(/member/sachin008) 2monthsago Reply
8

TheBluetoothmodulesHC05and06canbepoweredby5VDChowever
thesignalsbeingsentfromthemoduletotheArduinoandthesignals
backfromtheArduinototheBluetoothmoduleshouldbe3.3VDC.My
modulescanhandlea5VDCsignalbutI'msuresomecannotsoI
suggestyouaddalevelshiftertomakesurethe5VDCsignaltheArduino
sendstotheBluetoothmoduleis3.3VDCwhenitarrivestotheBluetooth.
Alsoitwillchangethe3.3VDCsignalbeingsentfromtheBluetoothto
5VDCbeforeitreachestheArduino.
HereismyInstructableonLevelShifters:
http://www.instructables.com/id/LevelShifters/
(http://www.instructables.com/id/LevelShifters/)

sachin008(/member/sachin008) . VolthausElectronicsLaboratory
(/member/VolthausElectronicsLaboratory) 2monthsago Reply

Sirihaveusedvoltagedividerattherxpinofthemodule.iwillsendyou
thepicoftheentiresetup.

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
. sachin008(/member/sachin008) 2monthsago Reply
8
VoiceActivatedArduino(Bluetooth+Android) by
WelltryaseparatevoltagedividerforbothTXandRX.
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
Collection IMadeit! Favorite Share
|
. sachin008(/member/sachin008) 2monthsago Reply
8

WelltryaseparatevoltagedividerforbothTXandRX.

sachin008(/member/sachin008) . sachin008(/member/sachin008)
MyBluetoothhc05has6pinsisthatthecauseof 2monthsago Reply

theproblem??
FastRaspberry
PiBuilder
X VolthausElectronicsLaboratory(/member/VolthausElectronicsLaboratory)
|
. sachin008(/member/sachin008) 2monthsago Reply
8

AlsomostimportantlyconfirmtheRXpinontheBluetoothisconnectedto
theTXpin(DigitalPin#1ontheArduino)andtheTXpinontheBluetooth
Controlsensors,motors,
isconnectedtotheDigital0(zero)pinontheArduino
actuators&morewithour
freedrag&dropproject
2monthsago Reply
builder.
johnnyfrx(/member/johnnyfrx)madeit!

VERYCOOL!Greatdirections...ManyThanks.Allworkedstraightaway.Wasa
funlittleprojectforaSundayAfternoon.

cayenne.mydevices.com

(https://cdn.instructables.com/FFP/16YI/IU9VA3NA/FFP16YIIU9VA3NA.LARGE.jpg)

farhadhedayati(/member/farhadhedayati) 2monthsago Reply

thankuforyourexcellentwork.canuexplainwhyavariablecharcused.can
weusedirectlystringvoiceasSerial.read()?

tailung(/member/tailung) 2monthsago Reply

Canyoutellmethelogicbehindthisproject?

tailung(/member/tailung) . tailung(/member/tailung) 2monthsago Reply

Couldyoupleasetell

_igeorge_(/member/_igeorge_)madeit! 10monthsago Reply

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)
Heynicejob!Thiswassomethingmeandmyfriendmadewhenwegotbored
andstuffanditwasprettycooltotryitout.Thankyouverymuch.I'vewritten
aboutthisandalsopostedavideoshowingusjustplayingwiththestufftrying
VoiceActivatedArduino(Bluetooth+Android)
togetittolistentous:P.Youcanseethatatigeorge.in:) by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share

(https://cdn.instructables.com/F26/WJLD/IL15JG50/F26WJLDIL15JG50.LARGE.jpg)
FastRaspberry
PiBuilder

(https://cdn.instructables.com/F89/ZOW0/IL15JG7R/F89ZOW0IL15JG7R.LARGE.jpg)
Controlsensors,motors,
actuators&morewithour
RaylinP(/member/RaylinP) . _igeorge_(/member/_igeorge_) Reply
freedrag&dropproject
2monthsago
eyydudethatsgreat:)butIhaveproblemswithminecanyou builder.
helpme?thisismyfbaccountraylinpanes@yahoo.comreallyappreciate
ifyoudo:)tnxbestregards:)

SuhasS12(/member/SuhasS12) 2monthsago Reply

willthisworkwithHC06>>>>? cayenne.mydevices.com

asmb(/member/asmb) 3monthsago Reply

howdoiusetwocommandstodothesamething?,ihavetriedthisbutthe
systemconfusedandanyrandomecommandswasaccepted.PLZhelp
elseif(voice=="*fanon"||"*stop")

{
digitalWrite(led2,HIGH)
digitalWrite(led1,LOW)

DivyaP26(/member/DivyaP26) 3monthsago Reply

Wetriedeverythingperfectlybutledsarenotblinkingasperthecommands.plz
helpustosolvethisproblem...

HalirRamzi(/member/HalirRamzi) 4monthsago Reply

Canwemovetherobotusingvoicerecord.Pleasehelpmetomakearobot
move.

Imeanwithprogramminganditemstomakeit..!becauseitsmyfirstproject!!..
THANKYOU!!
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

maddymadhubala(/member/maddymadhubala) 4monthsago
VoiceActivatedArduino(Bluetooth+Android) by
Reply

whatcompilershldweusefortisprogram?
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Reemitchi(/member/Reemitchi) Collection
8monthsago IMadeit!
Reply Favorite Share

Hey!
Imadethisproject
Everythingworksperfectly

Myvoiceisrecognized
butmyLEDsaren'tperformingthecommand
why?:C
FastRaspberry
PiBuilder
Arjunanduke(/member/Arjunanduke) . Reemitchi(/member/Reemitchi) Reply

4monthsago
Didyourectifythisproblem
Canyoutellmehow?
Controlsensors,motors,
actuators&morewithour
KavishB(/member/KavishB) . Reemitchi(/member/Reemitchi) Reply freedrag&dropproject
6monthsago builder.
Iamfacingthesameerror
myvoiceisrecognizedbutLEDsaren'tglowing.

andoutputonSerialterminalisalsosomedifferentstring

Arjunanduke(/member/Arjunanduke) 4monthsago Reply


cayenne.mydevices.com
Idideverythingcorrectlyandmyvoiceisrecognisedbuttheledswontwork
why

NANDHAG3(/member/NANDHAG3) 6monthsago Reply

showing"voicewasnotdeclaredinthisscope"
Helpmewiththis!

X mansurkamsur(/member/mansurkamsur) 6monthsago Reply


8
greatintructables,ifyouwantuploadsketchoverbluetoothuseandroidcould
followthisinstructableshttp://www.instructables.com/id/ProgramYourArduino
WithanAndroidDeviceOverB/

I MoreComments

FEATURED CHANNELS
Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android)
Woodworking Paper KitchenHacks Puzzles LaserCutting by Space Homesteading 3DPrinting Sewing
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)
(/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type (/tag/type
id/category id/category id/keyword id/category id/category id/keyword id/category id/category id/category
Download craft/channel
workshop/channel h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps
kitchen%20hacks/?play/channel workshop/channel astronomy/?
. home/channel technology/channelcraft/channel
woodworking/) paper/) sort=FAVORITES) puzzles/) lasercutting/) sort=FAVORITES)homesteading/) 3DPrinting/) sewing/)
Collection IMadeit! Favorite Share
Newsletter AboutUs
Join2million+toreceiveinstant
DIYinspirationinyourinbox.
WhoWeAre(/about/)
Advertise(/advertise/)
FastRaspberry
enteremail I'min!
Contact(/about/contact.jsp) PiBuilder
Jobs(/community/PositionsavailableatInstructables/)
Help(/id/howtowriteagreatinstructable/)
FindUs Resources
Facebook(http://www.facebook.com/instructables) ForTeachers(/teachers/)
Controlsensors,motors,
Youtube(http://www.youtube.com/user/instructablestv) ArtistsinResidence(/air)
actuators&morewithour
Twitter(http://www.twitter.com/instructables) GiftPremiumAccount(/account/give?sourcea=footer)
Forums(/community/) freedrag&dropproject
Pinterest(http://www.pinterest.com/instructables)
Answers(/tag/typequestion/?sort=RECENT) builder.
Google+(https://plus.google.com/+instructables)
Sitemap(/sitemap/)

TermsofService(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
PrivacyStatement(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
LegalNotices&Trademarks(http://usa.autodesk.com/legalnoticestrademarks/) | MobileSite(http://www.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112) cayenne.mydevices.com
2016Autodesk,Inc.

Checkoutournewclasses!>>(/classes/?utm_medium=cta&utm_source=banner)

VoiceActivatedArduino(Bluetooth+Android) by
ASCAS(/member/ASCAS/)inarduino(/tag/typeid/categorytechnology/channelarduino/)

Download h(/id/VoiceActivatedArduinoBluetoothAndroid/) 7Steps .

Collection IMadeit! Favorite Share

Вам также может понравиться