This is a simple example using an Arduino to display on a I²C LCD some information coming from the CAN bus over SPI with a MCP2515 controller, and sending CAN frames when the buttons are pressed.
- Arduino
- Grove RGB backlight: http://wiki.seeedstudio.com/Grove-LCD_RGB_Backlight/
- CAN shield: https://www.sparkfun.com/products/13262
- https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight
- https://github.com/sparkfun/SparkFun_CAN-Bus_Arduino_Library
Below are some examples of can-utils calls to send CAN frames to the Arduino through the can0 device of a Linux host.
$ cansend can0 100#0113$ cansend can0 200#48656c6c6f20776f
$ cansend can0 201#726c642120202020$ cansend can0 300#00ff00$ candump can0
can0 400 [8] 00 01 02 03 04 05 06 07
can0 404 [8] 00 01 02 03 04 05 06 07
...