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

CAN communication OpenCR #296

Open
kaif-46 opened this issue Jan 31, 2022 · 4 comments
Open

CAN communication OpenCR #296

kaif-46 opened this issue Jan 31, 2022 · 4 comments

Comments

@kaif-46
Copy link

kaif-46 commented Jan 31, 2022

@ROBOTIS-David @ROBOTIS-Will @ROBOTIS-Kayman How can I adjust the frequency of CAN communication in OpenCR1.0 using the Arduino library?

@ROBOTIS-Will
Copy link
Contributor

@kaif-46
Please refer to the example in OpenCR.
https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/OpenCR/examples/10.%20Etc/CAN/canTxRxByte/canTxRxByte.ino#L64

Supported Baudrates are

 * BAUDRATE :
 *   CAN_BAUD_125K
 *   CAN_BAUD_250K
 *   CAN_BAUD_500K
 *   CAN_BAUD_1000K

@kaif-46
Copy link
Author

kaif-46 commented Feb 3, 2022

@ROBOTIS-Will
I have taken a look at it but along with the baud rater I even need to set the frequency of communication as my motor supports 8MHZ communication only.
I have done the same thing using Arduino by using an external CAN Module(MCP2515) and the mcp2515.h or mcp2515_can.h libraries.

@ROBOTIS-Will
Copy link
Contributor

@kaif-46
STM32F7 and MCP2515 both support up to 1Mbps CAN bus.
Thanks.

@kaif-46
Copy link
Author

kaif-46 commented Feb 3, 2022

@ROBOTIS-Will
Thank you for the information but I need to know how can I bring down the frequency to 8MHz by using the CAN.h library used in the examples. In the libraries I mentioned above there is a feature to set the frequency so I need to do the same thing with OpenCR

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

2 participants