We previously wrote about adding CAN Bus to Raspberry Pi Pico with CANpico expansion board. CANBed is a single board with a Raspberry Pi RP2040 microcontroller and a Microchip MCP2551 CAN receiver plus some extra I/Os that offers an alternative.
CANBed supports the CAN 2.0 and OBD-II protocols via either a DB9 connector or a 4-pin terminal block, offers two 4-pin Grove headers and an extra I/O header for expansion, as well as 9-28V power input.
- MCU – Raspberry Pi RP2040 dual-core Cortex-M0+ microcontroller @ up to 133 MHz with 264KB SRAM
- Storage – 2MB SPI flash
- CAN 2.0 or OBD-II interface via DB9 port or 4-pin terminal block via Microchip MCP2551 CAN transceiver, 120 Ohm terminal resistor.
- USB – 1x Micro USB port for programming
- 2x Grove header (I2C + UART)
- SPI header
- 18-pin header with GPIO, UART, I2C, 4x analog inputs, 5V, GND
- Misc – Reset button, CAN Rx/Tx LED,
- Power Supply
- 9-28V DC input via CAN interface
- 3.3V/1A output
- Dimensions – 56 x 41 mm
The board is programmable via the Arduino IDE using https://raw.githubusercontent.com/Longan-Labs/Longan-RP2040/main/package_rp2040_index.json Boards Manager URL as well as Longan Labs CAN Bus Library as explained in the Wiki for the board. The Wiki also says the board can be programmed with MicroPython but provides no samples, so it’s probably better to get started with Arduino.
The board appears to be sold as a kit with a DB9 connector, a 4-pin terminal block, two Grove connectors, some 2.54mm headers, and a switch for the 120Ω terminal resistor that the user can solder as he/she sees fit. I first found CANbed board on Seeed Studio where it is up for pre-order for $15.90, but you’ll also find it on Longan Store together with other CANbed boards equipped with Atmega32U4, SAMD21G18, or SAME51G19A microcontrollers, and even an upcoming CANBed Dual board with Raspberry Pi RP2040 supporting both CAN 2.0 and CAN FD that will be sold for $24.90.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.