Arduino Robot Car Wireless Control using HC-05 Bluetooth, NRF24L01 and HC-12 Transceiver Modules

Поделиться
HTML-код
  • Опубликовано: 4 окт 2017
  • howtomechatronics.com/tutoria... ► Find more details, circuit schematics and source codes on my official website.
    In this tutorial we will learn how to wirelessly control the Arduino robot car that we made in the previous video. I will show you three different methods of wireless control, using the HC-05 Bluetooth module, the NRF24L01 transceiver module and the HC-12 long range wireless module, as well as, using a Smartphone and a custom-made Android application.
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatronics
    Add me on Google+:
    ►plus.google.com/+Howtomechatr...

Комментарии • 140

  • @liszcgsedt
    @liszcgsedt 6 лет назад +1

    Very very very helpful - had all the parts like joystick control, sensors, etc. tested, only had no idea how to do the wireless part, thanks a lot indeed!

  • @sayantanmaiti2513
    @sayantanmaiti2513 6 лет назад

    glad to have you back Sir ! Always with new methods and algo !!!

  • @estebanmercier9652
    @estebanmercier9652 6 лет назад +11

    Always the best youtuber!

  • @ajeethsuryash5123
    @ajeethsuryash5123 3 года назад

    OOh man... You are a genius. That bluetooth app you built is the only one out there which can actually work with minimal delay... All others are not suitable for vehicle application. As the buttons needed to be tapped instead of pressed. I was searching for this app only... Awesome MIT app inventor project... Kuddos

  • @shaileshshukla3610
    @shaileshshukla3610 6 лет назад +5

    Really that much information and knowledge is packed into one video...... 👌👌

  • @carlazyrodriguez4842
    @carlazyrodriguez4842 4 года назад

    Hi! Thanks for the video. Could the MIT Inventor App you created be used for the HC-12 module? I didn't want to use the joystick. Thanks.

  • @FlexPhill
    @FlexPhill 6 лет назад +1

    Thanks for that great video. I have a L298N but there are no ENA and ENB connectors. How can i use this one? Thanks a lot!

  • @jonathanbennett1074
    @jonathanbennett1074 5 лет назад

    I am going to be using different dc motors from those in the video, that are 3v and24000 rpm. Would it affect anything in the circuit?

  • @rangaswamy8604
    @rangaswamy8604 6 лет назад +1

    Excellent, as always. Best of electronics tutorials, very illustrative. Please do a tutorial on 3 axis motors to work in teach and repeat mode.

  • @OSMADO
    @OSMADO 5 лет назад

    bro you are a genius thank for this!

  • @1337PANDA
    @1337PANDA 5 лет назад

    There is a little fluctuation while receiving the analog inputs of joystick module in case of nrf24l01

  • @alpeshchaudhari63
    @alpeshchaudhari63 6 лет назад

    Awesome video support from INDIA

  • @omaralbalouli7452
    @omaralbalouli7452 6 лет назад

    That's amazing video GJ man 😀

  • @rchlt96
    @rchlt96 3 года назад +1

    What software do you use for schematics? Looks very great!

  • @TurtleEngineer0
    @TurtleEngineer0 3 года назад

    Thank you! I am big fan of How to Mechatronics. Gread vids. Wondering why controlling the car using smartphone is so out of control and all over?! for example the turns are very abrupt rather than turning slowly?! How can the program improved to have better control of the car? divide speed by 2 to make it go slower? any suggestion is appreciated.

  • @RahulKumar-zs2wv
    @RahulKumar-zs2wv 6 лет назад

    If there will be 3 hc 12 how to differentiate between them ,to whom to send data. And what about security concern with it like bluetooth(hc-05) . then any one can get data from hc 12 having same frequency.

  • @danhcong5234
    @danhcong5234 4 года назад +1

    May I have a question, please. With NRF24L01 as i know pin D2 is not PWM pin. How could you use function analogWrite for this pin?

  • @loptica62
    @loptica62 6 лет назад +1

    Finally got the thing to work (the App Inventor Joy-Stick I mean ). Needs a lot of tweeking though. I had to add some blocks and stuff to get the proper reading (min/max values of X and Y) . Also I had to adapt the Arduino code a bit.
    All in all, I wouldn't have been able to do much on my own (without Dejan's app and sorce code ofcourse).
    So, Dejan, I sincerely thank you for all the info you have so generously shared here with all of us.

    • @taherabed6418
      @taherabed6418 6 лет назад +1

      it's great to have indication in x and y direction . can you send me the app .

  • @danhcong5234
    @danhcong5234 4 года назад +1

    Once more question is. Could we use pin D10 in PWM mode with NRF24L01?

  • @istvanbarta
    @istvanbarta 9 месяцев назад

    I wonder if you can control the nrf24 receiver with a flipper zero?

  • @hugomg1000
    @hugomg1000 4 года назад

    Hello, could you share the aia de carro file, since the one you download from your page does not open in the appinventor, I would greatly appreciate it

  • @clemenskeckeis8298
    @clemenskeckeis8298 2 года назад +1

    Why use values 64 and 140 in the MIT App for x and y axis?

  • @chellaidhevaraj4917
    @chellaidhevaraj4917 6 лет назад

    sir hc-12 module is able to use home automation is it possible?

  • @muhammadhaziqmohdnoor6868
    @muhammadhaziqmohdnoor6868 4 года назад

    In the NRF section, can the arduino nano is replaced with arduino mega as the brain for the robot car

  • @daviddiaz3246
    @daviddiaz3246 6 лет назад

    As always excellent 👍

  • @BilalARauf
    @BilalARauf 6 лет назад

    Can we use arduino motorshield instead of l298 driver

  • @poojithp9356
    @poojithp9356 3 года назад

    Can we do same including save and play the movement of the wheels

  • @muhammadhaziqmohdnoor6868
    @muhammadhaziqmohdnoor6868 4 года назад

    Hi Sir can the joystick shield funduino ver 1.A br connected with nrf + arduino uno as transmiter and nrf + arduino mega as receiver

  • @KonaTech
    @KonaTech 6 лет назад

    Great content like all way

  • @omego23
    @omego23 4 года назад

    In nrf24l01 module how do you stop the robot car when connection lost. I mean what code needs to be added?

  • @AdminAdmin-fn1uq
    @AdminAdmin-fn1uq 5 лет назад

    hi I connected everything as in this first diagram and the modules do not want to connect, please help me

  • @homeautomationstation4554
    @homeautomationstation4554 6 лет назад

    Where can we buy all the needed components?

  • @janithharshana2369
    @janithharshana2369 4 года назад

    Is this project dc motors speed are variable.... Via joy stick using.. Tnk u

  • @adhambarakat8688
    @adhambarakat8688 5 лет назад +1

    Is it necessary using the resistors

  • @marcdaniel2071
    @marcdaniel2071 3 года назад +1

    this Arduino code requires one or more libraries, which ones?

  • @mehmetuzun3534
    @mehmetuzun3534 5 лет назад +1

    Serial.read() and serial.write() commands confuses my brain sometimes. The reason is for example for two HC12 we just use this command, without deciding or declaring they are pairs.. If another HC12 exists and try to send a text or command, shouldn't we declare our two HC12 as pairs somehow as in HC05?
    Thanks for your videos!

    • @gnsharma2630
      @gnsharma2630 4 года назад

      In transmitter hc 12 we want to send signal using Serial.write() function and in receiver hc 12 we want to read this signal send by transmitter using Serial.read() function

  • @Amr.Khateeb
    @Amr.Khateeb 6 лет назад

    hello sir , I'm appling this project in the university, the wired joystick worked perfectly, but when i tried to apply the bluetooth hc 05 with the android app, when i move my finger in the joystick app the motors just make a sound without movement ! i don't know where is the problem!

  • @kavtech_midi
    @kavtech_midi 3 года назад

    which is most fast/no delay, is hc05 or nrf24?

  • @prashantsaini2141
    @prashantsaini2141 4 года назад

    configure HC12 to laptop wifi is it possible? instead of using 2 HC12?? Using laptop as a transmitter the python script will perform some action and the signal will send to the receiver bot(arduino) using hc12??

  • @aiforyounow
    @aiforyounow 2 года назад

    Sir pls incase of the hc12 how can I send and receive many data.because in this tutorial you’re sending only two values from the joystick

  • @pranavshinde9529
    @pranavshinde9529 6 лет назад +1

    Guys help me , I have a 500 rpm motor the circuit would be the same right?
    I mean something wouldn't get damaged ?

    • @abdullahnasir8535
      @abdullahnasir8535 4 года назад

      No nothing would be damaged.. The voltage and amps is what damages the circuit

  • @raahimirfan5996
    @raahimirfan5996 4 года назад +1

    Bro Can you please tell me that if I use TT gear motors (the yellow one) which has input voltage range of 3-6V and use two 3.7V batteries instead of three?
    Please help... Thanks!

  • @marianacruz8861
    @marianacruz8861 4 года назад

    Does anyone know how to tell if your Bluetooth piece is damaged? It takes about a minute for my robot to react after a send the command. It used to work right away, I checked and all the cables are okay.

  • @deepdeysarkar5869
    @deepdeysarkar5869 6 лет назад +1

    I will make this

  • @MysteriousGamesOfficial
    @MysteriousGamesOfficial Год назад +1

    With the nrf24l01 version, whenever I turn the circuits on, motor b spins continuously and I can't control the car. How should I fix this?

  • @navneetsharma8226
    @navneetsharma8226 4 года назад

    HC12 module code on your site are incomplete. Please check them and help me! As Soon As Possible.

  • @gnsharma2630
    @gnsharma2630 4 года назад

    Can I use arduino nano in receiver ?

  • @EDISONSCIENCECORNER
    @EDISONSCIENCECORNER 6 лет назад

    really nice

  • @nikhiljagdale9598
    @nikhiljagdale9598 Год назад +1

    Hi,
    In my case the motor attached to enB keeps on running continuously.
    It also doesn't take input from the transmitter
    Please help

  • @goanga3749
    @goanga3749 5 лет назад

    What's the range of the car?

  • @bramaarssen2568
    @bramaarssen2568 3 года назад

    I made some code for receiving bytes from my app, and after this video i've made exactly the same for receiving data and it just won't work. My var just doesn't want to be stored correctly, for example i expect to receive a 1 and instead get 255 just strange.
    This can't be because my hc05 is connected to the altsoftserial right?
    Anybody have any advice???

  • @kylechua6056
    @kylechua6056 6 лет назад

    Can I use a power bank to power arduino. And 2 18650 Battery or 6 Double AA Battery? In doing Android controller

  • @hafizmuhammedk9425
    @hafizmuhammedk9425 6 лет назад

    Where can I get the app

  • @archilgogava9141
    @archilgogava9141 6 лет назад

    I got problem with apk , for phone it doestn downloads , it and cant create it ..:S can you give me direct download link ?
    \

  • @juanarango6033
    @juanarango6033 6 лет назад

    hello you could pass me the codes but as you have them in the arduino ide, when I try to compile I get error '303 in program and it is because as you climbed the code is autocorrigio and has spaces

  • @adhepradhan
    @adhepradhan 3 года назад +1

    What is the name of front wheel

  • @adhepradhan
    @adhepradhan 3 года назад

    Does it work if we don't make the remote?

  • @kumarsaksham4522
    @kumarsaksham4522 5 лет назад

    can i use a normal motor which we get when we buy a robot car chassis

    • @HowToMechatronics
      @HowToMechatronics  5 лет назад

      Well if it's 12V DC motor, yes you can use this same principle.

  • @nagarajsanjaygowdanagarajs93
    @nagarajsanjaygowdanagarajs93 6 лет назад

    a1 was not decleared in the scope why

  • @user-et3oc1nx7t
    @user-et3oc1nx7t 2 года назад

    GREAT

  • @Tech-help4903
    @Tech-help4903 Год назад

    Can we control hc12 using smart phone

  • @jonathanbennett1074
    @jonathanbennett1074 5 лет назад

    Should we use Arduino Uno or Arduino Mega. The video shows UNO but the link says Mega.

    • @HowToMechatronics
      @HowToMechatronics  5 лет назад

      You can use any Arduino board that you have, it won't be a problem.

  • @sarathkumar-gq8be
    @sarathkumar-gq8be 3 года назад

    hc12 can connect with mobile bluetooth device

  • @trannguyen8210
    @trannguyen8210 6 лет назад +3

    i need code, please!!!

  • @poojak3175
    @poojak3175 3 года назад

    As l2998n is on but my motor are not moving please help me with the problem

  • @utkarshgupta..
    @utkarshgupta.. 5 лет назад

    why my car is not working after made
    please help me to whats problem in my car

  • @gnsharma2630
    @gnsharma2630 4 года назад

    Can I power receiver through arduino

  • @makarthur4618
    @makarthur4618 6 лет назад +5

    Got an error "error 511 could not fit "279" into 1 byte on my android app

    • @makarthur4618
      @makarthur4618 6 лет назад +1

      Recall in the LED app, bluetoothclient sent 48 and 49 (ascii code) to arduino to signal on and off.
      what is the determinant of variable type in MIT app inventor. how can we define the variable type?
      Thanks

    • @loptica62
      @loptica62 6 лет назад

      does it have anything to do with the sprite size (px) or maybe the difference (of diameters) between the canvas (square shape) and the joystick ball (circle shape) and background........ You keep mentionig the size of the canvas should be adjusted, ok - so we are talkng about the diffenrce in diameters right?
      btw when I did the "x" reading from the App (via Serial.read(); over the arduino serial monitor) I got eradic values from 0 to 255..... at times I would also get differnet errors 511 - 265 or 270 can't fit inito 1 byte.... I understand what you said before but how is it possible to reduce movement of the sprites - by changing their size? What is the function of the canvas then? Thanks in advance on any new information.
      PS how did you come up with the numbers 140 and 64 in your AIA file. The size of your sprites are 274x274 px and 128x128px... you have set the size of the canvase to be exactly the same size as of the joystick-background but how does 274 relate to 140 as being center, same goes for the joystick-ball 128 and 64... how do does numbers relate.
      Sorry for such a long reply/question

    • @loptica62
      @loptica62 6 лет назад

      sending a bigger value?? What is effecting that value? The size (pixels) of the sprites/pictures of joystick/ joystick background.... or the 'numbers' in the blocks view?
      Thanks...

    • @loptica62
      @loptica62 6 лет назад

      "movemennt area" is defined through the blocks code or just by the size of the sprites (pxls) or maybe both...?
      Thanks...

    • @loptica62
      @loptica62 6 лет назад

      finally got the thing working...... thanks!

  • @RR-rf7vr
    @RR-rf7vr 5 лет назад

    Using Android phone
    baud rate changed to default 9600 in the Arduino code
    I had to put an If statement on the Mit app
    IF {get current X} is > 250
    set current X to 250
    did the same for the Y
    (things are starting to move, just the wrong way for now)

  • @makarthur4618
    @makarthur4618 6 лет назад +1

    In the Bluetooth control version the slave HC-05 code limits the range of value between 60-220.
    Why is this needed?
    Should I limit the value range sent by Android in MIT Apps Inventor?
    // Makes sure we receive corrent values
    if (x > 60 & x < 220) {
    xAxis = map(x, 220, 60, 1023, 0); // Convert the smartphone X and Y values to 0 - 1023 range, suitable motor for the motor control code below
    }
    if (y > 60 & y < 220) {
    yAxis = map(y, 220, 60, 0, 1023);
    }

    • @loptica62
      @loptica62 6 лет назад

      I wanted to post the same question. Although I have done the "reading" ot the x and y values over the serial monitor but I've been getting some very odd numbers not even close to the range 60-220... I wonder if it has anything to do with the size of the tablet screen (I don't have a phone). It's all in the pixels I guess
      Furthermore, I was wondering why in the blocks part in the " touch up" sequence there is a call.moveto - - 140-64 ? Wasn't it easier just to put "76" instead.... I'm still bafeld by the numbers 140 and 64 what relation do they have with the sprites sizes 274x274px and 128x128px..... 274/2=137..... and 128/2=64
      One more thing I forgot to mention, the positon fo the joystick-ball sprite has coordinates x: 75 y:75 and z:1 (I presume pixels) ... as for the joystick background
      x: 0 y:0 and z:1... So what are we looking for; bounds of the canvas or bounds of the sprites. Is it just a coincidence that the canvas is the same size as the background of the joystick....

    • @makarthur4618
      @makarthur4618 6 лет назад

      Resolved the issue by limiting the range of value sent by MIT App

    • @loptica62
      @loptica62 6 лет назад

      nicely said, but how do you do that exactly ? (or should I say easier said than done)... In the blocks or designer view? In the blocks view, do I just change the numbers 140 and 64 etc... ?
      .... thanks

    • @loptica62
      @loptica62 6 лет назад

      I still haven't resolved a few things yet. I still keep getting the error 511 (can't fit the 1-byte value etc..)
      btw.... I got the robot moving forward and backward (in a straight line) but it just won't move left nor right....
      anyway, Mak, thanks for the suggestions

    • @makarthur4618
      @makarthur4618 6 лет назад +1

      How to find the max X and Y - for debug, create two label to display the raw X and Y value.
      then, convert the X and Y value to the range of 0 - 255 by (255 @ X / Max-X),

  • @law7246
    @law7246 4 года назад +1

    Can you control the Arduino HC12 with a Phone?

  • @birajraval
    @birajraval 4 года назад

    Can we connect HC 12 Device directly with phone??
    Please answer asap

  • @joshuatimothy4236
    @joshuatimothy4236 6 лет назад

    coool!

  • @tariq7071
    @tariq7071 3 года назад

    Is this more electronics or mechatronics engineering?

  • @lixx2129
    @lixx2129 4 года назад

    Hi, thanks for the video. The downloadable .aia file can no longer be imported in the MIT app inventor website because it says the project name must only contain letters. Can you please rename and post the download link again? Hoping for your response. Thanks a lot in advance!

    • @wattsop4183
      @wattsop4183 4 года назад

      Hey I had same problem but figured out if you renamed it yourself it works.

  • @nethmasandeep8332
    @nethmasandeep8332 3 года назад

    I TRIED HE 5 MASTER AND SLAVES ONE BUT IT DIDNT WORK .PLEASE HELP ME

  • @BilalARauf
    @BilalARauf 6 лет назад

    Can we use HC-06 instead of 05

  • @realitydamn8237
    @realitydamn8237 Год назад

    Can i have the app link please?

  • @livarei
    @livarei 8 месяцев назад

    Hi the APK file is not downloading due to some error, would it be possible to reupload?

  • @peterrambo4454
    @peterrambo4454 6 лет назад

    can the front wheels be normal wheels

  • @ridvanvejzagic2887
    @ridvanvejzagic2887 2 года назад

    Why is the arduino and hc-05 powered off 11V? Isn't that gonna fry them

  • @T--gl3xp
    @T--gl3xp 4 года назад

    error 511 In the Android app how can I fix it

  • @wouterassem1261
    @wouterassem1261 2 года назад

    Got an error "error 511 could not fit "279" into 1 byte on my android app and i don ́t know how to fix it: I fixed it

  • @mohanrajm-.5936
    @mohanrajm-.5936 3 года назад

    What is cost?

  • @kylechua6056
    @kylechua6056 6 лет назад

    Can I use 9V Battery?

    • @HowToMechatronics
      @HowToMechatronics  6 лет назад

      Yes you can but it depends on your motors. The motors that I use are 12V rated so with 9V battery they would still work but have poor performance.

    • @kylechua6056
      @kylechua6056 6 лет назад

      I tried this project. But it shows error in the android app. "error 511 could not fit "279"

    • @shell6263
      @shell6263 6 лет назад

      If I use two 5V motors and one 9V will it work with a 12V battery?

  • @titogaben1182
    @titogaben1182 6 лет назад

    Can I use the Hc-06 module?

    • @ggoraa
      @ggoraa 4 года назад

      Yes, they are basically the same

  • @rustamkureshi8246
    @rustamkureshi8246 5 лет назад +1

    How to cannact hc12 Bluetooth with Android phone

  • @FrantzVidal
    @FrantzVidal 3 года назад +1

    It's a beginner project but I must be too much of a beginner as I haven't been able to get it to work.

    • @alba7142
      @alba7142 3 года назад

      j'ai le même problème

  • @aurelioescalante1724
    @aurelioescalante1724 3 года назад

    Sorry I can’t watch the module H-12

  • @eeeline
    @eeeline 6 лет назад

    done

  • @poojak3175
    @poojak3175 3 года назад

    Hi sir my motor are not moving

  • @jojomojo1677
    @jojomojo1677 6 лет назад

    How to interface relay and water sensor in arduino

  • @peterrambo4454
    @peterrambo4454 6 лет назад

    thnx bruh!!

  • @aliasgharjessor9149
    @aliasgharjessor9149 6 лет назад

    Error 516: Unable to write: Broken pipe
    what does this mean?

  • @islamesmat3000
    @islamesmat3000 6 лет назад

    Where is the code off application

  • @yubelik86
    @yubelik86 5 лет назад

    Автор русский?