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