Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SPI on SP Racing F3 flight controller
#1
I'm wondering how to use (soft)SPI functionality of my cleanflight flight controller. I want to connect a NRF24L01 module. I can find some references to it in the Cleanflight code, as well as some discussions about it. However, I can't find how I should enable or use this. 

Anybody knows how to do this?
Reply
Login to remove this ad | Register Here
#2
There is no SPI bus available on the SPR F3. There is no such thing as software SPI implemented in the code.

What are you trying to accomplish? Even if you did write your own custom code to implement SPI by bit-banging some unused pins, I doubt you would be able to achieve any of the higher data rates that the NRF24L01 offers.
Reply
#3
(27-Apr-2017, 11:09 AM)unseen Wrote: There is no SPI bus available on the SPR F3. There is no such thing as software SPI implemented in the code.

Hmm, I might misunderstand these features in the CLI dump then. Plus I saw a few references in the cleanflight code to NRF24L01.

Code:
...
feature -RX_SPI
feature -SOFTSPI
...


(27-Apr-2017, 11:09 AM)unseen Wrote: What are you trying to accomplish? Even if you did write your own custom code to implement SPI by bit-banging some unused pins, I doubt you would be able to achieve any of the higher data rates that the NRF24L01 offers.

I am actually trying to build a DIY transmitter and receiver, using arduinos and nrf24l01 modules. I guess this is possible using PWM output with an arduino as receiver anyway, but then I saw some references to direct use of the nrf24l01 on a flight controller. Could not find further info about it though.
Reply
#4
Hmm....it would seem there is some support for SPI based receivers in Betaflight, but without a more lengthy analysis, I can't tell you which boards might let you use this feature easily or if it is actually supported.

The SPRacing F3 does not include this code and the only defined SPI interface for this board is SPI bus 2 which is used to access the onboard flash.

There may be other flight controllers out there that would be more appropriate for what you are trying to do and I'm fairly sure you'll need to use a hardware SPI bus if you want to use the receiver chip's 2Mb data rate.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help No response flight controller with receiver Crazyart 1 237 09-Jan-2024, 12:53 AM
Last Post: Crazyart
  BetaFPV F4 FR 2S flight controller issues. itsmerandy 30 1,675 02-Nov-2023, 09:01 AM
Last Post: SnowLeopardFPV
  Radiolink Crossflight controller NHSA 7 913 07-Oct-2023, 06:44 PM
Last Post: SnowLeopardFPV
  Help JHEMCU GF16 F405 Flight Controller sdellava 4 1,702 25-Aug-2023, 08:57 AM
Last Post: PDK
  Help Flight Controller (FC) buzzing, humming high pitch noise sound qcay12 1 386 31-Jul-2023, 11:03 PM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here