circularbuffer / as5047p Goto Github PK
View Code? Open in Web Editor NEWGeneric driver for AMS AS5047P magnetic encoder
License: MIT License
Generic driver for AMS AS5047P magnetic encoder
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.