Tutorial on Bluetooth sensor HC-05 with Arduino | Connections & Coding

Ғылым және технология

This video tells you how you can control LED or any other stuff with the help of an Arduino board, a bluetooth module/sensor & an Android/smartphone !
0:00 - Intro
00:29 - Requirements
Arduino board
LED
Bluetooth module HC-05
Breadboard
Android
00:45 Connections of bluetooth module HC05
03:15 Arduino code for HC05
05:05 Android app
06:40 Testing
Code available here :-
mechstuff.com/control-leds-wi...
BlueControl app link :-
play.google.com/store/apps/de...
Like my page on Facebook :-
MechStuff/?r...
For more interesting mechanical news, engines & robotics stuff, visit my blog - MechStuff ! ;)
mechstuff.com/

Пікірлер: 411

  • @darthjarjar4771
    @darthjarjar47714 жыл бұрын

    When in doubt, find the Indian man on youtube to solve all your problems

  • @Jonmal0ne

    @Jonmal0ne

    3 жыл бұрын

    Excellent

  • @mlabdev

    @mlabdev

    3 жыл бұрын

    true story 😂

  • @tankman1320

    @tankman1320

    2 жыл бұрын

    Do hc05 work with newer phones? I failed to connect it

  • @logrodesbloqueado100ksubsc3
    @logrodesbloqueado100ksubsc35 жыл бұрын

    Thanks a lot friend, I had so much trouble with the code, but this cleared all up.

  • @saifsayeed1046
    @saifsayeed10463 жыл бұрын

    Thanks a lot! I have been looking for videos for starters for a long time and here a got one finally. Great effort and hence lots of appreciation for you.

  • @Agrucho
    @Agrucho6 жыл бұрын

    Nice video presentation, some points to comment: The HC-05 module used in this tutorial clearly states "3.3V LEVEL" at the RX input pin 0:59 . The use of a voltage divider (1k/2K) is recommended. Also a resistor (470-1K) in serie with the LED is recomended. (The Arduino ATMEGA328 is being stressed out of specifications).

  • @ZayedHamed_01

    @ZayedHamed_01

    Жыл бұрын

    TRUE

  • @ingjn7858

    @ingjn7858

    11 ай бұрын

    Very Impressive!!! Can I use voltage divider ( 220 ohm / 220 + (220 + 220) ohm ) , I mean R1 = 220 ohm and R2 = 220 + 220 ohm, in the HC-05 connection with the arduino uno? Or do I need 1k and 2k resistors? Since, Vout = Vin ( R2 / (R1+R2) is the same, it's 2/3, I could use R1 = 220 ohm and R2 = 220 + 220 ohm, right? Help, I am an enthusiastic begginer with this!

  • @user-qq2vq6hi4d

    @user-qq2vq6hi4d

    11 ай бұрын

    @@ingjn7858 it should work. the arduino should use more current on its TXD pin, but it is perfectly capable of it.

  • @josephjeanclaude123
    @josephjeanclaude1237 жыл бұрын

    Thanks, my HC-06 work very well with your explication.

  • @NEXTFIRE2
    @NEXTFIRE27 жыл бұрын

    hi, i have one of this hc-05 and i'd loke know if it's posible conect to a moderboard desktop pc? and how ?

  • @annibot5124
    @annibot51244 жыл бұрын

    THANK YOU SO MUCH! You provided me with the easiest code...

  • @willkellum71
    @willkellum71 Жыл бұрын

    This was exactly what I needed! I'm using 2 nano to control one-another through the serial communication. Thanks for your help!

  • @shaggy150574
    @shaggy1505746 жыл бұрын

    Hi, I am currently attempting to build a circuit to transfer vibration data from a dc motor to a pc via Bluetooth along the lines of this awesome youtube clip. although I am looking at transferring the data via Bluetooth. what changes would i need to do to this program to ensure it was successful? thank you for any help and advice it will be gratefully accepted

  • @rajdeepparmar9283
    @rajdeepparmar92837 жыл бұрын

    bro thanks i was in problem and by your code i overcome thanks you so much

  • @ayushgupta1185
    @ayushgupta11856 жыл бұрын

    how can We provide wireless connection b/w relay and arduino can we use this Bluetooth sensor @mechstuff

  • @a6grafika
    @a6grafika3 жыл бұрын

    Thank you..with this program and a bit editing, i can also control 04 channel Relay Module.. 👍👍👍

  • @roshands1604
    @roshands16043 жыл бұрын

    Tnk u...it helped me a lot....keep uploading such valuable stuffs 😀

  • @jumbo999614
    @jumbo9996144 жыл бұрын

    My bluetooth's name show up as JDY-31-SPP instead of HC-05. Anyway, it's very inconvenience to have to disconnect RX & TX wires every you have to upload the sketch. I'm thinking about using dip switch. Does it work with dip switch?

  • @guzmadera
    @guzmadera Жыл бұрын

    Hola, quería preguntar si con HC-05 y Arduino, es posible ENVIAR TEXTO AL MONITOR DEL PC como si se tratara de un teclado bluettoth, por ejemplo enviar datos a un documento Word, o a donde esté situado el cursor del ratón sea cual sea la aplicación actual en el monitor. No a la pantalla del puerto serie de la aplicación de arduino. El HC-05 ya lo tengo emparejado con el ordenador. Muchas gracias de antemano por su respuesta.

  • @arnavagarwal6722
    @arnavagarwal67225 жыл бұрын

    can i use Bluetooth 4.0 instead of HC-05

  • @saimakhan8597
    @saimakhan85975 жыл бұрын

    Thank you so much 😊 keep it up!! 😊

  • @shatterkiba4942
    @shatterkiba49426 жыл бұрын

    THANKS YOU!! THANKS VERY MUCH!! Like of GOLD

  • @meesy76
    @meesy765 жыл бұрын

    i want to 3 leds blinking in sequentia over and over until you use the on and off function.. can you help me please?

  • @sushi_cat_og5411
    @sushi_cat_og54114 жыл бұрын

    I have set it up the BT module (HC-05) and connected it to my laptop and i have set up realterm (my serial capture program) and the BT module and realterm say that they are connected but when I try to send a command to my arduino (arduino Uno R3) I get no response from the arduino or the terminal.

  • @alexandr_84
    @alexandr_846 жыл бұрын

    Подскажите, пожалуйста. Можно както запаралелить два модуля блютуз?

  • @yashdoshi9799
    @yashdoshi97997 жыл бұрын

    i do all but in my blue control app not connect the BT. there in msg unable to connect. plz tell me what i can do

  • @yogeshbrar
    @yogeshbrar6 жыл бұрын

    Can you help me with the connections of HC05 with normal USB Speakers to make them Bluetooth? Want to learn

  • @Telefone_antigo
    @Telefone_antigo6 жыл бұрын

    Help me! avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x45 What is this error?

  • @sudeshnaC
    @sudeshnaC7 жыл бұрын

    Nice one. But i wanted to know this-- instructions that are being sent from mobile via bluetooth is detected by hc05 and then the tx pin of hc05 is transmitting the signal to the rx pin of arduino right? What is the rx pin of hc05 and tx pin of arduino needed for? What information is arduino transmitting to hc05?

  • @vic6466
    @vic64665 жыл бұрын

    The intro is on fire🔥🔥

  • @bismuthhabs6701

    @bismuthhabs6701

    3 жыл бұрын

    my ears too

  • @pedrolima-eu4pb
    @pedrolima-eu4pb4 жыл бұрын

    what do i do if my hc-05 just doesent turn on

  • @antoniosepe3718
    @antoniosepe37185 жыл бұрын

    il HC 05 noto che il livello logico 3 3.3V deIIa linea Tx mentre arduino gestisce la linea Rx a 5V; questo non potrebbe provocare un malfunzionamento o guasto del modulo?

  • @farazsid4270
    @farazsid42705 жыл бұрын

    What we need to do if we want to connect module with digital pins other then 0 & 1(Digital Pins)?? What will be the changes in the sketch as well as on the Pins??

  • @Griffinbingos

    @Griffinbingos

    4 жыл бұрын

    @Faraz Sid connect gnd and p-

  • @rcanemaster
    @rcanemaster5 жыл бұрын

    Works with HM-10 too?

  • @abdirisak522
    @abdirisak5226 жыл бұрын

    Very useful, Thank u

  • @eduardomanusse1224
    @eduardomanusse12245 жыл бұрын

    Thanks, good video...please give us more good videos

  • @hnf2918
    @hnf29182 жыл бұрын

    Very good tutorial Thanks !

  • @siddiquishoaib7929
    @siddiquishoaib79295 жыл бұрын

    i got at-09 ble 4 module its not working.

  • @niranjanchandrasheaker2135
    @niranjanchandrasheaker21357 жыл бұрын

    Hi MechStuff, Simple and informative video. Could you suggest me any SOC with Bluetooth transceiver integrated, which small, affordable and light weight. Thanks in advance!

  • @henriquedelben
    @henriquedelben3 жыл бұрын

    hey, id like what software did you use to make a circuit diagram with the bluetooth module HC 05 and with arduino uno, bc i cant find anywhere on tinkercad

  • @MechStuff

    @MechStuff

    3 жыл бұрын

    Hehe.. sure.. its Fritzing

  • @huycomf
    @huycomf6 жыл бұрын

    help me the error: unable to write. broken pipe. thanksssss in advance.

  • @tharukerajapaksha3652
    @tharukerajapaksha36524 жыл бұрын

    well done mate.good work

  • @ryanbarrera2595
    @ryanbarrera25955 жыл бұрын

    BlueControl link not found.

  • @mohamedhatem5721

    @mohamedhatem5721

    4 жыл бұрын

    download aptiode then install it

  • @lustrals1273

    @lustrals1273

    3 жыл бұрын

    @Alpha Carbide there are so many which one

  • @mhf_98
    @mhf_986 жыл бұрын

    Please help. I can't send data to arduino from my phone. i use ArduDroid. I can read any data send to my phone but not in reverse. But when i play with the serial monitor it can send and receive data

  • @slimeqoo6556
    @slimeqoo65565 жыл бұрын

    THANK YOU MAMPIR OM MY KOP IS SAVED WITH YOU

  • @richardspade8145
    @richardspade81456 жыл бұрын

    Hi, I am a private investigator and have found a gas pump skimmer installed on my clients gas station. These skimmers work via bluetooth, all they are is the HC-06 bluetooth module connected to the card reader on the gas pump. It saves the credit card details on the EEPROM or the Flash memory. We have not removed it yet, we want to first gather all the data from it before removing. I have paired with it, the password was 1234. Now what do i do in order to get the credit card numbers?

  • @vigneshkumar5634
    @vigneshkumar56345 жыл бұрын

    thanks for u r video bro

  • @user-df7zp4jx3d
    @user-df7zp4jx3d Жыл бұрын

    ТЫ ЛУЧШИЙ!!!!!!!!!!! весь интернет перерыл и только по твоему гайду смог нормально подключить этот модуль!

  • @twozzleweb
    @twozzleweb4 жыл бұрын

    Need an Arduino on my glasses to auto adjust focus to compensate...thanks for sharing though

  • @venkannabanothu3169
    @venkannabanothu31696 жыл бұрын

    Can you tell me the software on which you are applying code

  • @nelsondarwinpaktech3954
    @nelsondarwinpaktech39545 жыл бұрын

    great work keepit up...

  • @rafaelsolis8599
    @rafaelsolis85995 жыл бұрын

    does it have database to store data ?

  • @UiX-TeD
    @UiX-TeD6 жыл бұрын

    nice video but i wondering how to connect arduino with custom mobile application using android studio its same?

  • @Dark-np9do
    @Dark-np9do6 жыл бұрын

    Thank u very much best video .

  • @JordijoP
    @JordijoP6 жыл бұрын

    Can I do the same with SH-HC-O8? I don't know if there are any difference

  • @Griffinbingos

    @Griffinbingos

    4 жыл бұрын

    Yes, But sometime it cause problem

  • @julius1211
    @julius12115 жыл бұрын

    what happened if I close the application and leave the the light open? Is the light will turnoff ?

  • @gsrathore97x
    @gsrathore97x3 жыл бұрын

    How can we connect two smartphones with one HC-05 bluetooth module to simultaneously control arduino outputs?

  • @__AgilBagaskara
    @__AgilBagaskara2 жыл бұрын

    kak izin bertanya untuk file zipnya dan file hello world di laptop diletakkan dimana yaa ? saya sudah download tapi tetap codenya tidak bisa digunakan ada notif warna merah di arduino ide nya

  • @teodorvangelov
    @teodorvangelov6 жыл бұрын

    Thank you for information

  • @Delirium386
    @Delirium3865 жыл бұрын

    ..thanks man...perfekt video....top

  • @bullygram
    @bullygram3 жыл бұрын

    Bluetooth Rx Tx are 5v tolerant?

  • @omarmarquez3937
    @omarmarquez39376 жыл бұрын

    I do not see the app What I can do?

  • @placeholder5982
    @placeholder59826 жыл бұрын

    Good info mann!

  • @EHPADservice
    @EHPADservice6 жыл бұрын

    How to recive rfid data to anroid data base via bluetooth

  • @ammeydan
    @ammeydan6 жыл бұрын

    great video. the hc-05 logic level is 3.3v. the arduino logic level is 5v. thus, you can connect the Tx pin of the bluetooth module to the Rx pin of the arduino because the arduino also aupports 3.3v logic level. but, in order to connect the Tx pin of the arduino to the Rx pin of the bluetooth module, you need a voltage divider in between. the 5v logic level of the arduino can damage the bluetooth module.

  • @nelsondarwinpaktech3954

    @nelsondarwinpaktech3954

    5 жыл бұрын

    ammeydan......but a lot of people r using it directly with arduino,,,,

  • @samuelebaiano6505

    @samuelebaiano6505

    5 жыл бұрын

    Shashank Agarwal you can also use a tension partitor... i think...

  • @Footballtricks100
    @Footballtricks1004 жыл бұрын

    Im doing good. Thank you for asking

  • @srushtighadge8328
    @srushtighadge83285 жыл бұрын

    Video was helpful

  • @normroy326
    @normroy3262 жыл бұрын

    BluControl is no longer available on Android. What do you recommend as a replacement?

  • @prathamsuthar4977
    @prathamsuthar4977 Жыл бұрын

    Ya it's working 👍👌 but you have to install Arduino blue control (made by pcb way) and data will be in a 1 & 2 so accordingly our code we have to change it with(small) a and b, thanks for the code and circuit❤✌️

  • @shipaakter7664
    @shipaakter76646 жыл бұрын

    wow nice video thank you brother

  • @bharatshinde9230
    @bharatshinde92306 жыл бұрын

    Bc147 can we use

  • @adwitiyadas3834
    @adwitiyadas38346 жыл бұрын

    where did you connect pins 4 and 5 of the bluetooth module?

  • @kieryweery1

    @kieryweery1

    6 жыл бұрын

    Adwitiya Das Pin 4 goes to RX on the arduino and Pin 5 goes to TX on the arduino

  • @jay-tbl
    @jay-tbl5 жыл бұрын

    0:47 Doesnt VCC connect to 5v pin and not Vin pin?

  • @rushikeshthorat8902

    @rushikeshthorat8902

    4 жыл бұрын

    It's 5v

  • @vijayujjainkar1453
    @vijayujjainkar14533 жыл бұрын

    Aree bhava tya blutooth module la kont vin dil bgha jra tyla 5 v pahije fkt , vin dil ahe ani 12 v input dil tr burn zal blutooth module

  • @rishabhverma3795
    @rishabhverma37952 жыл бұрын

    Is it possible to make led light blink when i'll get a certain notification on my phone?

  • @schlotdoglaser
    @schlotdoglaser4 жыл бұрын

    I would like to be able type some text to display on an LED/LCD screen, do you have or know of any tutorials for that?

  • @Gomitah1

    @Gomitah1

    4 жыл бұрын

    Check this video kzread.info/dash/bejne/dY2fqbSthtmZfNY.html

  • @venkatakrishnansrinivasan6928
    @venkatakrishnansrinivasan69287 жыл бұрын

    Hi ! Good video ! But you are conneting the LED without 220 Ohms resistor to a 5V supply ! This can damage the LED or worse still the Arduino Pin . Take Care !

  • @princechauhan3363

    @princechauhan3363

    6 жыл бұрын

    Sir here, he has added the Bluetooth module to the arduino direct. That which flows the data of 5 volts. Is this not harmful for the Bluetooth module? If it is harmful, then what will it have to do. Plzz... 🙏🙏sir tell me

  • @Explore-Gobal

    @Explore-Gobal

    6 жыл бұрын

    You need to add a voltage divider as seen here: howtomechatronics.com/tutorials/arduino/arduino-and-hc-05-bluetooth-module-tutorial/

  • @MarkReisch

    @MarkReisch

    6 жыл бұрын

    I was wondering the same thing! I was like ....wait for it ... it's going to blow! but didn't perhaps after longer term use?

  • @tomaskopunec7716

    @tomaskopunec7716

    6 жыл бұрын

    Guys try this new modern Bluetooth Controller APP, don't forget to share with your friends! play.google.com/store/apps/details?id=com.kopunectomas.smartbluetooth

  • @progamerclanwar5873

    @progamerclanwar5873

    5 жыл бұрын

    hi

  • @kunalparmar7964
    @kunalparmar79643 жыл бұрын

    Really helpful 🙏

  • @nabinvlog4782
    @nabinvlog47827 жыл бұрын

    this is very useful video , i asked to anouther video come in cannel internal block diagram of Bluetooth moudle

  • @prasunbiswas8025
    @prasunbiswas80257 жыл бұрын

    blue control app is not working.. it is paired with the mobile but not specifically for the app. NEED HELP!

  • @annawright8049
    @annawright80496 жыл бұрын

    is there an app that works on iphones

  • @marekdrasal3626
    @marekdrasal36266 жыл бұрын

    good video

  • @soapenvelope
    @soapenvelope7 жыл бұрын

    If you get strange characters, try to change baud rate to: Serial.begin(38400);

  • @saiharanrajkumar3083

    @saiharanrajkumar3083

    7 жыл бұрын

    DUDE!!!!!!!!! YOU SAVED MY DAY!! I have been struggling for around a week and now you came ... THANKS !!!

  • @soapenvelope

    @soapenvelope

    7 жыл бұрын

    No problem, I found solution at: forum.arduino.cc/index.php?topic=260234.15

  • @madebysurya

    @madebysurya

    7 жыл бұрын

    Big thanx bruh!! I just kept changing baud rate only in the serial monitor. Little that I know, to change in the code also!

  • @artisticboundary7856

    @artisticboundary7856

    6 жыл бұрын

    thanks dude , i have been trying this for over a day

  • @akkimahesh3005

    @akkimahesh3005

    6 жыл бұрын

    May i know why exactly 38400

  • @AiswaryaM739
    @AiswaryaM7397 жыл бұрын

    Very useful! But, my phone is unable to detect the Bluetooth module! In another case, the settings option doesn't appear on the phone!

  • @MechStuff

    @MechStuff

    7 жыл бұрын

    Re-install the app again, as well as restart your phone ! That might help...

  • @nomanali-fr9us

    @nomanali-fr9us

    6 жыл бұрын

    IT is not working while restart my phone

  • @nomanali-fr9us

    @nomanali-fr9us

    6 жыл бұрын

    this app is just asking to turn on the bluetooth but not connecting to HC05

  • @TheKauly

    @TheKauly

    6 жыл бұрын

    don't work with iphone, only with android

  • @user-yn2kt6gw5y
    @user-yn2kt6gw5y3 жыл бұрын

    Thank you for your video i am form Thailand

  • @MechStuff

    @MechStuff

    3 жыл бұрын

    You're welcome 😊

  • @MsCpktnwt
    @MsCpktnwt5 жыл бұрын

    Which book required to learn complete ardino

  • @DeathFORcameO
    @DeathFORcameO4 жыл бұрын

    Does the bluetooth module need an API to work?

  • @hamzabouchti8953
    @hamzabouchti89534 жыл бұрын

    mais vous avez pas mentionner comment on va crée une application ?

  • @iliyas8752
    @iliyas87526 жыл бұрын

    Bhai blue control app link is not loading

  • @bandarakarunarathna8767
    @bandarakarunarathna87676 жыл бұрын

    pleas i need your android software.

  • @akashsambare8046
    @akashsambare80467 жыл бұрын

    hello, I have done everything you did, But Nothing Happened when I send command from mobile, when I observed in serial monitor I got as Output like ¿ this, reverse que mark. How to solve this. I want this type of programe. if i will send GO in command It will be GO in serial monitor. Please reply me asap

  • @rajdeepparmar9283

    @rajdeepparmar9283

    7 жыл бұрын

    have you selected proper baud rate?

  • @anithalena3741
    @anithalena37412 жыл бұрын

    The blucontrol app link is not opening

  • @davidquirilao7801
    @davidquirilao78014 жыл бұрын

    Hi MechStuff, Thanks a lot for you video. is possible just use the BT module and use a batery how source?, o is necessary use the arduino for configurator and controlling. Thank you David.

  • @MechStuff

    @MechStuff

    4 жыл бұрын

    Hello David, yes.. the Arduino is necessary. If you have any space constraints, you can go for a smaller Arduino - Arduino Nano

  • @kashfiashams2811
    @kashfiashams28115 жыл бұрын

    If i want to use The joystick in that software,dont want to use button a,button,d.etc . what should i type in the code instead of case'a' or case'd' ?Because i want to make a car.

  • @user-kk4ci2gb3l
    @user-kk4ci2gb3l4 жыл бұрын

    please,I worked as a project for a car robot that works with voice commands,but after I installed the parts and connected the battery ,a light dose not appear in the Bluetooth circuit and it does not appear on a mobile that it is present ,but when you connect the Arduino to the laptop , the Bluetooth appears to work , if you please help me is necessary

  • @MechStuff

    @MechStuff

    4 жыл бұрын

    Hello, the battery might be discharged. Change the battery, it might work.

  • @chinmaytade5299
    @chinmaytade52992 жыл бұрын

    When I press on the link for the app in description, it days Sorry, this app is not available on this server. Please guide on this problem.

  • @chinnudanturi9730
    @chinnudanturi97305 жыл бұрын

    I have have a problem that my phone is not connecting to the module please help me

  • @bollywoodcafe3496
    @bollywoodcafe34966 жыл бұрын

    Can't dwnload the app it says item not found

  • @mimoderraz2112

    @mimoderraz2112

    6 жыл бұрын

    it 's in the detail clickon show more...

  • @bahadrkoprubas3218

    @bahadrkoprubas3218

    6 жыл бұрын

    you can install apk apkpure.com/blue-control/com.gundel.bluecontrol/download?from=details

  • @myoaqim2164

    @myoaqim2164

    5 жыл бұрын

    @@bahadrkoprubas3218 how to edit the app?

  • @focus473
    @focus473 Жыл бұрын

    can i receive an string with bluetooth module?

  • @pjwlk
    @pjwlk3 жыл бұрын

    You need a voltage divider for the HC-05 Rx pin (3.3vdc)

  • @tejotel
    @tejotel6 жыл бұрын

    Are those permanent car horns normal or there were some traffic accident?

  • @ilhamsaputrajati9767
    @ilhamsaputrajati97676 жыл бұрын

    brother i can't find your app

  • @harshankumar4923
    @harshankumar49235 жыл бұрын

    Bro blue controlled app is not working

  • @savitagundu7086
    @savitagundu70863 жыл бұрын

    Hey Can you tell me how to connect the bluetooth module to make bluetooth speaker

Келесі