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

how to use nRF51822 SDK for building connection between nRF51822 & ADXL345

I wanna build project nRF51822 using ADXL345 for accelerometer sensor that program using eclipse or keil. can you teach me how to build using nRF51822 SDK version 6 or higher... please teach me from beginning. I am newbie for this Bluetooth low energy project..

what I want it can communicate I2C or SPI from ADXL345 and that can view on serial monitor (UART) & be looked at nRF UART mobile app... please help very soon..

Parents
  • Hi,

    Did you take a look at the driver I linked to here ?

    Download SDK 12.3 , and start with the SPI master example located the folder <SDK_InstallFolder>\examples\peripheral\spi. Then add the drivers to your project, and modify the main.c as shown in the added main.c in the post I linked to.

    Is this a custom board? or the nRF51-DK?

Reply
  • Hi,

    Did you take a look at the driver I linked to here ?

    Download SDK 12.3 , and start with the SPI master example located the folder <SDK_InstallFolder>\examples\peripheral\spi. Then add the drivers to your project, and modify the main.c as shown in the added main.c in the post I linked to.

    Is this a custom board? or the nRF51-DK?

Children
  • thank you for your answer sir, I'm using custom board. are there any tutorial implement this sdk to code using any IDE platform such as keil MDK ARM4, eclipse or mbed online compiler.. because I still confuse to used it. but I have tried connect using I2C communication that connect SCL to P0_7 & SDA to P0_30. this link my codeI2C ADXL345 to nRF51822, and here it's my new question post new post.. but anyway many thanks to answer my question