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

Поділитися
Вставка
  • Опубліковано 14 сер 2024
  • 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/...
    BlueControl app link :-
    play.google.co...
    Like my page on Facebook :-
    www.facebook.c....
    For more interesting mechanical news, engines & robotics stuff, visit my blog - MechStuff ! ;)
    mechstuff.com/
  • Наука та технологія

КОМЕНТАРІ • 411

  • @darthjarjar4771
    @darthjarjar4771 4 роки тому +61

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

    • @Jonmal0ne
      @Jonmal0ne 3 роки тому +1

      Excellent

    • @mlabdev
      @mlabdev 3 роки тому +2

      true story 😂

    • @tankman1320
      @tankman1320 2 роки тому +1

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

  • @Agrucho
    @Agrucho 6 років тому +20

    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 Рік тому +1

      TRUE

    • @ingjn7858
      @ingjn7858 Рік тому +1

      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 Рік тому +1

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

  • @saifsayeed1046
    @saifsayeed1046 4 роки тому +4

    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.

  • @logrodesbloqueado100ksubsc3
    @logrodesbloqueado100ksubsc3 5 років тому +15

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

  • @venkatakrishnansrinivasan6928
    @venkatakrishnansrinivasan6928 7 років тому +54

    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 років тому +5

      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 років тому +1

      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

  • @ryanbarrera2595
    @ryanbarrera2595 5 років тому +23

    BlueControl link not found.

  • @user-df7zp4jx3d
    @user-df7zp4jx3d Рік тому

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

  • @NEXTFIRE2
    @NEXTFIRE2 7 років тому +2

    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 ?

  • @shaggy150574
    @shaggy150574 6 років тому +2

    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

  • @meFawadIqbal
    @meFawadIqbal 2 роки тому +1

    +1 for 7:14 tip! Removing RX/TX pins before uploading!

  • @prathamsuthar4977
    @prathamsuthar4977 Рік тому +1

    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❤✌️

  • @jay-tbl
    @jay-tbl 5 років тому +4

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

  • @vic6466
    @vic6466 5 років тому +7

    The intro is on fire🔥🔥

  • @henriquedelben
    @henriquedelben 3 роки тому +1

    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

  • @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!

  • @farazsid4270
    @farazsid4270 5 років тому +1

    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??

  • @Footballtricks100
    @Footballtricks100 4 роки тому +4

    instructions not clear, I was feeling lost during the process. My teacher failed me because of you. THank you sir. I will send you my paypal if you want to repay the tools I broke during the process

  • @sudeshnaC
    @sudeshnaC 7 років тому +1

    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?

  • @yogeshbrar
    @yogeshbrar 6 років тому +1

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

  • @roshands1604
    @roshands1604 4 роки тому +2

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

  • @ammeydan
    @ammeydan 6 років тому +11

    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...

  • @soapenvelope
    @soapenvelope 7 років тому +11

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

    • @saiharanrajkumar3083
      @saiharanrajkumar3083 7 років тому +2

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

    • @soapenvelope
      @soapenvelope 7 років тому +2

      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 років тому +1

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

    • @akkimahesh3005
      @akkimahesh3005 6 років тому

      May i know why exactly 38400

  • @user-yn2kt6gw5y
    @user-yn2kt6gw5y 3 роки тому +1

    Thank you for your video i am form Thailand

  • @sushi_cat_og5411
    @sushi_cat_og5411 4 роки тому

    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.

  • @a6grafika
    @a6grafika 4 роки тому +3

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

  • @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.

  • @antoniosepe3718
    @antoniosepe3718 5 років тому

    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?

  • @jumbo999614
    @jumbo999614 4 роки тому

    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?

  • @UiX-TeD
    @UiX-TeD 6 років тому +1

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

  • @josephjeanclaude123
    @josephjeanclaude123 7 років тому +3

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

  • @ayushgupta1185
    @ayushgupta1185 6 років тому +1

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

  • @annibot5124
    @annibot5124 4 роки тому +2

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

  • @richardspade8145
    @richardspade8145 6 років тому

    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?

  • @normroy326
    @normroy326 2 роки тому

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

  • @rishabhverma3795
    @rishabhverma3795 2 роки тому

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

  • @meesy76
    @meesy76 5 років тому

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

  • @vijayujjainkar1453
    @vijayujjainkar1453 3 роки тому

    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

  • @adwitiyadas3834
    @adwitiyadas3834 6 років тому +1

    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

  • @ompatel5226
    @ompatel5226 3 роки тому +2

    Your opening is like death note

  • @hnf2918
    @hnf2918 2 роки тому +1

    Very good tutorial
    Thanks !

  • @niranjanchandrasheaker2135
    @niranjanchandrasheaker2135 7 років тому

    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!

  • @arnavagarwal6722
    @arnavagarwal6722 5 років тому +1

    can i use Bluetooth 4.0 instead of HC-05

  • @rajdeepparmar9283
    @rajdeepparmar9283 7 років тому +1

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

  • @twozzleweb
    @twozzleweb 4 роки тому +2

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

  • @mickcoomer9714
    @mickcoomer9714 4 роки тому

    I have an iPhone so the android app link doesn’t work for me. Can you recommend an app that will work for an iPhone please?

  • @gsrathore97x
    @gsrathore97x 3 роки тому

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

  • @rcanemaster
    @rcanemaster 6 років тому +1

    Works with HM-10 too?

  • @user-kk4ci2gb3l
    @user-kk4ci2gb3l 4 роки тому

    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.

  • @yashdoshi9799
    @yashdoshi9799 7 років тому

    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

  • @eduardomanusse1224
    @eduardomanusse1224 6 років тому +1

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

  • @chinmaytade5299
    @chinmaytade5299 2 роки тому

    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.

  • @kashfiashams2811
    @kashfiashams2811 5 років тому

    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.

  • @mhf_98
    @mhf_98 6 років тому

    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

  • @julius1211
    @julius1211 5 років тому

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

  • @kunalparmar7964
    @kunalparmar7964 3 роки тому +1

    Really helpful 🙏

  • @prasunbiswas8025
    @prasunbiswas8025 7 років тому

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

  • @slimeqoo6556
    @slimeqoo6556 5 років тому +4

    THANK YOU MAMPIR OM MY KOP IS SAVED WITH YOU

  • @bollywoodcafe3496
    @bollywoodcafe3496 6 років тому +6

    Can't dwnload the app it says item not found

    • @mimoderraz2112
      @mimoderraz2112 6 років тому

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

    • @bahadrkoprubas3218
      @bahadrkoprubas3218 6 років тому +1

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

    • @myoaqim2164
      @myoaqim2164 6 років тому

      @@bahadrkoprubas3218 how to edit the app?

  • @adityavardhanfirke1541
    @adityavardhanfirke1541 3 роки тому +1

    Thank for giving me vedio

  • @rjstoolc
    @rjstoolc 4 роки тому

    I've avoided asking this because I'm so new to this. Is the arduino sketch written by you or is it available to copy and paste or download from some where? I have looked for it in the arduino library and didn't see it

    • @retrohd1_
      @retrohd1_ 4 роки тому +1

      He wrote that himself. Search for Arduino codes on google. They're written in C Language. Search for the lines of code which you don't understand. Once you understand the logic, you could write the same code with a better logic.

    • @rjstoolc
      @rjstoolc 4 роки тому +1

      @@retrohd1_ Thanks, I just ordered the Elegoo Starter kit. While I'm waiting for the package to arrive I'm going through the lessons. I'm on lesson 9, and I am understanding things more clearly.

  • @__AgilBagaskara
    @__AgilBagaskara 2 роки тому

    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

  • @anithalena3741
    @anithalena3741 2 роки тому +1

    The blucontrol app link is not opening

  • @jingyaoooi149
    @jingyaoooi149 7 років тому

    hi, nice video! thank you.
    but i have the problem with app interface button. when i press 'a', and i look at the serial monitor, it is not necessary detect as 'a', it will randomly detect as 'A' or 'b' or '@' or 'd'. When it detect as 'a', then only the led will light up. May i ask what is the problem?

    • @MechStuff
      @MechStuff  7 років тому

      This is weird. Please send me your code.

    • @jingyaoooi149
      @jingyaoooi149 7 років тому

      finally i solve this problem! thanks for the video, it help me a lot :)

  • @AiswaryaM739
    @AiswaryaM739 7 років тому +2

    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 років тому +1

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

    • @nomanali-fr9us
      @nomanali-fr9us 6 років тому +1

      IT is not working while restart my phone

    • @nomanali-fr9us
      @nomanali-fr9us 6 років тому +2

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

    • @TheKauly
      @TheKauly 6 років тому +1

      don't work with iphone, only with android

  • @tharukerajapaksha3652
    @tharukerajapaksha3652 4 роки тому +1

    well done mate.good work

  • @taha3871
    @taha3871 Рік тому

    Oğul hocanın öğrencileri hepiniz hoş geldiniz :D

  • @davidquirilao7801
    @davidquirilao7801 4 роки тому

    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

  • @savitagundu7086
    @savitagundu7086 4 роки тому

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

  • @schlotdoglaser
    @schlotdoglaser 4 роки тому

    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
      ua-cam.com/video/CYkGRtVv3Ls/v-deo.html

  • @toml.8210
    @toml.8210 5 років тому

    Thank you, but the BlueControl application is no longer available. Can you suggest a replacement?

  • @goplayman5658
    @goplayman5658 2 роки тому

    Hello sir, '_sendMessage(textController.text)' is not sending data :(
    Arduino Rx pin is also not blinking

  • @pedrolima-eu4pb
    @pedrolima-eu4pb 4 роки тому +1

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

  • @TheBuzoTechie
    @TheBuzoTechie 3 роки тому +1

    Nice job

  • @bullygram
    @bullygram 3 роки тому

    Bluetooth Rx Tx are 5v tolerant?

  • @omarmarquez3937
    @omarmarquez3937 6 років тому +1

    I do not see the app
    What I can do?

  • @nabinvlog4782
    @nabinvlog4782 7 років тому

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

  • @abdirisak522
    @abdirisak522 6 років тому +1

    Very useful, Thank u

  • @rafaelsolis8599
    @rafaelsolis8599 5 років тому

    does it have database to store data ?

  • @afzalchowdhurymasuk5843
    @afzalchowdhurymasuk5843 5 років тому +1

    When I want to connecr HC-05, its says wrong password, I have also try 0000 and 1234 also, but it still saying wrong pass word,
    any solution?

  • @captainprototype187
    @captainprototype187 2 роки тому

    can you use any blutooth app for thesekind of projects?

    • @MechStuff
      @MechStuff  2 роки тому

      Hello! You can.. provided they are created for such IoT projects/purposes. Also, code changes accordingly.

  • @primalsense479
    @primalsense479 5 років тому

    Does the breadboard have electricity? Or do we need to plug in electricity?

    • @bharatkumarsah3240
      @bharatkumarsah3240 5 років тому

      Absolutely not, the the breadboard doesn't have electricity. we need to connect Vcc ( positive terminal of source) and ground (negative terminal of source ) in order to operate it.

  • @qiquan5204
    @qiquan5204 3 роки тому

    Good explaination and demo, thanks a lot friend

  • @fggfdgdgfdgffdgfrfdg
    @fggfdgdgfdgffdgfrfdg 8 місяців тому

    it works for me thanks

  • @lohithsomasundaram2867
    @lohithsomasundaram2867 3 роки тому

    can you please tell the name of the software .if i open the link it says page not found.

  • @srushtighadge8328
    @srushtighadge8328 6 років тому +1

    Video was helpful

  • @innovativesardarji
    @innovativesardarji 4 роки тому +1

    Blue control app not found
    Please help me

  • @nelsondarwinpaktech3954
    @nelsondarwinpaktech3954 5 років тому +1

    great work keepit up...

  • @alexandr_84
    @alexandr_84 6 років тому

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

  • @chesszone5100
    @chesszone5100 6 років тому

    Sir I am having problem
    Module is working and connecting with app but no led is turn on
    I can send you image of connections and coding....

    • @manisehgar166
      @manisehgar166 5 років тому

      im getting same error as you. have you solve it. if dont mine could you share with the solution.

  • @tejotel
    @tejotel 6 років тому

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

  • @shutdahellup69420
    @shutdahellup69420 5 років тому +23

    that camera was making me rage idk why

  • @takiboudiba5143
    @takiboudiba5143 6 років тому

    Nice but ,Can we manage by this application several leds with different bluetooth modules ?

  • @vivekios2423
    @vivekios2423 3 роки тому

    thank you so much bro

  • @prod_jay2132
    @prod_jay2132 10 місяців тому

    Bhai my hc05 new module is not working first time. What to do? Please help me 😢😢😢

  • @Telefone_antigo
    @Telefone_antigo 6 років тому

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

  • @iplayrblox
    @iplayrblox 2 роки тому

    thanks for the effort but is there another app 2021

  • @akashsambare8046
    @akashsambare8046 7 років тому

    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

  • @JordijoP
    @JordijoP 6 років тому

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

  • @chinnudanturi9730
    @chinnudanturi9730 5 років тому

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

  • @imperialrecker7111
    @imperialrecker7111 6 років тому +1

    can show how to make an app to control? plz