Author Topic: NRF24L01+ issue after connecting Logic Analyser  (Read 1630 times)

0 Members and 1 Guest are viewing this topic.

Offline ehsanitoTopic starter

  • Newbie
  • Posts: 2
  • Country: es
NRF24L01+ issue after connecting Logic Analyser
« on: June 04, 2019, 11:12:21 am »
Hello there;

I have a weird problem. My NRF24L01+ Module work fine but as soon as I connect the logic analyzer probes to my circuit, the register values that are shown via UART change to nonsense.

any idea.

Thank you
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #1 on: June 04, 2019, 11:25:20 am »
NRF24L01 does not have UART serial interface but SPI. Maybe that's why? You have to connect and configure logic analyzer in SPI mode.
 

Offline ehsanitoTopic starter

  • Newbie
  • Posts: 2
  • Country: es
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #2 on: June 04, 2019, 01:40:56 pm »
Maybe my poor English made you think that I think the NRF24L01+ has UART.

I'm using a MCU to read and write values to the NRF24 registers and I'm using the MCU's UART to monitor the values. When I have only the MCU and the NRF24 module connected, everything works fine but as soon as I connect the probes of my PC based logic analyzer, the values that I receive on the MCU from NRF24 module change to something that don't seem to be correct.
« Last Edit: June 04, 2019, 01:42:36 pm by ehsanito »
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #3 on: June 04, 2019, 01:54:56 pm »
Your English is fine, no worries. It could be ground loop noise. While using PC logic analyzer - try to power MCU+NRF24 from battery (like 2xAA) or PC USB. If does not help - then it could be some circuit error or just faulty logic analyzer? It will help if you show schematics, logic analyzer used, description/photo how you connect it all together.
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2594
  • Country: us
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #4 on: June 04, 2019, 02:45:47 pm »
What MCU are you using?  Specifically, what power supply voltage?

When I was testing my NRF24L01+, I used a pic16f877a at 5V.  When, I powered the NRF24L01+ with 3.3V everything worked.  However at 3V, it stopped.  I believe the problem was that at 3V the logic high level was too low to be recognized as such.

Maybe just attaching your probes presents too much of a load if you logic levels are on the edge?  If you MCU is running at 3.3V, this is probably not your problem.
 
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3556
  • Country: nl
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #5 on: June 04, 2019, 08:58:39 pm »
First:
I do not like the nRF24L01+ very much.
It has a very weird and illogical set of features (such as the 6 pipes) that are more of a nuisanse and hindrance to use it in a sensible way then an asset.

Then there is the "+" in the type number. Without the "+" it is a very much different chip with other (older) features.
There are also clones floating around Ali / Ebay / China, which do (often) work, but are arount 99.9% compatible.
The most used 8-pin breakout board for these chips do not have enough decoupling capacitance. Reliability and range can be improved by soldering more capacitance directly on the connector pins.

As of your Logic Analyser question:
first make sure you have proper ground connectons between all your (bread?) -boards, power supplies, and development / programming / and Logic Analyer boards.

Always connect the GND connections first between all applicable sub circuits.

15 cm long fly wires do not make a good GND connection.
15 cm long fly wires do not make a good GND connection.

If you then still experence data issues, it is time to get an oscilloscope and check the signal integrity.

Also agree with MarkF. From what I remember nRF24... works for 3V3, but not much under 3V. It does not have a very wide operating voltage range such as most uC's do.

A maybe related issue that I have encountered a few times, is that if you use a (small) single power supply for multiple boards, and you hot wire a new board in your setup, that the buffer capacitance on such a board can momentarily dip the powersupply below the operating voltage of the other boards it is connected to. Even if it's for only a ms, it is desastrous for any chip that has a flipflop in it.





 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2594
  • Country: us
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #6 on: June 05, 2019, 12:45:13 am »
Doctorandus_P would you recommend a different module?

I have a bunch of nRF24L01+ modules but only tested as far as get two of them to talk to each other.
I want to have one mastar and four slaves.  The master will gather data from the slaves.
What I'm doing is to have the master connected to a PC and each slave a wireless throttle for HO Model Railroad speed control.
 

Offline TK

  • Super Contributor
  • ***
  • Posts: 1722
  • Country: us
  • I am a Systems Analyst who plays with Electronics
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #7 on: June 05, 2019, 02:18:36 am »
I recommend using the RFM69HCW.  There is an excellent Arduino Library written by Felix at LowPowerLab, but the code can be easily migrated to other microcontroller platforms (MSP430, STM32, AVR)

EDIT: corrected name of the RF tranceiver module
« Last Edit: June 05, 2019, 10:02:04 am by TK »
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2594
  • Country: us
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #8 on: June 05, 2019, 02:23:58 am »
I recommend using the HCM69HCW.  There is an excellent Arduino Library written by Felix at LowPowerLab, but the code can be easily migrated to other microcontroller platforms (MSP430, STM32, AVR)
What is it?   Google search doesn't return any results.

Edit-  I'm using a pic18f2620
« Last Edit: June 05, 2019, 02:25:52 am by MarkF »
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #9 on: June 05, 2019, 08:41:18 am »
I do not like the nRF24L01+ very much.

Sure. It is comparably old chip, old design. People get emotional or fall in love with one chip but do not like another. That's OK. There's nothing wrong with (genuine) nRF24L01+ - if you use it for simple near range applications and use your head properly when select operating channel/frequency. I do not think OP have to change RF chip just because he can't get SPI signal integrity right. Most likely it is not chip to blame here.

Quote
The most used 8-pin breakout board for these chips do not have enough decoupling capacitance. Reliability and range can be improved by soldering more capacitance directly on the connector pins.

Good point. For testing purposes add some decoupling capacitor 0.47uF and electrolytic 47..100uF to module.

Quote
Also agree with MarkF. From what I remember nRF24... works for 3V3, but not much under 3V.

This is where I disagree. Chip (genuine one) does work at low voltages well, but it's output TX power, thus transmit range decreases dramatically. This may lead to conclusion that chip does not work.

For those who are looking for 2.4GHz chip, I would suggest Ti CC-series:
http://www.ti.com/product/CC2500

Hobbyists often use sub-1GHz transceiver:
http://www.ti.com/product/CC110L
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1428
  • Country: us
  • Very dangerous - may attack at any time
Re: NRF24L01+ issue after connecting Logic Analyser
« Reply #10 on: June 05, 2019, 08:45:59 am »
I recommend using the HCM69HCW.  There is an excellent Arduino Library written by Felix at LowPowerLab, but the code can be easily migrated to other microcontroller platforms (MSP430, STM32, AVR)
What is it?   Google search doesn't return any results.

I think the correct part number is  RFM69HCW
 
The following users thanked this post: MarkF, TK


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf