NRF24L01 module trouble #493
Replies: 20 comments
-
Posted at 2014-05-29 by @gfwilliams Hi, there's not actually a problem - the module just isn't designed to export the constants. In the module the variable C is defined, but it isn't assigned to exports.C so you can't use it directly. For simple tests it's probably best to just copy the value out of the module |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-29 by Andrey Thanks a lot, Gordon. I can't still establish connection between 2 NRF's. Sending
I've always got the Tx timeout subj. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-29 by Andrey Additionaly here is the registers content of master side:
Looks it ok, or maybe some things are wrong?
Gordon, does It mean than something is wrong with the SPI settings, or NRF module? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-02 by @gfwilliams I'd be pretty sure that SPI is working fine and that the modules are doing the right thing if you can read the register values. The Can you paste up the code that you used to initialise each module? One module needs to have one address, say:
and the other must have the opposite:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-02 by Andrey sure, I took code from the site: slave:
and master:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-02 by Andrey I thought also, that installed GYRO chip on the board, connected to spi1 can disturb to communication, but its CS signal is in "1" what means that it disabled. And the registers look ok, all but RX_ADDR_P1 and RX_ADDR_P0. Supply of the NRF boards are ok (3.0V took from the F3 boards). NRF's are close to each other. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-02 by @gfwilliams Ok, and you always get |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-02 by Andrey I always get "TX timeout" from NRF.prototype.send. I connected both boards, and seen no errors or something else on the slave side. :-( |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by Andrey Update: Changed both NRF's to new - the same "TX timeout" . |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams What was the number after TX timeout? I just updated the NRF module - can you try again? I'm not sure if it'll help, but it changes some of the default nrf register values, and also adds the ability to set the data rate. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by Andrey
the same. no numbers after TXtimeout |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by Andrey I tryed to connect nrf to SPI2 using |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams On the STM32F3Discovery board again? Honestly I don't know what to suggest - did you try the suggestions I sent in response to your PM? What responses did you get? It seems plenty of other people here are using this fine with the Espruino board so I really don't know what's going wrong in your case... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by Andrey ok, anyhow I'll keep trying to get it working. Perhaps I have to buy some logik analyser to investigate data traffic more detailed. Thanks for your time, Gordon. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams Just a thought: What about using software SPI?
That'll work on any pins, and should avoid any issues there may be with hardware as it uses just normal GPIO. If that doesn't work, maybe it's something as simple as a power supply issue? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-10 by Andrey Hi, Gordon, Hi all! Good day! It starts working! after
why it says "TX not recieved".... But at least it works! Thanks a lot!
not [2,0,0,02] as before. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-10 by @gfwilliams Great! Glad it's sorted! Not sure why you get the 'TX not received' either, but at least it's a good start! It could be it's an issue with SPI on the STM32F3 - I guess possible issues could be:
Hopefully someone with a storage scope or signal analyser might be able to figure out what's up... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-10 by Andrey I must say: after cleaning both boards >>> reset(); save() TX not received message has gone |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-10 by @gfwilliams great! does that happen even when using hardware spi? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-10 by Andrey no, hardware spi still doesn't work. soft spi works well. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-28 by Andrey
Hi all!
trying to connect NRF24L01 to my F3Discovery i use the sample
then try nrf.getAddr(nrf.C.RX_ADDR_P1) to check SPI communication and get:
why C is undefined and what wrong with It?
IDE v 0.44.0 espruino 1v63
I tryed "No minification" and "Simple Optimizations" in
communication Settings.
Beta Was this translation helpful? Give feedback.
All reactions