CAN with CubeMars

Hello everyone!

I am trying to use the CAN protocol in order to communicate with a CubeMars motor. Did anyone work on a similar project and could help me with this? A fully working solution would be so nice!

I have:

  • Arduino Mega
  • Arduino Nano
  • ESP32 NodeMCU WROOM32
  • Arduino Nano ESP32
  • MCP2515 module
  • SN65HVD230 transceiver

I guess that with all that stuff it should be possible to implement something working fine!

Thanks a lot in advance!

You need two MCP2515 modules or something else that talks CAN. There is an almost identical question posted in the last 24 hours. What does the motor data sheet say. Post a link to the Motor technical data.

Why are two modules needed and not only one? You will find the CubeMars AK80-6 motor datasheet here: https://www.cubemars.com/images/file/20240102/1704163364483999.pdf
Thanks a lot in advance for your help!

HI, @manou002

Not sure if this will help;
https://www.reddit.com/r/Cubemars/comments/10nx9vn/arduino_sample_code_for_cubemars_servo_and_mit/

Google;

arduino cubemars

Tom.. :smiley: :+1: :coffee: :australia:

Hello @TomGeorge , thanks a lot for your help! I will try this as soon as I can :grinning:

Obviously you have not taken the time to read the CAN specification: http://esd.cs.ucr.edu/webres/can20.pdf. CAN uses an IFR (In Frame Response), that occurs during data transmission. The transmitter sends a recessive bit and the responder sends a dominate bit ACK (Acknowledge). If the transmitter does not receive the ACK bit it will try again until its counter counts out, it then quits. Also it is important to note that if the transmitter does not receive the ACK bit in the right time slot it simply shuts down and errors out. The motor could be your second node which I would suspect it is. Now that you have the needed information post an annotated schematic showing how you will wire this. Frizzes do not count..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.