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

GY-271 is a 3-axis electronic compass with magnetic field sensor , I need to know how to get the 3 axis position readings with nrf52840 DK, where can i get the code. i'm using segger embedded studio.

GY-271 HMC5883L module for getting the position.I need to get the coordinates of the x,y,z axis exactly. i need the code and the pins to connect.

  • Hi,

     

    We do not have a library for that specific sensor in our SDK, so you'll have to implement that handling manually. You can check with the supplier if they have some generic code that you can port.

    A generic TWI sample for the nRF is available in the SDK. You are free to connect TWI sensors to any available GPIOs, as the pin crossbar is configurable.

     

    Kind regards,

    Håkon

Related