Mạch thu phát RF NRF24L01+ PA + LNA 2.4Ghz anten rời sử dụng IC RF chính là NRF24L01+ từ Nordic được thiết kế thêm phần PA (power amplifier) và LNA (Low Noise Amplifier) để có thể tăng công suất và khoảng cách thu phát xa hơn rất nhiều (điều khiện lý tưởng nhà SX công bố có thể truyền được 1000m).
Mạch thu phát RF NRF24L01 + PA + LNA 2.4Ghz anten rời được sử dụng cho các ứng dụng truyền nhận dữ liệu từ xa qua sóng RF giữa các mạch xử lý trung tâm như Vi Điều Khiển, Arduino hay Raspberry Pi,...
Thông số kỹ thuật:
- IC chính: NRF24L01 + PA + LNA
- Tần số thu phát: 2.4Ghz
- Điện áp sử dụng: 3.3VDC
- Dòng tiêu thụ: 45mA
- Các chân IO đều chịu được điện áp vào 5VDC.
- Chuẩn giao tiếp: SPI
- Tích hợp khuếch đại công suất phát PA (power amplifier) và LNA (Low Noise Amplifier)
- Công suất thu phát: 20dBm
- Tốc độ truyền nhận tối đa: 2Mbit/s
- Chuẩn chân cắm 2 x 4 khoảng cách chân 2.54mm.
- Kích thước: 48 x 15mm
Sơ đồ chân:
Code tham khảo Arduino:
Phát
#include <SPI.h> #include <nRF24L01.h> #include <RF24.h> //create an RF24 object RF24 radio(9, 8); // CE, CSN //address through which two modules communicate. const byte address[6] = "00001"; void setup() { radio.begin(); //set the address radio.openWritingPipe(address); //Set module as transmitter radio.stopListening(); } void loop() { //Send message to receiver const char text[] = "Hello World"; radio.write(&text, sizeof(text)); delay(1000);
Thu
#include <SPI.h> #include <nRF24L01.h> #include <RF24.h> //create an RF24 object RF24 radio(9, 8); // CE, CSN //address through which two modules communicate. const byte address[6] = "00001"; void setup() { while (!Serial); Serial.begin(9600); radio.begin(); //set the address radio.openReadingPipe(0, address); //Set module as receiver radio.startListening(); } void loop() { //Read the data if available in buffer if (radio.available()) { char text[32] = {0}; radio.read(&text, sizeof(text)); Serial.println(text); } }
Video tham khảo: