Teensy 4.0 CAN FD to USB Converter
This board uses the Teensy 4.0 as a CAN FD to USB converter. The Teensy 4.0 comes with a high-speed 480Mbit/s USB HS interface. The MCP2558FD CAN FD transceiver is rated up to 8Mbps with silent mode under control via software or hardware link.
The MCP2557/8FD is a Microchip Technology Inc. high-speed CAN transceiver/CAN Flexible Data Rate Transceiver with Silent Mode. The devices meet and exceed CAN FD specification requirements in addition to the latest Automotive OEM requirements.
The Teensy 4.0 features an ARM Cortex-M7 processor at 600 MHz, with a NXP iMXRT1062 chip. It can be programmed using the Arduino IDE with Teensyduino add-on.
- Teensy 4.0 (installed)
- MCP2558FD CAN FD transceiver
- Up to 8Mbps
- High speed USB interface 480Mbit/s
- RGB LED indicator
- Silent mode via software control or by hardware link
- DB9 connector. Configurable for OBDII cable or CAN Analyser pin-out
- Lawicel protocol, using simple ASCII commands
Teensy 4.0 Technical Specifications
- ARM Cortex-M7 at 600 MHz
- 1024K RAM (512K is tightly coupled)
- 2048K Flash (64K reserved for recovery & EEPROM emulation)
- 2 USB ports, both 480 MBit/sec
- 3 CAN Bus (1 with CAN FD)
- 2 I2S Digital Audio
- 1 S/PDIF Digital Audio
- 1 SDIO (4 bit) native SD
- 3 SPI, all with 16 word FIFO
- 3 I2C, all with 4 byte FIFO
- 7 Serial, all with 4 byte FIFO
- 32 general purpose DMA channels
- 31 PWM pins
- 40 digital pins, all interrupt capable
- 14 analog pins, 2 ADCs on chip
- Cryptographic Acceleration
- Random Number Generator
- RTC for date/time
- Programmable FlexIO
- Pixel Processing Pipeline
- Peripheral cross triggering
- Power On/Off management
The demo sketch (see download link above) uses the FlexCAN library, and it represents a serial protocol for communication between the gateway and an external system, for instance, a PC. The protocol is based on the ASCII commands developed by LAWICEL but extended to accommodate CAN FD.
The protocol uses ASCII commands to set the CAN baud rate, transmit CAN Bus data frames, and more. They are documented in the above download referenced download page (github).
Want to build devices that interact with the physical world? This cookbook is an excellent choice for anyone who wants to experiment with the popular Arduino microcontroller and programming environment.
You’ll find more than 200 tips and techniques for building a variety of objects and prototypes such as toys, detectors, robots, and interactive clothing that can sense and respond to touch, sound, position, heat, and light.
You don’t need to have mastered Arduino or programming to get started. Updated for the Arduino 1.0 release, the recipes in this second edition include practical examples and guidance to help you begin, expand, and enhance your projects right away—whether you’re an artist, designer, hobbyist, student, or engineer.
- Get up to speed on the Arduino board and essential software concepts quickly
- Learn basic techniques for reading digital and analog signals
- Use Arduino with a variety of popular input devices and sensors
- Drive visual displays, generate sound, and control several types of motors
- Interact with devices that use remote controls, including TVs and appliances
- Learn techniques for handling time delays and time measurement
- Apply advanced coding and memory handling techniques