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
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!
glad to have you back Sir ! Always with new methods and algo !!!
Always the best youtuber!
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
bro you are a genius thank for this!
That's amazing video GJ man 😀
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
6 жыл бұрын
Eagerly waiting for the project.
Really that much information and knowledge is packed into one video...... 👌👌
Awesome video support from INDIA
As always excellent 👍
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
6 жыл бұрын
it's great to have indication in x and y direction . can you send me the app .
Great content like all way
There is a little fluctuation while receiving the analog inputs of joystick module in case of nrf24l01
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!
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
I wonder if you can control the nrf24 receiver with a flipper zero?
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.
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?
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?
Why use values 64 and 140 in the MIT App for x and y axis?
really nice
Hi, In my case the motor attached to enB keeps on running continuously. It also doesn't take input from the transmitter Please help
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?
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.
Hi Sir can the joystick shield funduino ver 1.A br connected with nrf + arduino uno as transmiter and nrf + arduino mega as receiver
I will make this
In the NRF section, can the arduino nano is replaced with arduino mega as the brain for the robot car
Once more question is. Could we use pin D10 in PWM mode with NRF24L01?
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.
GREAT
hi I connected everything as in this first diagram and the modules do not want to connect, please help me
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.
What software do you use for schematics? Looks very great!
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???
Can we do same including save and play the movement of the wheels
sir hc-12 module is able to use home automation is it possible?
Can we use arduino motorshield instead of l298 driver
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
In nrf24l01 module how do you stop the robot car when connection lost. I mean what code needs to be added?
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
4 жыл бұрын
it should work flawlessly. ive done it myself
@raahimirfan5996
4 жыл бұрын
@@ammarhaikal6907 ok thankz alot
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!
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
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
Guys help me , I have a 500 rpm motor the circuit would be the same right? I mean something wouldn't get damaged ?
@abdullahnasir8535
4 жыл бұрын
No nothing would be damaged.. The voltage and amps is what damages the circuit
Is this project dc motors speed are variable.... Via joy stick using.. Tnk u
Is it necessary using the resistors
this Arduino code requires one or more libraries, which ones?
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??
coool!
As l2998n is on but my motor are not moving please help me with the problem
which is most fast/no delay, is hc05 or nrf24?
Where can we buy all the needed components?
HC12 module code on your site are incomplete. Please check them and help me! As Soon As Possible.
a1 was not decleared in the scope why
hc12 can connect with mobile bluetooth device
Can I use arduino nano in receiver ?
Got an error "error 511 could not fit "279" into 1 byte on my android app
@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
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
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
6 жыл бұрын
"movemennt area" is defined through the blocks code or just by the size of the sprites (pxls) or maybe both...? Thanks...
@loptica62
6 жыл бұрын
finally got the thing working...... thanks!
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
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
5 жыл бұрын
can you help me, where did you put the if statement
What is the name of front wheel
can i use a normal motor which we get when we buy a robot car chassis
@HowToMechatronics
5 жыл бұрын
Well if it's 12V DC motor, yes you can use this same principle.
Can we control hc12 using smart phone
why my car is not working after made please help me to whats problem in my car
What's the range of the car?
I TRIED HE 5 MASTER AND SLAVES ONE BUT IT DIDNT WORK .PLEASE HELP ME
Does it work if we don't make the remote?
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
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
6 жыл бұрын
Resolved the issue by limiting the range of value sent by MIT App
@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
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
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),
I got problem with apk , for phone it doestn downloads , it and cant create it ..:S can you give me direct download link ? \
thnx bruh!!
Can I use a power bank to power arduino. And 2 18650 Battery or 6 Double AA Battery? In doing Android controller
@ammarhaikal6907
4 жыл бұрын
yepp
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
i need code, please!!!
Where can I get the app
Is this more electronics or mechatronics engineering?
Why is the arduino and hc-05 powered off 11V? Isn't that gonna fry them
Should we use Arduino Uno or Arduino Mega. The video shows UNO but the link says Mega.
@HowToMechatronics
5 жыл бұрын
You can use any Arduino board that you have, it won't be a problem.
Can you control the Arduino HC12 with a Phone?
@gnsharma2630
4 жыл бұрын
I also want
Hi the APK file is not downloading due to some error, would it be possible to reupload?
can the front wheels be normal wheels
@mohsrotv4015
5 жыл бұрын
yes
Can I power receiver through arduino
How to cannact hc12 Bluetooth with Android phone
@rustamkureshi8246
5 жыл бұрын
Please help
@rustamkureshi8246
5 жыл бұрын
I want to connect HC 12 Bluetooth with android phone
Can we connect HC 12 Device directly with phone?? Please answer asap
@nguyenthuy9824
4 жыл бұрын
No
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
3 жыл бұрын
j'ai le même problème
Can we use HC-06 instead of 05
@HowToMechatronics
6 жыл бұрын
Yes, you can.
done
Can i have the app link please?
error 511 In the Android app how can I fix it
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
4 жыл бұрын
Hey I had same problem but figured out if you renamed it yourself it works.
What is cost?
Can I use 9V Battery?
@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
6 жыл бұрын
I tried this project. But it shows error in the android app. "error 511 could not fit "279"
@shell6263
6 жыл бұрын
If I use two 5V motors and one 9V will it work with a 12V battery?
Hi sir my motor are not moving
Sorry I can’t watch the module H-12
Can I use the Hc-06 module?
@ggoraa
4 жыл бұрын
Yes, they are basically the same
Автор русский?
How to interface relay and water sensor in arduino
Error 516: Unable to write: Broken pipe what does this mean?
Where is the code off application