当前位置:网站首页>NRF24L01 troubleshooting
NRF24L01 troubleshooting
2022-07-06 12:20:00 【XlinliY. Zhang】
One 、 summary
NRF24L01 It must be the most commonly used RF module when you get started , It USES SPI Interface ,2.4G Frequency band for communication , Long distance low power consumption , It is very easy to use for connection free communication . but , We often say to waste life with NRF24L01, Its ease of use in RF is almost proportional to its difficulty in hardware construction , Use bread board + The possibility of DuPont line running through is very small . So in response to this problem , I wrote this article specifically , It is used to help novices run fast NRF24L01; At the same time, avoid novices reading garbage tutorials by mistake , what "NRF24L01 Should answer 5V Enhance power supply ",“ It must be a fake chip on Taobao ” etc. , Lead to a waste of time and energy .
Two 、 How to find out the fault
1、 If a worker wants to do a good job, he must sharpen his tools first
- about NRF24L01, There should be two development boards and two NRF24L01, This is convenient for testing communication .
- It is strongly recommended to buy a multimeter , Using a multimeter to check the fault is simply like a tiger's wings .
- Prepare more new DuPont lines , And prepare bread board , This can avoid poor contact and waste time .
2、 Knowing one's own and knowing one's other will win every battle
When buying on Taobao , You think what you buy is NRF24L01 Why? , It's not , The mainstream sources of goods are mainly divided into these three series
- Made in Europe and America NRF24L01( Original genuine products )
- Made in Taiwan NRF24L01(1:1 shanzhai , No big problem )
- domestic SI24L01 ( imitation , Universal , When not completely universal )
On Taobao , Most businesses will choose domestic products because of price problems SI24L01, This leads you to see that what you buy is NRF It's actually SI, Then how to facilitate these two ? The answer is simple , Turn on the flashlight with your mobile phone , Look at the silk screen on the module , Write NRF Yes. NRF, Write SI Yes. SI, Of course , Cow excrement package ( It's a lump of round black glue ) It must be SI I don't have to run .
SI24
NRF24
distinguish NRF still SI It is necessary to remove obstacles , Because some libraries are completely out of use .
3、 An antidote against the disease , as the medicine took effect , the symptoms lessened
(1)NRF24L01 Europe and the United States / Made in Taiwan :
The program can refer to this article :Arduino MEGA And UNO adopt nRF24L Module communication
As long as it is NRF24L01, Use the new DuPont line , Ensure good contact , It can be used normally , what 3.3V Insufficient power supply is deceptive , This module is the largest 70mA The current limit ,Arduino 3.3V The current is completely sufficient . And this module has no big modules, only small modules , Only with adapter plate and without adapter plate , Some modules have a LDO step-down , Support 5V Input , Common modules are as follows , Pick up 5V It only gives off heat , Even burn the module !!!!
For students who have multimeter :
Use Ma gear , Red lead to 3.3V, Black pen to NRF24L01 Of VCC, According to the current , Can be divided into
- 9mA about , Abnormal module communication , It doesn't work at all
- Greater than 100mA, Module is damaged , Direct exchange
- Other current , Hardware communication , The module operates normally , Check the communication channel
For students without multimeter :
After the separate receiver module is connected , The serial port should have no output , Without the transmitter , The receiving end should have no serial port output , If you keep outputting 0, Poor connection of wiring or complete damage of module can be considered .
(2)SI24L01 domestic :
For this module , Only the tested program of the store can communicate , Need to ask the store for , And and NRF24L01 Different channel matching methods , Difficult to communicate , Because the author has used a 10+ individual NRF24L01 Still buy SI Of , Only when I help others to check the cause , every last SI24 Two flowers bloom, one for each , Only the following questions can be summarized
- Library problem , Causes the program to fail to run , Ask the store for the program
- Different library files have different channel representations , It is recommended to use the same module
- The use of the development board and the DuPont line used many times led to poor contact
(3) Channel mismatch :
Another possibility is that the channels set for reception and transmission are different , The module works normally , But I didn't receive it at all , This mainly checks that the existential library has different channel programming , It is recommended not to change the example , Test with the same library .
3、 ... and 、 summary
XX24L01 The main problems lie in the following points
- There is no unified standard for the driver library
- Bad contact has a great impact ( Waste your life NRF24L01 Why , Old hands roll over everyday )
Playing SCM for many years now , I refuse to use most scenes NRF24L01 Of , Use only each time SI and NRF It's a pit , A little bad contact will lead to NRF24 Do not work directly , Various problems occur frequently , However, it is still incomparable with other communication methods in terms of low power consumption and long distance , If you have to use it , It is strongly recommended to use adapter plate instead of DuPont cable , Or pay more for the serial communication module , Or a development board that integrates these modules , These modules help you eliminate chip and hardware problems , Can let you concentrate on the process BUG, Let you lose a few hairs .
Of course, if you can , It is recommended to switch the communication scheme , Use ESPNOW、LORA、315\433MHz Are good alternatives or use serial port transparent transmission for data transmission . Of course, experienced suggestions to see STM32 Yes NRF To deal with , Write your own program , perfect DEBUG operation , Make development more time-saving and labor-saving
边栏推荐
- ESP8266使用arduino连接阿里云物联网
- Priority inversion and deadlock
- Générateur d'identification distribué basé sur redis
- open-mmlab labelImg mmdetection
- Keyword inline (inline function) usage analysis [C language]
- Selective sorting and bubble sorting [C language]
- Esp8266 uses Arduino to connect Alibaba cloud Internet of things
- (四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图
- Pytorch four commonly used optimizer tests
- Arduino gets the length of the array
猜你喜欢
Redis 缓存更新策略,缓存穿透、雪崩、击穿问题
Générateur d'identification distribué basé sur redis
ARM PC=PC+8 最便于理解的阐述
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
(三)R语言的生物信息学入门——Function, data.frame, 简单DNA读取与分析
(一)R语言入门指南——数据分析的第一步
js题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。
(五)R语言入门生物信息学——ORF和序列分析
Cannot change version of project facet Dynamic Web Module to 2.3.
Vscode basic configuration
随机推荐
Important methods of array and string
记一次云服务器被密码爆破的经历——关小黑屋、改密码、改端口
嵌入式启动流程
I2C bus timing explanation
C language, log print file name, function name, line number, date and time
Arduino uno R3 register writing method (1) -- pin level state change
arduino UNO R3的寄存器写法(1)-----引脚电平状态变化
Unit test - unittest framework
MySQL时间、时区、自动填充0的问题
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
arduino获取随机数
map文件粗略分析
Redis based distributed ID generator
PT OSC deadlock analysis
Générateur d'identification distribué basé sur redis
. elf . map . list . Hex file
(三)R语言的生物信息学入门——Function, data.frame, 简单DNA读取与分析
Redis 缓存更新策略,缓存穿透、雪崩、击穿问题
level16
Learning notes of JS variable scope and function