Per Söderstam / Mbed 2 deprecated CANTest

Dependencies:   mbed

Homepage

Have an idea that I should use CAN as inter MCU communication in one of those projects that might one day become a reality. This is the simple first test of the mbed API and CAN transievers (two MCP 2551 http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010405).

I picked up the following working with this setup:

  • RTFM
  • Really... RTFM!!!

...then I'd found out:

  • The MCP2551 need 5V to operate properly. Level conversion is only necessary from the mbed to the TXD pin on MCP2551, use your favorite method. There is no need to level convert from the RXD pin to the mbed as the mbed inputs are 5V tolerant.
  • Connect the slope control. I used a 10k resistor to ground for simplicity.

...also:

  • I didn't manage to drive two MCP2551 on what's left of the USB 5V. I used an external +5V power source as VDD.

Hope it helps. /Per


All wikipages