New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AS5048A encoder issue #478
Comments
Hi! How do you make the CS pin to be high? |
In the Axis::setup() function I add the CS pin configuration code to make it to high. Just configure the GPIO and write high to it. |
Hi Zhaotianzheng. Which firmware branch are you using? Devel, Master, rc-v0.5.1? |
A hotfix has been applied to
This should only be necessary for the first time, because we don't drive the GPIOs high unless the axis is configured for absolute SPI. |
I used the old version, now with the rc-v0.5.1 I have no problem. Thanks. |
Thank you, I didn't use the rc-v0.5.1. Now I have no lock up problem with the new version. |
1.When I am using the SPI, I find that it will make drv8301 can not be configured and hault in motor configuration stage. I am currently make the cs pin to be high before moter configuration but I don't think this is a good idea. So I want to know if there is a better way to use SPI?
2. After it can use, I find I have to configure the cpr to 2^14 - 1 to make it work, otherwise it will give a strange vel_esitimate and get the overspeed error. So I think maybe the cpr should be 2^14 -1 or just something I did is not right.
Thank you for your helping.
The text was updated successfully, but these errors were encountered: