EasyManua.ls Logo

Emakefun RF-NANO User Manual

Emakefun RF-NANO
34 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #21 background imageLoading...
Page #21 background image
Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
21
3Arduino configures the CE to be high for at least 10 μs and transmits data after a delay of 130 μs. If the
auto answer is on, the nRF24L01 enters the receive mode immediately after transmitting the data and
receives the answer signal. If a reply is received, the communication is considered successful.
4NRF24L01 will automatically set TX_DS high and the TX_PLD will be cleared from the transmit stack.
If no response is received, the data will be automatically retransmitted. If the number of retransmissions
(ARC_CNT) reaches the upper limit, MAX_RT is set high and TX_PLD will not be cleared; MAX_RT
When TX_DS is set high, IRQ goes low to trigger MCU interrupt. When the last transmission is successful,
if the CE is low, the nRF24L01 will enter standby mode.
5If there is data in the transmission stack and CE is high, the next transmission is started; if there is no data
in the transmission stack and CE is high, the nRF24L01 will enter standby mode 2.
Receive data process
1When the nRF24L01 receives data, please configure the nRF24L01 to receive mode firstly.
2Then delay 130μs into the receiving state to wait for the arrival of data. When the receiver detects a valid
address and CRC, it stores the data packet in the receiver stack. At the same time, the interrupt sign RX_DR
is set high and the IRQ goes low to notify the MCU to fetch the data.
3If auto-response is turned on at this time, the receiver will enter the transmit status echo response signal at
the same time. When the last reception is successful, if CE goes low, the nRF24L01 will go into idle mode
1.
3.1.3 Program code
Transmission data program code:
Code path RF-NANO Demo Program\Peer-to-peer Communication\Emitter\Emitter.ino
Code source
//Transmitter program
#include <SPI.h>
#include "Mirf.h"
#include "nRF24L01.h"
#include "MirfHardwareSpiDriver.h"
Nrf24l Mirf = Nrf24l(10, 9);
int value;
String vas;
void setup()
{
Serial.begin(9600);
Question and Answer IconNeed help?

Do you have a question about the Emakefun RF-NANO and is the answer not in the manual?

Emakefun RF-NANO Specifications

General IconGeneral
MicrocontrollerATmega328P
Wireless ModulenRF24L01+
Operating Voltage5V
Input Voltage (recommended)7-12V
Input Voltage (limits)6-20V
Digital I/O Pins14
PWM Channels6
Analog Input Pins8
DC Current per I/O Pin20 mA
Flash Memory32 KB
SRAM2 KB
EEPROM1 KB
Clock Speed16 MHz
RF Frequency2.4 GHz
RF Output Power0 dBm
RF Sensitivity-85 dBm
RF Data Rate2 Mbps
Dimensions45mm x 18mm

Summary

Chapter 1 RF-NANO Introduction

1.1 RF-NANO Overview

The board integrates an NRF24L01+ chip, combining NANO and NRF24L01+ for convenience.

1.2 RF-NANO MCU Introduction

Details the ATmega328 MCU, its features, voltage, memory, and I/O capabilities.

1.2.5 ATmega328 with NRF24L01+ Communication

Explains SPI communication between ATmega328 and NRF24L01+ with pin connections.

1.3 RF-NANO Driver Installation

Guides on installing the necessary drivers and IDE for the RF-NANO board, covering IDE and driver setup.

Chapter 2 RF-NANO Working Principle

2.1 RF-NANO Working Principle Introduction

Explains RF-NANO data transmission and reception, including modes and signal sequences.

2.2 RF-NANO Config Word

Details the SPI port communication and common configuration registers for the NRF24L01+ chip.

2.3 RF-NANO Working Modes

Describes the NRF24L01+ state machine and its five operational modes.

Chapter 3 RF-NANO Communication

3.1 Implement Two RF-NANO Point-to-Point Communication

Guides on establishing point-to-point wireless communication between two RF-NANO modules.

3.1.3 Point-to-Point Program Code

Provides transmitter and receiver C++ code for point-to-point communication.

3.2 Multiple Send to One Receive Communication

Details setting up multiple RF-NANO devices to send data to a single receiver.

3.3 One Send to Multiple Receive Communication

Explains setting up one RF-NANO to transmit data to multiple receiving devices.

Chapter 4 Transmitting Power and Data Rate

4.1 Set the Transmitted Power of RF-NANO

Explains software control of RF-NANO output power levels (-18dBm to 0dBm).

4.2 Set RF-NANO Data Transfer Rate

Details setting data transmission rates: 1Mbps, 2Mbps, or 250Kbps via software.