Pages: [1]   Go Down
Author Topic: Arduino Due and CAN  (Read 733 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unlike Palliser http://forum.arduino.cc/index.php?topic=131096.0 I don't want to use the built in CAN-capability of the Arduino Dues uC but to use an external shield along with a existing library like
- http://forum.arduino.cc/index.php/topic,8730.0.html
- http://code.google.com/p/skpang/downloads/detail?name=Canbus_v1.zip or
- https://github.com/franksmicro/Arduino/tree/master/libraries/MCP2515

Since all existing Arduino CAN-Shields work at 5V I thought, that maybe I could use this one http://shop.embedded-projects.net/product/GNUBLIN_Module-CAN_(3.3V_Transceiver)?

Why I believe it should work
- works @ 3,3V
- uses the same CAN-Chip (MCP2515) and therefore
- uses SPI to communicate with uC

Why that solution might not work
- uses different CAN-Driver (SN65HVD230)
 -Any other reasons I didn't think of?

Any kind of suggestions and thoughts is appreciated!

Thank you very much in advance
« Last Edit: September 30, 2013, 03:46:21 pm by menecken2 » Logged

Earth
Offline Offline
Sr. Member
****
Karma: 12
Posts: 312
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now, I could be a slight bit biased but... why on Earth would you want to do this?! You want to ignore the fact that the processor has built-in support for canbus and use something else that won't ever quite be able to match the performance? You seem to realize that it will be a major pain to do what you're trying to do but still you persist in wanting to do it. So, is there some reason you can't use the built-in canbus support and just add the very small amount of extra hardware it takes to use what you've already got? I've used the canbus on the Due with just a cheap protoshield for Arduinos and a couple of chips. It really isn't that hard.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Since I will have all parts laying around anyways, I just wanted to try every alternative out (believe me, there are even stranger ones). I'm currently only generating possibilites. But thank you very much for your opinion! Maybe I just go for the protoshield ... smiley-wink
Logged

Germany
Offline Offline
Jr. Member
**
Karma: 0
Posts: 57
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Don't understand this, too. The SAM3X is a gorgeous machine with two CAN modules and 8 mailboxes each. Against all that comfort the stone-age old 2515 is really a weak machine (I have some PIC18F458 which has the exact same CAN engine).
And don't forget: It is by no means sure that your Uno code is running on the Due without additional, well, sometimes hair scuffling modfications.
Wether you use the 230, 231 or 234 CAN transceiver is almost unimportant. They only differ in minorities like chip enable line or loopbck mode. Even the MCP2551 (with some tweaks) can be used.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And don't forget: It is by no means sure that your Uno code is running on the Due without additional, well, sometimes hair scuffling modfications.
true! Forgot about that.

Thanks Transistorfips! I'm gonna start with that http://forum.arduino.cc/index.php?topic=131096.msg1019925#msg1019925 schematic.
« Last Edit: September 30, 2013, 03:58:42 pm by menecken2 » Logged

US
Offline Offline
Newbie
*
Karma: 1
Posts: 39
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes let's get more users, libraries, and contributors using the built in CAN controllers! The info and people on this forum can help you.
Logged

Dan - www.togglebit.net - Arduino DUE proto shields - Arduino DUE CAN shields

Pages: [1]   Go Up
Jump to: