loading

I will discuss the use of NRF24L01 transceiver module of the models commonly used in wireless communications.

You can use it easily to your use of this module is very easy and good range of projects. In addition, the price is also affordable. Low power consumption and 2.4GHz frequency operation also gives us the advantage.

http://www.robimek.com/arduino-ile-nrf24l01-rf-modul-kullanimi/

http://make.robimek.com/arduino-using-nrf24l01-rf-module/

Step 1: NRF24L01 2.4GHz Transceiver Module

  • Pcb module and an external antenna models are available.While the range of PCB model can go up to 250 m to 1000 m in range external antenna model.
  • Bi-directional communication by both the buyer to make your project can use both the transmitter module.

Step 2: Module Pin Connections:

The module communicates using SPI protocol.Therefore, you should make looking at the arduino pin connector model SPI pins. Let's show the pin connections with Arduino UNO as an example.

nRF24L01 Arduino Uno
VCC3.3 V

GNDGND

CS 7

CE 8

MOSI11

MISO12

SCK13

One of the other receiver of the wireless communication module when you need to set the transmitter.
A module according to status of the project can also be used if desired both the transmitter and receiver. In case the receiver or transmitter module that does not change the cable connection. These connections are the same for all situations.

Step 3: Sample Applications:

Wireless servo motor control with potentiometer

You can make the necessary connections by looking at the receiver and transmitter circuit in Fig.A receiver module for other modules of the software will also perform data transfer by identifying the wireless transmitter.

Step 4: Transmitter Software:

#include <SPI.h>

#include "RF24.h"

int msg[1]; //SCK -> 13//MISO -> 12//MOSI -> 11//CSN -> 7//CE -> 8

RF24 radio(8,7);

const uint64_t pipe = 0xE8E8F0F0E1LL;

int potpin = 0;

int val;

void setup(void)

{

radio.begin();

radio.openWritingPipe(pipe);

}

void loop(void)

{

val = analogRead(potpin);

val = map(val, 0, 1023, 0, 179);

msg[0] = val;

radio.write(msg, 1);

}

Step 5: Receiver Software:

#include <Servo.h>

#include <SPI.h>

#include "RF24.h"

Servo myservo;

//SCK -> 13//MISO -> 12//MOSI -> 11//CSN -> 7//CE -> 8

RF24 radio(8,7);

const uint64_t pipe = 0xE8E8F0F0E1LL;

int msg[1];

void setup()

{

myservo.attach(9);

radio.begin();

radio.openReadingPipe(1,pipe);

radio.startListening();

}

void loop()

{

if (radio.available())

{

bool done = false;

while (!done)

{

done = radio.read(msg, 1);

myservo.write (msg[0]);

}

} Servo.h>}

Step 6: Description of Function:

First we need to define the CE Software and CSN pins.
nrf24l01p attractive (7.8); >> Here's command 7.p the CSN 8.p is defined as the CE pin. In this function on behalf of the receiver module "receiver" We named. "nrf24l01p transmitter (7,8);" >> Here's command 7.p the CSN 8.p is defined as the CE pin. On behalf of transmitter modules in this function "transmitter" We named. Spı.beg the added library SP for communicating with the SPI protocol (); The setup communications function is started by writing into. "alici.channel (90);" >> defined communication channel value of 90 yaptık.b receiver module in the setup value should be the same value in both modules. Values between 0 and 125 can be written. "verici.channel (90);" we do >> the value defined in the setup, the communication channel 90 transmitter module. This value can be written in the same value range from 125 olmalıdır.0 in both modules. "alici.rxaddress (" control ");" >> We set the receiver module with the function name and address to the "control" gave the name. "verici.txaddress (" control ");" >> we set this function with the name and address of the transmitter module to the "control" gave the name. The two modules also address the communication channel name and value must be the same.

Important Note: Module communication between both modules also can not be obtained between VCC and GND pins and placing it between 10 uF 3.3 uF capacitor in the value and try again.

http://www.robimek.com/arduino-ile-nrf24l01-rf-modul-kullanimi/

http://make.robimek.com/arduino-using-nrf24l01-rf-module/

<p>Please help! I have problem verifying the receiver code, please check the error message below.</p><p>-------------------------------------------------------------------------------------------------------</p><p>Arduino: 1.8.1 (Windows Store 1.8.1.0) (Windows 10), Board: &quot;Arduino Nano, ATmega328&quot;</p><p>C:\Users\ysc96\Documents\Arduino\Receiver\Receiver.ino: In function 'void loop()':</p><p>Receiver:23: error: void value not ignored as it ought to be</p><p> done = radio.read(msg, 1);</p><p> ^</p><p>Receiver:26: error: expected unqualified-id before '.' token</p><p> } Servo.h&gt;}</p><p> ^</p><p>exit status 1<br>void value not ignored as it ought to be</p><div>This report would have more information with<br>&quot;Show verbose output during compilation&quot;<br>option enabled in File -&gt; Preferences.</div>
<p>hi &gt;&gt; i need to know more how to read valuese recived wirelessly to arduino and display it on VB &gt;&gt; could you help please</p>
<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>
<p>This is awesome.</p>
<p>Tesekkurler hocam. Elinize saglik. -Kenan</p>
<p>your are the best for this......................................</p>
<p>The basic of communication between 2arduino. it's very simple, watch my video to find out<br><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/MKz_73KaW1g" width="500"></iframe></p>
<p>Your video is vietnamese, i am vietnamese and it helps me so much ^_^.Finally ,i can do it. But you can't help people here with this video.^^</p>
<p>Hi,</p><p>Couldn't compile using Arduino IDE 1.6.5, nRF24L01p.h file not found :-( I tried to google around but could not find this declaration file</p><p>regards.</p>
<p>nRF24L01 library dowland &gt;&gt; <a href="http://www.robimek.com/wp-content/uploads/nrf24l01-library.zip"> http://www.robimek.com/wp-content/uploads/nrf24l0...</a></p>
<p>nRF24L01 library dowland &gt;&gt; <a href="http://www.robimek.com/wp-content/uploads/nrf24l01-library.zip"> http://www.robimek.com/wp-content/uploads/nrf24l0...</a></p>
<p>I have also been having problems with trying to compile and upload this code to my arduinos. It is telling me there is a problem with &quot; #include &lt;nRF24L01p.h&gt; &quot;. I believe this means that I do not have the proper library but can't seem to find an nrf24l01 library that works. I hope someone can help me to solve this problem and guide me to the right library downlaod. </p>
Great work sir
<p>AND CAN ALSO SHOW THE PROGRAM FOR THE RECEIVER AND THE TRANSMITTER</p>
<p>THANK YOU SIR FOR THE INSTRUCTABLES IT WAS REALLY HELPFUL,</p><p>SIR IF YOU DON'T MIND CAN YOU SHOW HOW TO CONTROL A 5V-9V DC MOTOR AND A SERVO MOTOR EACH WITH A TRIM POTENTIOMETER OR A PUSH BUTTON (ONE FOR THE DC MOTOR AND ANOTHER FOR THE SERVO MOTOR ) ALL WIRELESSLY USING JUST ONLY 2 ARDUINO UNO WITH EXPLANATION AND DIAGRAM </p><p>IT WILL BE REALLY REALLY REALLLY HELPFUL </p>

About This Instructable

44,541views

132favorites

License:

Bio: Mechanical engineer, Entrepreneur, Maker, robotic systems expert and Robimek founder
More by sezgingul:Arduino Mini CNC  Making Robot Hand With  Plastic Pipes Use of Microphone Module 
Add instructable to: