-
1Preparing the CAN module
- Before you do anything else, remove the 120r resistor from between CanH and CanL. We're going to mount the module face down on the back of the proto board and then it'll be too late.
- Have a look at the back of the module and see if the markings are opposite to what they should be. If they are, just erase them with a felt tip pen; maybe save yourself some head scratching later.
-
2Preparing the proto board
To transfer a circuit to a protoboard, I draw it in up in Inkscape and print it on a clear label and stick that on the component side of the board. If you want to try it, use the first image below.
I've also uploaded the Inkscape file. Even if you're not familiar with Inkscape, you can play around with the different layers, and copy and paste pads and traces.
In any case, you can use the second image as a guide.
Also, if you're going to drill the four mounting holes, this is the time to do it.
The horizontal lines are just for reference. They match the traces on the copper side.
-
3Add the jumper wires​
Solder in the six jumper wires and trim the tails. You can just use resistor leads for these.
-
4Add the right-angle headers
Solder in the dual row right-angle headers from the top of the board.
-
5Add the header for the CAN module
Solder in the 6-pin straight header for the CAN module, long ends down. The header is shown in blue. Go easy on the solder here, and do not trim the tails. And do not solder in the CAN module.
On the top of the board, cut off the short ends of the pins flush with the plastic spacers, so the header will fit under edge of the blue pill:
At this point everything should look like this:
-
6Add the processor board
Drop in the pins for the processor board, as shown:
Fit the processor board on the pins:
-
7Add the CAN module
Solder in the can module on the copper side of the board, so it looks like this:
If you test fit the CAN module, you'll see where you need to trim back a couple of the RA header solder tails.
And that's it; you're done.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Yeah, I was hoping to find something more like an arduino library since that's how I do most of my work right now... again, I haven't looked for the library in a long time though
Are you sure? yes | no
Just like rx7man, I'm interested in the firmware. Did you use the ST HAL or LL drivers? Also, did you implement CANopen or you used your own message protocol?
Are you sure? yes | no
I'm happy to answer any questions at all.
Are you sure? yes | no
I'll look forward to the software side of it.. I've been thinking of using one of these blue pills for CAN work already, haven't found the library, though I haven't looked too hard either
Are you sure? yes | no
ST provides a HAL and low-level drivers for CAN. AFAIK these give you access to the physical layer of CAN. You can find these if you use STM32CubeIDE
Are you sure? yes | no