This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to transfer data from nRF52840DK to raspberry pi 4 without deploying bluetooth ble5 ?

hello

i want to send the data from my 5 of nRF52840DK to 1 of raspberry pi4  , i known the nRF52840dk has built-in bluetooth ble5 and raspberry pi 4 also integrate bluetooth ble5 as well

BUT i do not want to send data with the bluetooth channel ,**  i want to transfer or send data from 5 nRF52840dk to 1 raspberry pi 4  WITH CABLE ** via GPIO pin or UART or SPI , i do not  know much about those , 

 how to send data from 5 nrf52840dk to 1 raspberry pi 4 with cable connection ?

Parents
  • Hi

    On the Raspberry Pi side of things you'll have to find code yourself, but on the nRF side we do indeed have for example UART and SPI that can help you transmit data over a wired connection. From your previous cases I assume you're looking at using the nRF5 SDK, so here are some links to the UART and SPI peripheral example projects from the nRF5 SDK. It's up to you which one you'd like to use, but the SPI would allow for the highest throughput.

    Best regards,

    Simon

  • thanks ,

    after getting your answer , i did research on the internet , about the method to send data between I2C  or UART or SPI , i found that the SPI is the best way in order to send data  .

    SPI is superior in speed compared to I2C. Its push-pull drivers offer enhanced speed and signal integrity and its full-duplex support means master and slave devices can send data at the same time, allowing for even quicker data exchanges. While SPI has a speed advantage, it is more difficult and costlier to add multiple slave devices to the bus. This is because each slave needs its own slave select line, so the number of wires needed to communicate increases with each device.

    i found the youtube video about how to learn SPI data transferring

    https://www.youtube.com/watch?v=RRUH_VHNocU&list=PLiKJljyEUlZj4z8RqJKTaoMpSqjLdBGO4&index=40

    however my case need to send data from ( 5 units of nRF52840DK ) to  ( one of raspberry pi 4 )

    i have 3 questions below to ask you

    question 1 ---> i think in term of master and slave  , my 5 nrf52840dk should be as 5 slaves and my one master is one raspberry pi 4 , am i understanding correctly ?

    question 2 ---> is it still ok to send data with SPI ** IN MY CASE  ** that need to send data from 5 nrf52840dk to one raspberry pi 4 ??  or need to use other way as uart or i2c instead ?

    question 3 --->  regarding to the learning spi video from youtube , do you have other guideline video that teach how to deploy spi of nrf52840dk ?

Reply
  • thanks ,

    after getting your answer , i did research on the internet , about the method to send data between I2C  or UART or SPI , i found that the SPI is the best way in order to send data  .

    SPI is superior in speed compared to I2C. Its push-pull drivers offer enhanced speed and signal integrity and its full-duplex support means master and slave devices can send data at the same time, allowing for even quicker data exchanges. While SPI has a speed advantage, it is more difficult and costlier to add multiple slave devices to the bus. This is because each slave needs its own slave select line, so the number of wires needed to communicate increases with each device.

    i found the youtube video about how to learn SPI data transferring

    https://www.youtube.com/watch?v=RRUH_VHNocU&list=PLiKJljyEUlZj4z8RqJKTaoMpSqjLdBGO4&index=40

    however my case need to send data from ( 5 units of nRF52840DK ) to  ( one of raspberry pi 4 )

    i have 3 questions below to ask you

    question 1 ---> i think in term of master and slave  , my 5 nrf52840dk should be as 5 slaves and my one master is one raspberry pi 4 , am i understanding correctly ?

    question 2 ---> is it still ok to send data with SPI ** IN MY CASE  ** that need to send data from 5 nrf52840dk to one raspberry pi 4 ??  or need to use other way as uart or i2c instead ?

    question 3 --->  regarding to the learning spi video from youtube , do you have other guideline video that teach how to deploy spi of nrf52840dk ?

Children
No Data
Related