This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Which examples to get started with for SPI-to-central and SPI-to-peripheral

Hello, a couple of get-me-pointed-in-the-right-direction questions, if you don't mind.

I plan on creating a system with an accelerometer that talks SPI to my Nordic nRF52833, which connects as a peripheral to another nRF52833 central, which talks over SPI to my microprocessor.

What examples should I get started with for [BLE peripheral and local SPI], and also [BLE central and local SPI].

Also, I'm not sure if there is a standard set of characteristics that are suitable for accelerometer data... can you point me to some instructions for how to create a custom set of characteristics, complementary both on the central and peripheral and peripheral side?  I figure this will start with one of your example projects or templates.

Thanks!!

  • Hi,

    There is two examples that are relevant for you project. 

    1. The first example shows how to communicate with an external device with the SPI interface. 
    2. The second example shows how to transfer data between two BLE devices. We have an example that implements the peripheral role and another example that implements the central role

    The last step would be to merge these two examples together.

    can you point me to some instructions for how to create a custom set of characteristics, complementary both on the central and peripheral and peripheral side?  I figure this will start with one of your example projects or templates.

     See our tutorial on how to make a custom service here.

    regards

    Jared

Related