Suggest adding support for Feather M4 CAN Express to CANbus examples

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
johnsondavies
 
Posts: 51
Joined: Wed Sep 06, 2017 11:24 am

Suggest adding support for Feather M4 CAN Express to CANbus examples

Post by johnsondavies »

I've been experimenting with using the CAN_Adafruit_Fork library with the Feather M4 CAN Express board.

I was puzzling over why the CANSender and CANReceiver examples wouldn't work, until I realised that you have to configure the transceiver on the Feather M4 CAN Express board.

I suggest adding the following in setup() for the two examples so other users don't have the same problem:

Code: Select all

#if defined(ARDUINO_FEATHER_M4_CAN)
  pinMode(PIN_CAN_STANDBY, OUTPUT);
  digitalWrite(PIN_CAN_STANDBY, false); // turn off STANDBY
  pinMode(PIN_CAN_BOOSTEN, OUTPUT);
  digitalWrite(PIN_CAN_BOOSTEN, true); // turn on booster
#endif

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Suggest adding support for Feather M4 CAN Express to CANbus examples

Post by Franklin97355 »

Thanks, I'll let the author know of your suggestion.

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Suggest adding support for Feather M4 CAN Express to CANbus examples

Post by adafruit_support_carter »

Just to check, you're following this guide page?
https://learn.adafruit.com/adafruit-fea ... n-examples
Which is having you use this library?
https://github.com/adafruit/arduino-CAN

If so, the issue is out-of-date documentation.

Try this library and the example there instead:
https://github.com/adafruit/Adafruit_CAN

User avatar
johnsondavies
 
Posts: 51
Joined: Wed Sep 06, 2017 11:24 am

Re: Suggest adding support for Feather M4 CAN Express to CANbus examples

Post by johnsondavies »

Try this library and the example there instead:
https://github.com/adafruit/Adafruit_CAN
I've already solved the problem, thanks.

I suggest merging:

https://github.com/adafruit/arduino-CAN

and:

https://github.com/adafruit/Adafruit_CAN

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Suggest adding support for Feather M4 CAN Express to CANbus examples

Post by adafruit_support_carter »

Cool. Glad you got it working.

There's been some recent work to refactor the CAN libraries. This library will actually be archived:
https://github.com/adafruit/arduino-CAN

The new library is:
https://github.com/adafruit/Adafruit_CAN

The Learn guide needs to be updated for these changes. Sorry for the confusion.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”