loading

The aim of this project is to build a transmitter and a receiver by using a cheap and easy to use component such as Arduino UNO, Arduino Nano, and nRF24L01 transceiver. This project is a simple and easy to implement and can be a good start point for beginners.

Step 1: ​What You Will Need:

Step 2: Connect the NRF24L01 Module

these connections are applied for both, The transmitter and the receiver

Step 3: Connect the Joystick and the LED to the Transmitter

And connect the LED as following:

  • LED+ --> Arduino Nano D2 pin
  • LED- --> Arduino Nano GND
  • 2k2 Resistor --> LED+

Step 4: Connect the ESC and the Servo to the Receiver Board

IMORTANT NOTE: if you have a similar ESC Never connect the ESC’s red wire to the Arduinoboard because it may damage it

Step 5: Power Source

  • I've attached this header to the battery -as shown in picture- in order to deliver a power to the Arduino on the receiver side, or you can use a separated battery for the Arduino board.
  • for the transmitter you can use any power source as you wish

Step 6: Programming the Arduinos

  1. Download the RF24 Library from here
  2. The sketch is available at github and it is full commented, or you can download it from the attachments.

Step 7: Video and Pictures

Enjoy It!

And please vote for me ?

Ygy
<p>Hi All,</p><p>I am sorry for not answering your questions, I am very busy nowadays. I am planning in the future to relaunch this project in version two and do it using a communication protocol to make it more stable, also I have to update the code so it works with new nrf24l01 library updates. Thanks for your understanding my situation. I'll come back soon</p>
hi sir, i have to control the robot car project. Where the rear wheels in the form of a dc motor is controlled with flex sensors and front wheels in the form of a servo motor controlled by the accelerometer sensor. Robot controller with a car connected with nrf24l01. if one of the sensors to control I can. but if it combines both to control I can not. Both sensors transmit data simultaneously . dc motors and servo motors confused receive data so that its movement is chaotic. How should I fix this? can you help me.? Can I send my program to you and you see.? Please. My email: rema_adhe@yahoo.com
<p>ntap</p>
<p>Hello Mujahed, nice work!</p><p>I'm starting out with Arduino, but always passionate rc model.</p><p>I wanted to ask if you can edit your listings for running two joystick and four servants.</p><p>Thank you</p>
<p>Hey mujahed, nice work!</p><p>I have a little question, the code for te receiver does not compile in my case?</p><p>In the while loop on the botoom is the failure: </p><p>&quot; done = radio.read( received_data, num_received_data );</p><p>exit status 1</p><p>void value not ignored as it ought to be&quot;</p><p>What does the function radio.read give back? Does it get a boolean type?</p><p>Thanks for your help,</p><p>Leon</p>
<p>Okay found the problem.</p><p>You have to definetly use the library linked in part 6.</p><p>The Library from the repo in ArduinoIDE will not work!</p>
<p>yes i vote in YOU, </p><p>mujahed1987 </p><p> 4 </p><p>President</p>
<p>Nice work. ;-)</p>
<p>The Code for the ESC will work with Unbranded brushless ESC's </p>
thank you for your not<br>but as in my part list<br>the ESC that I was working with is this one<br>http://www.ebay.com/sch/i.html?_kw=03018+ESC+SPEED+CONTROLLER+HSP<br>and I can not confirm that if it could work with others
<p>What i meant was I got it working with Modification Using this brushless ESC </p><p>http://www.ebay.com/itm/3650-4370KV-4P-Sensorless-Motor-with-45A-Brushless-ESC-for-1-10-RC-Car-US-W4K8-/361703223694?hash=item543731318e:g:GMIAAOSweWVXdzRN</p>
<p>Hello! Nice project You have here! I think I am gonna to try it, I love to modify RC stuff and experiment. I wonder, would it be hard to add several buttons on remote? To control lights on car, and other possible uses? Thanks!</p>
<p>Hi.project for thanks.</p><p>What should I do rc car to go more slowly.</p>
<p>void value not ignored as it ought to be </p><p>&quot;done = radio.read( received_data, num_received_data );&quot;</p><blockquote>// Fetch the payload, and see if this was the last one.<br> <strong>done = radio.read( received_data, num_received_data );</strong><br> ESC_value=received_data[0]*10; //Multiplication by 10 because the ESC operates for vlues around 1500 and the nRF24L01 can transmit maximum of 255 per packet <br> esc.writeMicroseconds(ESC_value);<br> // Serial.println(ESC_value);</blockquote>
you maybe not installed and included the nRF24 library<br>you can download it from here https://codeload.github.com/maniacbug/RF24/zip/master<br><br>please confirm if you did, or paste the full code if you wrote your own and if you used my code please describe the steps you did
<p>Hi,</p><p>I have the same problem than Jodyk5 and abhilesh. I had installed the nrf24 library.</p><p>Have you a solution for this problem ?</p><p>thanks</p>
<p>What type of servo is needed, digital or analog?</p>
<p>Your project is awesome but I have a small doubt:Will the 2 nrf24l01 modules will connect to each other when powered using an arduino or we have to setup it using a computer every time we power it ??</p>
<p>ofcourse if you declare the same address<br>watch my video for more!</p><p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/4GSCHz_Fmm8" width="500"></iframe></p>
<p>thank you is already working.</p><p>so..... whether working with ps2 controller...?</p>
<p>i keep coming across this error in void function&quot;void loop&quot;,void value not ignored as it ought to be...??pls let me know if u can... </p>
Can you add a screen shot so it help me to understand the error more precisely
<p>hello.</p><p>You are very helpful to this community.</p><p>I am using Arduino nano boards with nrf24l01 and a potentiometer to control a servo. I am not using an ESC. Do I just delete the ESC lines and substitute &quot;potentiometer&quot; for &quot;joystick&quot;?</p>
Hello,<br>Yes you are right and you are very welcome for your comment
<p>Hello, I'm collecting the materials. the ESC that you use 320A. If I buy Gartt20A that would be okay?</p>
Hi,<br><br>The Gartt20A ESC is for the brushless motor so:<br>1- it is not compatible with the brushed motor as the one in my project. You have to buy a brushless motor or look for a brushed-motor-ESC<br>2- I can't tell if the code will work with this model, you have to search and try by your self<br><br>Please keep us with updates.<br><br>Regards,<br>Mujahed
<p>Thanks another question. Is 7.4 V 1500 mAh would be problem?</p>
<p>No problem but the battery capacity is slightly less what makes it executed a little faster </p>
<p>Hi again, when I was collecting the materials, I've opened a topic in one of the electronic forums. They said you can't use ESC with servo motors you should use servo motor control circuit what made me really confused now.</p>
<p>Thanks for the instructable. I just built it and it works, however the transmission is &quot;pulsed&quot;. If I tell it to steer slowly the servo updates its position every second(ish) instead of a constant turning. Is there a way to speed up the data transfer, or is there something else going on?</p><p>Thanks!</p>
<p>Hi,</p><p>You are welcome.</p><p>In the code I wrote the data are transmitted continuously without any delay. You have to check your code if you made any changes.</p>
<p>Found the problem, transmitter batteries were almost dead :P</p>
<p>Thanks for the reply, but I did not make any changes </p>
I made it but have an issue<br>I'm just connecting 1servo with no esc<br>but the servo moved until I changed its direction fast for about 3 to 6 times then its stop responding<br>I must push resets button to make it wark again .<br>can u help me ?
<p>Have you made any changes on the code? If yes, let me see your code please</p>
<p>hello nice instructable (would there be a place in the reciver for 4 small dc motor that I can control them with pwm and direction and place for the nrf24l01 but this project I don't need the servo and the esc )((btw my reciver is a arduino uno r3 )) thanks for advance</p>
Hello<br>Thank you for compliment.<br>The arduino UNO has 6 PWM output pins<br>The nRF24 module uses 2 of them (pin 10 and pin 11)<br>The remaining is 4 PWM output pins which can be used to connect your 4 motors.<br>I have to remind that you must use a suitable way to control the motors (for example a H-bridge motor controller ) so you the arduino will not be damaged
<p>thanks you so much for your help but I have only one last question what do you think Is better in range and data sending and reciving quality nrf24 or rf 315 module (thanks for help your a great man)</p>
<p>Hello ! Nice project, thanks for sharing</p><p>would it be possible to do this with 2 nano ?</p><p>by the way, I have read somewhere that the nano wasn't able to provide the 3.3 v when powered externally, is that true ?</p><p>Thanks</p>
<p>Hello,</p><blockquote>would it be possible to do this with 2 nano ?</blockquote><p>Sure you can.</p><blockquote>by the way, I have read somewhere that the nano wasn't able to provide the 3.3 v when powered externally, is that true ?</blockquote><p>No, that is Not true, it will provide the 3.3v see the attached images with this comment. I did this experiment right now </p>
<p>ok thanks for your response, </p><p>maybe the 3.3v bug is only present on chinese clone that work with CH340G chip</p><p>is your nano an official or chinese ?</p>
<p>edit: I have received my chinese nano today, and the 3.3v output workeven on external source</p><p>link of my nano : </p><p>http://www.banggood.com/ATmega328P-Arduino-Compatible-Nano-V3-Improved-Version-With-USB-Cable-p-933647.html</p>
<p>i want to connect two joystics on the transmitter side and 4 servos and esc on the receiver side. how can i do it?</p>
this addition need a lot of work. send me a private message if you are really interested
Where do i send u a private message. Thanks
<p>hi, how hard would it be to modify this project to use 2 drive motors and just reverse polarity for turning? also i would like to use 2 joysticks one for each motor. kind of like tank controls or a zero turn mower</p>
hi, I can not say it is hard or easy because it depends on the person knowledge for me it is easy for another it may be much harder.<br><br>Technically to use two drive motors you have to remove the part which is responsible about the steering-servo, then to duplicate that part of moving the car forward/backward.<br>
<p>Thank you for the instructions, I will let you know how it turns out, Please keep up providing this kind of instruction and information'</p>

About This Instructable

65,142views

134favorites

License:

More by mujahed1987:RF Control System For R/C Vehicle Based On Arduino And nRF24L01 
Add instructable to: