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

as5601 integrated to nrf51822

Hi alll,

I wanted to use a encoder for measuring rotary motions. so i kept a magnetic encoder named AS5601 which uses I2C communication and i have never done anything on this communication protocol before.

Any help for code is appreciated.

Thanks in advance.

Parents
  • Have a look at the TWI examples in our SDKs. Start with the TWI scanner example and verify that you can successfully communicate with your sensor. Then you can move on and transfer actual useful data. But as @endnode suggests, you will have to do some reading. You also need to dive into the AS5601's datasheet and understand how to use it and read its registers.

    Note also that the nRF51 has a built in QDEC in hardware that you might be able to use instead of going through TWI.

Reply
  • Have a look at the TWI examples in our SDKs. Start with the TWI scanner example and verify that you can successfully communicate with your sensor. Then you can move on and transfer actual useful data. But as @endnode suggests, you will have to do some reading. You also need to dive into the AS5601's datasheet and understand how to use it and read its registers.

    Note also that the nRF51 has a built in QDEC in hardware that you might be able to use instead of going through TWI.

Children
No Data
Related