Advertisement

Quick Links

Product name
Model number
Manufacturer
PiCAN FD Rev B 1.1
PiCAN FD with RTC
USER GUIDE V1.1
PICAN FD CAN-Bus Board for Raspberry Pi 3
RSP-PICAN FD
SK Pang Electronics Ltd
SK Pang Electronics Ltd © 2017
www.skpang.co.uk
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RSP-PICAN FD and is the answer not in the manual?

Questions and answers

Summary of Contents for SK Pang Electronics RSP-PICAN FD

  • Page 1 PiCAN FD Rev B 1.1 PiCAN FD with RTC USER GUIDE V1.1 Product name PICAN FD CAN-Bus Board for Raspberry Pi 3 Model number RSP-PICAN FD Manufacturer SK Pang Electronics Ltd SK Pang Electronics Ltd © 2017 www.skpang.co.uk...
  • Page 2: Table Of Contents

    PiCAN FD Rev B 1.1 Contents Table of Contents 1. Introduction ......................3 1.1. Features ................................3 Hardware Installation ....................3 1.2. Configuring DB9 Connector ......................... 4 1.3. OBDII Cable ................................. 4 1.4. CAN Cable ................................4 1.5. Screw Terminal ..............................5 1.6. 120Ω Terminator ............................. 5 1.7. LED ..................................5 1.8. Not Fitted Items ..............................5 3. Software Installation ....................6 1.9. Installing CAN Utils ............................7 1.10. Bring Up the Interface ..........................7 Real Time Clock (RTC) Software Installation .
  • Page 3: Introduction

    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 •...
  • Page 4: Configuring Db9 Connector

    PiCAN FD Rev B 1.1 1.2. Configuring DB9 Connector The CAN connection can be made via the DB9 connector. The connector be configured for different pinout. Depend if you are using an OBDII cable or a CAN cable. 1.3. OBDII Cable Close the solder bridges on the lefthand side on SJ1, SJ2 and SJ3 as shown with a red line. DB9 Pin Function number GND CAN_H CAN_L 1.4. CAN Cable Close the solder bridges on the righthand side on SJ1, SJ2 and SJ3 as shown with a green line. DB9 Pin Function number GND CAN_H CAN_L SK Pang Electronics Ltd © 2017 www.skpang.co.uk...
  • Page 5: Screw Terminal

    PiCAN FD Rev B 1.1 1.5. Screw Terminal The CAN connection can also be made via the 4 way screw terminal. Pin number Function CAN_H CAN_L GND +12v In Note : The +12v In is only used on the PiCAN2 FD board with SMPS option fitted. 1.6. 120Ω Terminator There is a 120Ω fitted to the board. To use the terminator solder a 2way header pin to JP3 then insert a jumper. 1.7. LED There is a red LED fitted to the board. This is connected to GPIO22. 1.8. Not Fitted Items JP5 can be use to power a serial LCD with data on TXD line from the Pi. There is also 5v supply on JP5. Switch mode power supply, this is a 5v module that can power the Pi. It has an input voltage range of 6v to 30v. SK Pang Electronics Ltd © 2017 www.skpang.co.uk...
  • Page 6: Software Installation

    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...
  • Page 7: Installing Can Utils

    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.
  • Page 8: Real Time Clock (Rtc) Software Installation

    PiCAN FD Rev B 1.1 4. Real Time Clock (RTC) Software Installation Insert a CR1220 battery (not supplied) into battery holder. Ensure the “+” is facing upward. Install the i2c-tools by: sudo apt-get install i2c-tools Then check the RTC: sudo i2cdetect -y 1 You should see 68 or UU on address 0x68: Now you need to disable the "fake hwclock" which interferes with the 'real' hwclock sudo apt-get -y remove fake-hwclock SK Pang Electronics Ltd © 2017 www.skpang.co.uk...
  • Page 9 PiCAN FD Rev B 1.1 sudo update-rc.d -f fake-hwclock remove Start the original hw clock script by: sudo nano /lib/udev/hwclock-set and comment out these three lines: #if [ -e /run/systemd/system ] ; then # exit 0 Reboot the Pi. Ensure the Ethernet cable or Wifi is on. This will get the time from the network. Set the clock by: sudo hwclock -w To read the clock: sudo hwclock -r SK Pang Electronics Ltd © 2017 www.skpang.co.uk...

Table of Contents