Blog
Recent Posts
Why the Teensy 4.1 Triple CAN-Bus Board with Ethernet Makes an Excellent CAN Data Logger
Posted by on
Modern vehicles, industrial machines, marine systems, and agricultural equipment generate enormous amounts of CAN bus traffic. Capturing, storing, and analyzing this data is essential for diagnostics, performance monitoring, predictive maintenance, fleet management, and product development.
While there are many commercial CAN data loggers available, they often suffer from one or more limitations:
- High cost
- Limited customization
- Proprietary software
- Restricted storage capacity
- Limited support for CAN FD
- No integration with custom applications
The Teensy 4.1 Triple CAN-Bus Board with Ethernet offers an attractive alternative. Combining a powerful 600 MHz ARM Cortex-M7 processor, multiple CAN interfaces, Ethernet connectivity, and native microSD card support, it provides all the essential building blocks for a professional-grade CAN and CAN FD data logger.
Why Data Logging Matters
CAN data logging is used in a wide range of applications:
Vehicle Development
Engineers record CAN traffic to:
- Analyze ECU behavior
- Verify communication timing
- Monitor sensor values
- Validate software updates
Fleet Monitoring
Fleet operators can collect:
- Engine operating hours
- Fuel consumption
- Driver behavior
- Fault codes
- Vehicle utilization statistics
Predictive Maintenance
Continuous logging allows maintenance teams to identify:
- Rising temperatures
- Pressure abnormalities
- Sensor degradation
- Component wear
before failures occur.
Industrial Automation
Manufacturing equipment often uses CAN-based communication networks. Logging helps identify:
- Production bottlenecks
- Controller faults
- Communication errors
- Performance trends
Marine Electronics
NMEA 2000 networks are based on CAN technology. Data logging can capture:
- GPS data
- Engine information
- Fuel consumption
- Navigation parameters
- Environmental measurements
Hardware Features That Make Logging Easy
600 MHz Processing Power
At the heart of the board is the Teensy 4.1 microcontroller based on the NXP i.MX RT1062 ARM Cortex-M7 processor running at 600 MHz. This level of performance is far beyond what is required for simple CAN reception and provides plenty of headroom for advanced processing tasks.
The processor can easily:
- Receive multiple CAN streams simultaneously
- Filter messages
- Decode protocols
- Compress data
- Write to storage
- Serve web interfaces
- Perform cloud communications
all at the same time.
Triple CAN Capability
The board provides:
- Two Classical CAN 2.0B interfaces
- One CAN FD interface
This configuration opens interesting possibilities.
For example:
Simultaneous Logging
Capture data from:
- Vehicle CAN
- Body CAN
- Diagnostic CAN
at the same time.
Gateway Logging
Monitor traffic entering and leaving a gateway.
CAN FD Development
Log modern CAN FD networks while simultaneously monitoring legacy CAN systems.
Multi-Network Vehicles
Many modern machines contain multiple CAN networks operating at different bit rates.
The board allows all of them to be monitored simultaneously.
Native MicroSD Storage
One of the most important requirements of a data logger is storage.
The Teensy 4.1 includes a built-in microSD card interface, allowing virtually unlimited logging capacity depending on the selected card size.
Typical storage options:
| Card Size | Approximate Logging Capacity* |
|---|---|
| 8 GB | Several weeks |
| 32 GB | Several months |
| 128 GB | Years of selected data |
*Actual capacity depends on bus load and logging format.
Advantages include:
- No external storage hardware
- Simple file management
- Easy data transfer to PC
- Low cost storage expansion
CAN FD Support
Many modern systems are migrating from Classical CAN to CAN FD.
CAN FD offers:
- Data payloads up to 64 bytes
- Faster data transfer rates
- Improved efficiency
The dedicated CAN FD interface makes the board suitable for both current and future vehicle platforms.
A logger developed today can continue supporting new vehicle architectures without hardware changes.
Ethernet Connectivity
One feature that distinguishes this board from many competing solutions is the integrated Ethernet interface.
Ethernet enables capabilities beyond traditional data logging.
Remote Access
Access recorded files from another computer on the network.
Live Monitoring
View CAN traffic in real time through a browser-based dashboard.
Cloud Connectivity
Upload selected data to:
- AWS
- Azure
- Google Cloud
- Private servers
Fleet Data Collection
Vehicles can automatically upload logs whenever connected to a local network.
Remote Diagnostics
Technicians can analyze system behavior without physically retrieving SD cards.
Real-Time Protocol Decoding
Rather than recording raw CAN frames, the Teensy has enough processing power to decode higher-level protocols while logging.
Examples include:
SAE J1939
Record:
- Engine speed
- Vehicle speed
- Fuel rate
- Temperatures
- Diagnostic messages
instead of raw CAN frames.
NMEA 2000
Decode:
- GPS position
- Heading
- Wind data
- Tank levels
- Engine parameters
CANopen
Store engineering values rather than raw message traffic.
This significantly reduces post-processing effort.
Smart Logging Strategies
The board's processing power allows implementation of advanced logging methods.
Trigger-Based Logging
Start recording when:
- A fault occurs
- Engine starts
- Speed exceeds a threshold
- Temperature rises above limits
Circular Buffer Logging
Maintain a rolling buffer and save only the data before and after an event.
Selective Logging
Record only specific PGNs, message IDs, or parameters.
Exception Logging
Store data only when values change significantly.
These methods reduce storage requirements while preserving important information.
Example Applications
J1939 Engine Data Logger
Record:
- Engine speed
- Fuel rate
- Coolant temperature
- Oil pressure
- Active fault codes
to an SD card.
NMEA 2000 Voyage Recorder
Store:
- Position
- Speed
- Heading
- Wind
- Engine data
for later analysis.
Fleet Tracking Device
Combine:
- CAN data
- GPS position
- Ethernet uploads
for complete fleet monitoring.
Industrial Machine Recorder
Capture machine operating statistics and fault conditions for maintenance analysis.
Software Development Benefits
The board is fully supported through the Arduino IDE and Teensyduino environment.
Benefits include:
- Fast development
- Extensive libraries
- Familiar programming environment
- Large user community
- Easy integration with existing CAN software
For developers already familiar with Arduino, the learning curve is minimal.
Conclusion
The Teensy 4.1 Triple CAN-Bus Board with Ethernet combines all the key ingredients required for a powerful CAN data logger:
- 600 MHz processing performance
- Two Classical CAN channels
- One CAN FD channel
- Native microSD card storage
- Ethernet connectivity
- Arduino compatibility
- Compact form factor
Whether your application involves J1939, CANopen, NMEA 2000, industrial automation, fleet management, or CAN FD development, the board provides a highly capable and cost-effective platform for building custom data logging solutions.
Unlike many commercial loggers that are fixed-function devices, the Teensy platform allows developers complete control over data collection, filtering, storage, analysis, and network communication. The result is a data logger tailored exactly to the requirements of the application rather than forcing the application to adapt to the logger.
Practical Python Programming for IoT: Build advanced IoT projects using a Raspberry Pi 4, MQTT, RESTful APIs, WebSockets, and Python 3
Build practical Internet of Things (IoT) applications with Python and Raspberry Pi through a series of hands-on projects that combine software, networking, sensors, and electronics. Starting with the fundamentals of Raspberry Pi setup, GPIO interfacing, and electronic circuits, you’ll learn how connected devices communicate using technologies such as REST APIs, WebSockets, and MQTT. Along the way, you’ll create real-world applications ranging from remote LED control and motion detection to smart monitoring and automation systems.
As your skills progress, you’ll integrate sensors, actuators, motors, ultrasonic ranging, and environmental measurements into increasingly sophisticated projects. The book also covers modern Python development techniques, including asynchronous programming and publish/subscribe architectures, while demonstrating integration with IoT platforms and cloud services. By the end, you’ll have the knowledge and practical experience needed to design, build, and deploy your own intelligent IoT solutions using Python and Raspberry Pi. More information…
Building NMEA 2000 Devices Has Never Been Easier: Meet the Teensy 4.0 with IPS LCD and NMEA 2000 Connector
Developing NMEA 2000 devices often involves a frustrating combination of custom hardware, display integration, network connectivity, and endless testing. Many engineers and hobbyists spend more time wiring components together than actually developing their applications. The Teensy 4.0 with NMEA 2000 Connector and 240×240 IPS LCD changes that equation completely. By combining a powerful microcontroller, integrated NMEA [...]
Teensy 4.1 Triple CAN Bus Board: Bridge Vehicle Networks to the Cloud with Ethernet and CAN FD
Modern vehicles rely heavily on Controller Area Network (CAN) systems to manage communication among ECUs, sensors, actuators, and diagnostic modules. As connectivity becomes pervasive—enabling remote diagnostics, over-the-air updates, and fleet management—the need to securely and efficiently bridge CAN bus data to cloud infrastructure becomes critical. The Teensy 4.1 Triple CAN Bus Board with 240×240 LCD and Ethernet [...]
CANFDuino: Upgrading the Hardware to 24 VDC Power Supply
Today, we are addressing a frequently asked question since the product's launch: 'Is it possible to power CANFDuino off of 12 or 24 V power?'. Our previous response, 'Yes, using the prototyping space to add a regulator', while accurate, may not have been as helpful as we intended. To provide a more practical solution, we [...]
Arduino-Compatible Open-Source Dual CAN-FD Network Analyzer
In a previous post, we highlighted SavvyCAN, developed by Collin Kidder, as the most effective open-source software for CAN bus sniffing. We have also worked on enhancing the compatibility of the CANFDuino and the GVRET protocol with SavvyCAN to support CANFD messages from two ports. With these updates on GitHub, you can now sniff two CANFD busses with [...]
Embedded Systems for NMEA 2000 Support Marine Applications
Copperhill Technologies offers Arduino-Compatible NMEA 2000 development boards and an NMEA 0183/NMEA 2000 HAT for the Raspberry Pi, ideal for marine applications such as OpenCPN, OpenPlotter, Signal K, and CANBoat. Experience cutting-edge technology with our NMEA 2000 development and prototyping boards, specially crafted for marine applications. These boards are game changers, allowing you to develop and [...]
ESP32 UART0, UART1, UART2 Access Using the Arduino IDE
In the following, I am using the ESP32 WROOM Devkit for this tutorial in combination with the Arduino IDE. For more information on programming the ESP32 using the Arduino IDE, please refer to “Getting started with ESP32 development board and Arduino.” The Arduino IDE uses the Serial class (assigned to UART0) to access the USB port [...]
SAE J1939 250k/500k Baudrate Converter with Arduino Due
The introduction of 500 Kbps (see SAE J1939/14) as an alternative to 250 Kbps, required clarifications on how to solve problems that come with incorporating devices supporting different baud rate settings in the same network. One solution comes with automatic baud rate detection. The SAE J1939/16 document outlines the methods used to detect the baud rate [...]
ESP32 DC Motor PWM Speed Control (Pulse Width Modulation) - The Hidden Facts
Lately, I have worked on two projects requiring DC motor control per PWM (Pulse Width Modulation). What both projects had in common was a profound lack of documentation regarding PWM control, specifically the side effects that have a significant impact on the programming. This post aims to point to these quirks that may cause considerable headaches [...]
ESP32 Project: USB to Bluetooth Gateway
The ESP32 processor allows the integration of Wi-Fi, Bluetooth, and Bluetooth LE (BLE) for a wide range of IoT (Internet of Things) applications. Using Wi-Fi ensures connectivity within a large radius. At the same time, Bluetooth allows the user to easily detect (with low-energy beacons) a module and connect it to an Android/iOS smartphone or [...]
Loading... Please wait...
