#I have a RP2040 and GIM4310 motor with

1 messages · Page 1 of 1 (latest)

timid sun
#

The chip on the driver is a STSPIN32G4 btw, if that helps. It has an integrated CAN.

past knot
#

looks like transmit errors, can you post a photo of the wiring?

#

is this an RP2040 Feather with an MCP2515 FeatherWing?

timid sun
#

I'm powering the motor with a 24V supply, the RP2040 over usb-c from my macbook.

past knot
#

does the motor driver have a termination switch (turned on?)

timid sun
#

There's a red light glowing inside of it, I can't find the datasheet for the driver unfortunately.

#

I have asked the supplier

past knot
#

I know nothing about the motor/driver

#

do you have another CAN setup you can test with, for comparion?

timid sun
#

Does the transmit error mean it could be the driver not acking the message? Or does it imply the RP2040 is misbehaving?

I don't have another CAN setup. I have another motor, I will try that one now.

past knot
#

I was just thinking if you had another CAN-capable MCU, you could test code between those two to prove out the code, isolating the motor driver (or not) as the issue.

#

but testing other motor may yield a clue too

#

(I'm actually working on CAN bus today too, but having an entirely different issue)

timid sun
#

Same result with the new motor. Maybe I will try PWM tomorrow and if that works, order a few extra bits - the supplier has a usb-can converter, and I might get a RS485 wing for this board and try communicate over that. I will think about it.

past knot
#

you could also try to listen passively and see if the motor driver is putting anything on the bus

timid sun
#

dumb q - but it is correct to connect pins with canh together and canl together, I don't have to cross over or anything?

And does the message ID make a difference at all?

past knot
#

CANH-to-CANH, and CANL-to-CANL, common ground

timid sun
#

any value in hooking a scope up the canh/canl and see if the motor is doing anything?

past knot
#

ID affects filter matching when listening, each node has to be unique ID

#

(ID also affects priority on the bus, but with two nodes, not an issue)

timid sun
#

The motor ID is by default 1 according to the supplier, would I expect it to send a "hello" message when I power it up?

past knot
#

I haven't done silent, but that looks OK

#

maybe try debug=True and see what shows up

#

I haven't tried any commercial CAN devices, so not sure about behavior... my project I have total control of all nodes so not much help there

#

looks like it's fixed baurate at 1_000_000

timid sun
#

SMC has been fairly responsive via email and sent me a windows app I can apparently use to talk to the motor over a usb-ttl adapter. I will try that and a few other things out tomorrow I think, if I can at least get the motor turning I will consider that a win!

past knot
#

Good luck! I'm not sure what else to suggest.

timid sun
#

honestly helpful just to have someone responding to my ramblings 🙂

#

omg the baud rate is 500k lol

past knot
#

the motor specs said 1M

#

d'oh