Longan-Labs / Arduino_CAN_BUS_MCP2515

Arduino CAN Bus library, MCP2515/MCP2551
https://www.longan-labs.cc/
MIT License
125 stars 372 forks source link

Speed selection is incorrect. #16

Closed dapperfu closed 7 years ago

dapperfu commented 7 years ago

I took my "non-working" into work and tested it with my Kvaser and Vector hardware.

Setting 500 kbps on the Arduino is actually transmitting at 250 kbps.

On both an Arduino Uno R3 with SeeedStudio CAN Shield v1.0 and an Arduino Nano w/standalone SPI CAN board

dapperfu commented 7 years ago

After further digging it looks like my CAN_BUS_SHIELD has an 8MHz oscillator. I will use one of the forks that have accounted for this.