GithubHelp home page GithubHelp logo

circularbuffer / as5047p Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 5.47 MB

Generic driver for AMS AS5047P magnetic encoder

License: MIT License

C 100.00%
arduino arduino-library as5047p as5047 encoder magnetic-encoder nucleo-f429zi nucleo stm32f4 teensy

as5047p's Issues

Getting Error3: Parity bit error occurred in Rx frame

Hello CircularBuffer,

I am trying to use your library for the AS5047P and I am running into a bit of a problem. I get the error, "Error 3: Parity bit error occurred in Rx frame".

I am trying to use this with an STM32G431RB Nucleo-64 dev board and STM32CubeIDE 1.6.1. I have the sensor connected to SPI1 and I have the VCP setup to debug as in your example. I have walked through your instructions of setting up the 5 functions and also configuring the SPI. In my main.c I then call AS5047P_Init(&encInstanceA, 0);, AS5047P_SetFactorySettings(&encInstanceA); and AS5047P_SetZeroPosition(&encInstanceA); to set the sensor up. My logic analyzer shows that I am both transmitting data from the MCU and receiving responses from the sensor. But as soon as I call encPositionA = AS5047P_ReadPosition(&encInstanceA, AS5047P_OPT_ENABLED); I get Error 3 and the result of encPositionA is -1. Everything complies and there are no build errors.

Would you have an idea of what I am doing wrong? I feel like this is a simple fix, but I just can't see it. Any hints of help would be appreciated.

Sincerely,

Dylan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.