PiCAN FD Rev B 1.1 1. Introduction This PiCAN FD board provide CAN-Bus FD capability for the Raspberry Pi 3. It uses the Microchip MCP2517FD CAN FD controller with MCP2562FD CAN transceiver. Connections are made via DB9 or 4 way screw terminal. This board is also available with a 5v 1A SMPS that can power the Pi is well via the screw terminal or DB9 connector. A real time clock with battery back up (battery not included) is also on the board. Easy to install SocketCAN driver. Programming can be done in C or Python. 1.1. Features • Arbitration Bit Rate upto 1Mbps • Data Bit Rate up to 8Mbps • CAN FD Controller modes • Mixed CAN2.0B and CANFD mode • CAN2.0B mode • Conforms to ISO11898-1:2015 • High speed SPI Interface • CAN connection via standard 9-way sub-D connector or screw terminal • Compatible with OBDII cable • Solder bridge to set different configuration for DB9 connector • 120Ω terminator ready • Serial LCD ready • LED indicator • Four fixing holes, comply with Pi Hat standard •...
PiCAN FD Rev B 1.1 3. Software Installation It is best to start with a brand new Raspbian image. Download the latest from: https://www.raspberrypi.org/downloads/raspbian/ After first time boot up, do an update and upgrade first. sudo apt-get update sudo apt-get upgrade sudo reboot Now download the kernel patch from: https://www.dropbox.com/s/kxfter1hjomesnd/mcp2517fd-rasp1%2B2%2B3_18_Dec.tar?dl=0 Copy the file to the root directory then untar the files: sudo cp mcp2517fd-rasp1+2+3_18_Dec.tar / cd / sudo tar –xf mcp2517fd-rasp1+2+3_18_Dec Add the overlays by: sudo nano /boot/config.txt Add these lines to the end of file: dtparam=i2c_arm=on dtparam=spi=on dtoverlay=i2c-rtc,pcf8523 core_freq=250 kernel=ms7/zImage device_tree=ms7/bcm2710-rpi-3-b.dtb overlay_prefix=ms7/overlays/ dtoverlay=mcp2517fd-can0 dtparam=interrupt=25 dtparam=oscillator=40000000 dtparam=spimaxfrequency=20000000...
PiCAN FD Rev B 1.1 1.9. Installing CAN Utils Install the CAN utils by: apt-get install can-utils 1.10. Bring Up the Interface You can now bring the CAN interface up with CAN 2.0B at 500kbps: sudo /sbin/ip link set can0 up type can bitrate 500000 or CAN FD at 500kpbs / 2Mbps. sudo /sbin/ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on sample- point .8 dsample-point .8 Connect the PiCAN2 to your CAN network via screw terminal or DB9.
Need help?
Do you have a question about the RSP-PICAN FD and is the answer not in the manual?
Questions and answers