Skip to content
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

test the microdrive board #8

Open
dvogureckiy99 opened this issue Jul 21, 2022 · 5 comments
Open

test the microdrive board #8

dvogureckiy99 opened this issue Jul 21, 2022 · 5 comments

Comments

@dvogureckiy99
Copy link

dvogureckiy99 commented Jul 21, 2022

Сode for microdrive for calibrating motors doesn't work.
I try run example.py from the masterboard-sdk directlya and motor merely a little twitching back and forth. At the same time, I want to note that after flashing the microdriver at the first power supply, no calibration was visible, but in debugging mode I see that function for calibrating HAL_cal invoked, but there are red line on the left edge.

@dvogureckiy99
Copy link
Author

Thank Thomas Flayols, switching two phases on the motor helped me. But whether I reverse phase order programmaticly?

@luator
Copy link
Member

luator commented Jul 22, 2022

Hello, I'm not sure if I understand your question correctly. Are you asking if it is possible to switch the motor phases in the software? As far as I know there is know option for this, the phases have to be connected in the right order physically.

@dvogureckiy99
Copy link
Author

dvogureckiy99 commented Jul 22, 2022

Hello, I'm not sure if I understand your question correctly. Are you asking if it is possible to switch the motor phases in the software? As far as I know there is know option for this, the phases have to be connected in the right order physically.

Yes, I already understood it,but on many of an other boards, like Odrive, there is exist this functionality. Maybe there is possibility to implement it on this board?

@thomasfla
Copy link
Member

Hi,
Sorry, we did not implement phases switch programmatically.
Here is an element of why:
The way we communicate with the boards is by exchanging a fixed shape, compact and fast SPI bidirectional transaction. We don't have a flexible way to reprogram the settings of the board, such as: motor R and L, number of pole pairs, phase order etc..
Instead, those parameters are set at compile time before flashing the boards.
This motor board was intended to be tight to a motor type, and is not as generic as Odrive for example.
On the plus side, we have a very well optimized communication to do real time control at high frequency.

We are developing a new electronic (OMODRI) that will make life easier to implement other communication buses for configuration etc.

We have no plan to implement this features on this electronic. We think that identifying once the phase order and marking the wire is not a huge constrained for ODRI robot at this time.

@dvogureckiy99
Copy link
Author

dvogureckiy99 commented Jul 22, 2022

Thank you for answer.
Can you explain where or from where (which files) I can set up, change this parameters?
But I saw that there is possibility to set up boards parameters via CAN, is it real?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants