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

PCB change suggestion #11

Open
ljubomirb opened this issue Apr 29, 2020 · 3 comments
Open

PCB change suggestion #11

ljubomirb opened this issue Apr 29, 2020 · 3 comments

Comments

@ljubomirb
Copy link

Did you consider freeing pins PB8and PB9 of STM32, currently used by A9450 (move it to other pins) and then add and connect MCP2561-E/SN to it? I did not try this, but this particular STM32 has CAN there, all it needs is 3.3V tranceiver. This would raise price per board maybe 1USD max, but would allow CANBUS functionality. And that would be something. Think of connecting multiple motors in series, having simplified MB and such...
You may not even bother to add software support for it right away, just allow HW to have it as soon as possible, and include all libraries. The protocol can always be left undefined, so people can make do their own if they feel so.

@dzid26
Copy link
Contributor

dzid26 commented Jun 16, 2020

I think it's even easier because CAN is also on PA11 and PA12.
image

They seem to be unused:
image

Pin 31/32:
image

It's rotated 180deg, so they should be here:
image

On PCB that is here:
image

@dzid26
Copy link
Contributor

dzid26 commented Aug 11, 2020

Ok, I did it - I added CANbus to it.
I used tja1050 transceiver that I had on hand.
But I am not recommending doing it as it is pretty difficult and easy to damage the chip.

image
20200801_213834
But anyway, it works. If anyone decides to build a board with the transceiver, here is CAN setup code.

Additionally, I added 5V DCDC to power the board from V_mot - that's another board suggestion.
And an important TVS clamping diode between V_mot and GND. The reason is that if V_mot is disconnected and motors are driven by hand, there can be even 70V BEMF generated by the motor so it can damage DCDC converter or even A4950 that is rated 40V.

@Quas7
Copy link

Quas7 commented Nov 15, 2020

for everybody, who ever stumbles over this issue: the latest S42B v2 has a CAN interface now (no promo, just as an info).

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