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

Improvement idea: CAN bus #6

Open
vortex505 opened this issue Jul 2, 2022 · 2 comments
Open

Improvement idea: CAN bus #6

vortex505 opened this issue Jul 2, 2022 · 2 comments

Comments

@vortex505
Copy link

vortex505 commented Jul 2, 2022

Great board! CAN bus is commonly used with industrial motor drives and is robust to noise inevitably produced in robotic systems. Consider the MCP2515 SPI CAN controller and a 3.3V CAN transceiver. Perhaps this is suitable for a small daughter card using the 3.3V on the SPI header.

With a dual core MCU, you might consider running CANopen device code on one core while the other is tasked with controlling the motor.

@sequoia-hope
Copy link
Contributor

Thank you! Yes we will make a version with CAN bus. A daughter board would also be interesting. I wanted to keep our initial version simple (and compact) and go from there, and it seems CAN raises the cost a bit. But we will make a version specific to our farm robot with CAN and some other changes which could be back ported to a generic board.
I am not familiar with CANopen but I will take a look!

@runger1101001
Copy link

There's also a couple of CAN implementations for SimpleFOC... unfortunately the RP2040 doesn't have a CAN peripheral? But it can do it via PIO, it seems. Other option is to use an SPI based controller, but those are more expensive than simple transceivers, and would require another driver layer.

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