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

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
    @liszcgsedt6 жыл бұрын

    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
    @sayantanmaiti25136 жыл бұрын

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

  • @estebanmercier9652
    @estebanmercier96526 жыл бұрын

    Always the best youtuber!

  • @ajeethsuryash5123
    @ajeethsuryash51233 жыл бұрын

    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

  • @OSMADO
    @OSMADO5 жыл бұрын

    bro you are a genius thank for this!

  • @omaralbalouli7452
    @omaralbalouli74526 жыл бұрын

    That's amazing video GJ man 😀

  • @rangaswamy8604
    @rangaswamy86046 жыл бұрын

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

  • @rangaswamy8604

    @rangaswamy8604

    6 жыл бұрын

    Eagerly waiting for the project.

  • @shaileshshukla3610
    @shaileshshukla36106 жыл бұрын

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

  • @alpeshchaudhari63
    @alpeshchaudhari636 жыл бұрын

    Awesome video support from INDIA

  • @daviddiaz3246
    @daviddiaz32466 жыл бұрын

    As always excellent 👍

  • @loptica62
    @loptica626 жыл бұрын

    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 жыл бұрын

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

  • @KonaTech
    @KonaTech6 жыл бұрын

    Great content like all way

  • @1337PANDA
    @1337PANDA5 жыл бұрын

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

  • @FlexPhill
    @FlexPhill6 жыл бұрын

    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!

  • @hugomg1000
    @hugomg10004 жыл бұрын

    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

  • @istvanbarta
    @istvanbarta9 ай бұрын

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

  • @carlazyrodriguez4842
    @carlazyrodriguez48424 жыл бұрын

    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.

  • @danhcong5234
    @danhcong52344 жыл бұрын

    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?

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

    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?

  • @clemenskeckeis8298
    @clemenskeckeis82982 жыл бұрын

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

  • @EDISONSCIENCECORNER
    @EDISONSCIENCECORNER6 жыл бұрын

    really nice

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

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

  • @jonathanbennett1074
    @jonathanbennett10745 жыл бұрын

    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?

  • @RahulKumar-zs2wv
    @RahulKumar-zs2wv6 жыл бұрын

    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.

  • @muhammadhaziqmohdnoor6868
    @muhammadhaziqmohdnoor68684 жыл бұрын

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

  • @deepdeysarkar5869
    @deepdeysarkar58696 жыл бұрын

    I will make this

  • @muhammadhaziqmohdnoor6868
    @muhammadhaziqmohdnoor68684 жыл бұрын

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

  • @danhcong5234
    @danhcong52344 жыл бұрын

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

  • @marianacruz8861
    @marianacruz88614 жыл бұрын

    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.

  • @user-et3oc1nx7t
    @user-et3oc1nx7t2 жыл бұрын

    GREAT

  • @AdminAdmin-fn1uq
    @AdminAdmin-fn1uq5 жыл бұрын

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

  • @TurtleEngineer0
    @TurtleEngineer03 жыл бұрын

    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.

  • @rchlt96
    @rchlt963 жыл бұрын

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

  • @bramaarssen2568
    @bramaarssen25683 жыл бұрын

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

  • @poojithp9356
    @poojithp93563 жыл бұрын

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

  • @chellaidhevaraj4917
    @chellaidhevaraj49176 жыл бұрын

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

  • @BilalARauf
    @BilalARauf6 жыл бұрын

    Can we use arduino motorshield instead of l298 driver

  • @aiforyounow
    @aiforyounow2 жыл бұрын

    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

  • @omego23
    @omego234 жыл бұрын

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

  • @raahimirfan5996
    @raahimirfan59964 жыл бұрын

    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!

  • @ammarhaikal6907

    @ammarhaikal6907

    4 жыл бұрын

    it should work flawlessly. ive done it myself

  • @raahimirfan5996

    @raahimirfan5996

    4 жыл бұрын

    @@ammarhaikal6907 ok thankz alot

  • @Amr.Khateeb
    @Amr.Khateeb6 жыл бұрын

    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!

  • @mehmetuzun3534
    @mehmetuzun35345 жыл бұрын

    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

  • @pranavshinde9529
    @pranavshinde95296 жыл бұрын

    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

  • @janithharshana2369
    @janithharshana23694 жыл бұрын

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

  • @adhambarakat8688
    @adhambarakat86885 жыл бұрын

    Is it necessary using the resistors

  • @marcdaniel2071
    @marcdaniel20713 жыл бұрын

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

  • @prashantsaini2141
    @prashantsaini21414 жыл бұрын

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

  • @joshuatimothy4236
    @joshuatimothy42366 жыл бұрын

    coool!

  • @poojak3175
    @poojak31753 жыл бұрын

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

  • @kavtech_midi
    @kavtech_midi3 жыл бұрын

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

  • @homeautomationstation4554
    @homeautomationstation45546 жыл бұрын

    Where can we buy all the needed components?

  • @navneetsharma8226
    @navneetsharma82264 жыл бұрын

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

  • @nagarajsanjaygowdanagarajs93
    @nagarajsanjaygowdanagarajs936 жыл бұрын

    a1 was not decleared in the scope why

  • @sarathkumar-gq8be
    @sarathkumar-gq8be3 жыл бұрын

    hc12 can connect with mobile bluetooth device

  • @gnsharma2630
    @gnsharma26304 жыл бұрын

    Can I use arduino nano in receiver ?

  • @makarthur4618
    @makarthur46186 жыл бұрын

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

  • @makarthur4618

    @makarthur4618

    6 жыл бұрын

    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!

  • @juanarango6033
    @juanarango60336 жыл бұрын

    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

  • @RR-rf7vr
    @RR-rf7vr5 жыл бұрын

    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)

  • @slobodanpantelic505

    @slobodanpantelic505

    5 жыл бұрын

    can you help me, where did you put the if statement

  • @adhepradhan
    @adhepradhan4 жыл бұрын

    What is the name of front wheel

  • @kumarsaksham4522
    @kumarsaksham45225 жыл бұрын

    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.

  • @Tech-help4903
    @Tech-help4903 Жыл бұрын

    Can we control hc12 using smart phone

  • @utkarshgupta..
    @utkarshgupta..5 жыл бұрын

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

  • @goanga3749
    @goanga37495 жыл бұрын

    What's the range of the car?

  • @nethmasandeep8332
    @nethmasandeep83323 жыл бұрын

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

  • @adhepradhan
    @adhepradhan4 жыл бұрын

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

  • @makarthur4618
    @makarthur46186 жыл бұрын

    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 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 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 жыл бұрын

    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),

  • @archilgogava9141
    @archilgogava91416 жыл бұрын

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

  • @peterrambo4454
    @peterrambo44546 жыл бұрын

    thnx bruh!!

  • @kylechua6056
    @kylechua60566 жыл бұрын

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

  • @ammarhaikal6907

    @ammarhaikal6907

    4 жыл бұрын

    yepp

  • @wouterassem1261
    @wouterassem12612 жыл бұрын

    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

  • @trannguyen8210
    @trannguyen82106 жыл бұрын

    i need code, please!!!

  • @hafizmuhammedk9425
    @hafizmuhammedk94256 жыл бұрын

    Where can I get the app

  • @tariq7071
    @tariq70713 жыл бұрын

    Is this more electronics or mechatronics engineering?

  • @ridvanvejzagic2887
    @ridvanvejzagic28872 жыл бұрын

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

  • @jonathanbennett1074
    @jonathanbennett10745 жыл бұрын

    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.

  • @law7246
    @law72464 жыл бұрын

    Can you control the Arduino HC12 with a Phone?

  • @gnsharma2630

    @gnsharma2630

    4 жыл бұрын

    I also want

  • @livarei
    @livarei8 ай бұрын

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

  • @peterrambo4454
    @peterrambo44546 жыл бұрын

    can the front wheels be normal wheels

  • @mohsrotv4015

    @mohsrotv4015

    5 жыл бұрын

    yes

  • @gnsharma2630
    @gnsharma26304 жыл бұрын

    Can I power receiver through arduino

  • @rustamkureshi8246
    @rustamkureshi82465 жыл бұрын

    How to cannact hc12 Bluetooth with Android phone

  • @rustamkureshi8246

    @rustamkureshi8246

    5 жыл бұрын

    Please help

  • @rustamkureshi8246

    @rustamkureshi8246

    5 жыл бұрын

    I want to connect HC 12 Bluetooth with android phone

  • @birajraval
    @birajraval4 жыл бұрын

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

  • @nguyenthuy9824

    @nguyenthuy9824

    4 жыл бұрын

    No

  • @FrantzVidal
    @FrantzVidal3 жыл бұрын

    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

  • @BilalARauf
    @BilalARauf6 жыл бұрын

    Can we use HC-06 instead of 05

  • @HowToMechatronics

    @HowToMechatronics

    6 жыл бұрын

    Yes, you can.

  • @eeeline
    @eeeline6 жыл бұрын

    done

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

    Can i have the app link please?

  • @T--gl3xp
    @T--gl3xp4 жыл бұрын

    error 511 In the Android app how can I fix it

  • @lixx2129
    @lixx21294 жыл бұрын

    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.

  • @mohanrajm-.5936
    @mohanrajm-.59363 жыл бұрын

    What is cost?

  • @kylechua6056
    @kylechua60566 жыл бұрын

    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?

  • @poojak3175
    @poojak31753 жыл бұрын

    Hi sir my motor are not moving

  • @aurelioescalante1724
    @aurelioescalante17243 жыл бұрын

    Sorry I can’t watch the module H-12

  • @titogaben1182
    @titogaben11826 жыл бұрын

    Can I use the Hc-06 module?

  • @ggoraa

    @ggoraa

    4 жыл бұрын

    Yes, they are basically the same

  • @yubelik86
    @yubelik865 жыл бұрын

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

  • @jojomojo1677
    @jojomojo16776 жыл бұрын

    How to interface relay and water sensor in arduino

  • @aliasgharjessor9149
    @aliasgharjessor91496 жыл бұрын

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

  • @islamesmat3000
    @islamesmat30006 жыл бұрын

    Where is the code off application