Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connecting nRF52840 DK to MC3672 Accelerometer

Hi, 

I'm new to building circuits with Nordic devices and am unsure about how to connect the MC3672 accelerometer: https://mcubemems.com/wp-content/uploads/2020/03/EV3672AB-Quick-Start-Guide-and-Demo-APS-045-0017v1.5.pdf to the nRF52840 DK via I2C/SPI. I'd like to read the accelerometer values on my Mac via BLE.

I'd appreciate guidance on which pins to use to connect my accelerometer to the DK board. I've looked through the documentation which states that you can choose your own pins for the I2C/SPI interface but it doesn't explain how to do so in a very beginner-friendly way.

I'd also appreciate if someone would kindly point me in the direction of some example code that reads external sensor values using I2C/SPI connections. I've seen examples involving 'slave' and 'master' configurations and have come to understand that (in my case) the slave is the accelerometer and the master is the nRF52840 but there are quite a few examples and I'm unsure as to which would be best suited for my project. I'd appreciate any advice on this too! 

Thanks for your help. 

Parents
  • Thanks for your reply.

    I'm thinking of using the nRF52840 dongle attached to my Mac for the PC side, then have the DK and accelerometer as a separate circuit as previously mentioned. The accelerometer data would be transferred to the dongle via BLE and then to my Mac through the USB port. I'd be grateful if you could point me to example code similar to this? I'm just not sure about where to begin in terms of interfacing the accelerometer with the DK, any examples or pieces of code would be appreciated! 

Reply
  • Thanks for your reply.

    I'm thinking of using the nRF52840 dongle attached to my Mac for the PC side, then have the DK and accelerometer as a separate circuit as previously mentioned. The accelerometer data would be transferred to the dongle via BLE and then to my Mac through the USB port. I'd be grateful if you could point me to example code similar to this? I'm just not sure about where to begin in terms of interfacing the accelerometer with the DK, any examples or pieces of code would be appreciated! 

Children
Related