当前位置:网站首页>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

  1. about NRF24L01, There should be two development boards and two NRF24L01, This is convenient for testing communication .
  2. It is strongly recommended to buy a multimeter , Using a multimeter to check the fault is simply like a tiger's wings .
  3. 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

原网站

版权声明
本文为[XlinliY. Zhang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060913475914.html