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 #30 background imageLoading...
Page #30 background image
Copy right © 2018 Shenzhen Emakefun Technology co., Ltd.
30
void loop()
{
Mirf.payload = sizeof(value1);
Mirf.channel = 10; //Set the channel used
Mirf.config();
if(Mirf.channel == 10)
{
Mirf.setTADDR((byte *)"FGHIJ"); //Set the receiver address
value1 = 100;
Mirf.send((byte *)&value1); //Send instructions, send random number value
Serial.print("Wait for sending.....");
while (Mirf.isSending()) delay(1); //Until you send successfully, exit the loop
Serial.print("value1 Send success:");
Serial.println(value1);
delay(500);
}
Mirf.payload = sizeof(value2);
Mirf.channel = 20; //Set the channel used
Mirf.config();
if(Mirf.channel == 20)
{
Mirf.setTADDR((byte *)"KLMNO"); //Set the receiver address
value2 = 200;
Mirf.send((byte *)&value2); //Send instructions, send random number value
Serial.print("Wait for sending.....");
while (Mirf.isSending()) delay(1); //Until you send successfully, exit the loop
Serial.print("value2 Send success:");
Serial.println(value2);
delay(500);
}
}
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.