autowp / arduino-canhacker

CanHacker (lawicel) CAN adapter on Arduino + MCP2515
MIT License
369 stars 114 forks source link

No data over CAN #17

Open dittohead opened 2 years ago

dittohead commented 2 years ago

Hello. Use two Arduinos: leonardo and mega 2560 with similar shield

For Leonardo in sketch change pins assignment to:

const int SPI_CS_PIN = 9;
const int INT_PIN = 2;

CANHacker successfully connect to arduino, seeing FW version, but there no data from CAN on any speed. Check arduino serial monitor - nothing Sketch compiled with Arduino IDE 1.8.19

Check this issue, but already have 16MHz oscillator.

73jn commented 2 years ago

Same here

vesrah commented 1 year ago

I had the same issue with the Seeed shield, this ended up working for me: https://github.com/Seeed-Studio/Seeed_Arduino_CAN/tree/master/examples/canbus-monitor

munkun46 commented 6 months ago

https://github.com/Seeed-Studio/Seeed_Arduino_CAN/blob/master/examples/canbus-monitor/canbus-monitor.ino

this works