The Arduino Due has two built-in CAN controllers. Add one transceiver per channel and you can connect it to two independent Classical CAN networks.
In my latest article, I show where to find the pins for both channels, how to access them from an Arduino sketch with the due_can library, and when I use a simple breakout board or a more permanent dual-CAN interface.
https://t.co/MNfGWXgY9A
#CANBus #ArduinoDue #EmbeddedSystems
You can try SocketCAN on a Linux computer without buying a CAN adapter.
In my latest post, I explain how Linux gives applications access to a CAN bus through network interfaces like can0. Then I walk through a two-terminal experiment with vcan0. Run candump in one terminal, send a frame with cansend in the other, and see exactly what arrives.
I also cover how to move the setup to a physical CAN bus and why running candump alone doesn’t put your CAN controller in listen-only mode. That distinction matters when you want to monitor a network without acknowledging frames.
https://t.co/KmP2zl1U0d
#SocketCAN #CANBus #EmbeddedLinux
Could a smaller, cheaper board run OpenPlotter and Signal K? That’s what I wanted to find out. Once I accounted for the CAN interface, the connection to the boat’s network, and the power supply, I came back to the Raspberry Pi 4.
Paired with the PiCAN-M HAT, the Pi 4 connects directly to an NMEA 2000 backbone through a standard five-pin Micro-C connector. It also gives you an NMEA 0183 port for older instruments and uses SocketCAN to bring NMEA 2000 data into Signal K.
The Pi 5 runs OpenPlotter, too. For that setup, I’d budget for a dedicated external power supply. My article explains why the Pi 4 and PiCAN-M are still my first choice.
https://t.co/Eck03LRngX
#OpenPlotter #RaspberryPi #NMEA2000
A CAN Bus can have correct wiring and termination and still suffer intermittent errors. One thing to check is the ground potential difference between nodes, especially on long runs between separately grounded cabinets.
Galvanic isolation breaks the ground-loop path while allowing CAN data to pass. It can also help contain overvoltage damage. But if the isolated CAN port fails, the node loses communication even if its processor keeps running.
My latest article explains when isolation is worth adding, what its voltage ratings actually mean, and how one failed port can take an entire CAN segment offline.
https://t.co/nNCw4Iia0r
#CANBus #EmbeddedSystems
I’m bringing ARD1939, my SAE J1939 protocol stack for embedded systems, to STM32. I’ll start with the NUCLEO-G431RB and a CAN FD shield, then bring the new driver together with my existing Arduino, ESP32, and Teensy drivers under one configuration file.
The goal is simple: select the target platform in one place and build ARD1939 with the right CAN driver. I’ll also use the driver in my online book, CAN Bus Embedded Development.
In the post, I explain why I chose the STM32G431, what the shield adds, and which book I’m using to brush up on STM32 peripheral programming.
https://t.co/ezyCkRxEFX
#STM32 #CANBus #SAEJ1939
Why do I use the Arduino IDE for CAN bus development?
When I bring up a CAN interface on a new board, I start with a small sketch that sends or receives a frame. The Arduino IDE lets me use the same edit, compile, and upload workflow across Arduino, Teensy, STM32, and ESP32 boards. That gives me more time to work on the CAN interface and see what’s actually happening on the bus.
Debugging is where the boards differ. Serial output can show me which frames arrived, but when the firmware hangs, I want to pause execution and see where it stopped. With a supported ESP32-S3 board, Arduino IDE 2 can set breakpoints, step through code, and inspect variables over the board’s native USB connection.
In this chapter of CAN Bus Embedded Development, I explain why I chose the Arduino IDE, where its debugging capabilities depend on the hardware, and how the Raspberry Pi fits into the book.
https://t.co/SDA4LdAdVD
#CANBus #ArduinoIDE #EmbeddedSystems
A CAN bus repeater can give you a cleaner waveform and still leave you with an unreliable network.
Say you add a remote operator station to a machine and start seeing intermittent CAN errors. If the station sits at the end of a long stub, reflections could be the problem. A repeater at the branch point lets you turn that stub into its own properly terminated segment.
But the nodes on both segments still share the same arbitration. The repeater adds propagation delay, and a transmitting node still has to see a dominant bit from the far end by its sample point. The higher the bit rate, the less time you have.
I start by checking the wiring and termination. If the layout calls for a repeater, I check its delay against the timing budget for the longest path between nodes.
I walk through that example in my latest article.
https://t.co/YnV2p5b5Y9
#CANBus #EmbeddedSystems
What can you actually see on your laptop when you connect it to an NMEA 2000 network?
That depends on the gateway and the software. Some setups display engine RPM, battery voltage, wind, and depth in a browser. Others feed navigation software or let you inspect and record individual NMEA 2000 messages.
The difference matters when something goes wrong. If your RPM gauge goes blank, a message capture can help you check whether the engine was still sending RPM data when the reading disappeared.
I compared USB, Wi-Fi, and Ethernet gateways from Actisense, Yacht Devices, Digital Yacht, and Maretron, focusing on what each setup lets you see, record, and troubleshoot on a PC.
https://t.co/ICh46SlRVg
#NMEA2000 #MarineElectronics #CANBus
Why can some dominant bits look taller than others on a CAN bus scope trace? During arbitration, several nodes can drive the same dominant bit at once, producing a larger differential voltage than a single transmitter would.
That’s one reason I like explaining the CAN transceiver alongside the waveforms. The controller sends and receives bits through TXD and RXD. The transceiver drives CAN_H and CAN_L and reports what’s actually happening on the bus, even while the controller is transmitting. That feedback lets a node detect when it has lost arbitration.
In my latest CAN Bus Embedded Development post, I show how those signals fit together, what voltages to expect in the dominant and recessive states, and what to check when connecting a transceiver in your own hardware design.
https://t.co/sfFN2W24Ge
#CANBus #EmbeddedSystems
When a CAN Bus network starts acting up, I reach for a multimeter first. In my experience, sound network design, good wiring, and proper termination prevent about 99% of the problems you’re likely to encounter.
The remaining faults can take some detective work, especially on a large network or when communication drops out only while the machine is running.
In the first post of my CAN Bus troubleshooting series, I explain what a termination check can reveal, how controller error counters can narrow the search, and when I’d go to the trouble of setting up an oscilloscope.
https://t.co/832vMYD1bX
#CANBus #EmbeddedSystems
A CAN Bus example from GitHub can save you hours when you’re bringing up a new board. The questions start once you’ve sent and received your first frames.
When write() returns success, did the frame go out on the bus, or is it still in the queue? Can the driver handle the 20 back-to-back frames used in SAE J1939 testing? Will your application know if it drops a frame or the controller goes bus-off?
In my latest post, I explain what I look for when choosing or writing a CAN Bus driver for an embedded system. I cover read and write behavior, interrupt-driven buffering, error counters, and when silent and sleep modes matter.
https://t.co/fGRuNYwyMh
#CANBus #EmbeddedSystems #J1939
The JCOM1939 Monitor update for Windows adds two features shaped by customer feedback.
• CAN Bus diagnostics show the overall bus condition at a glance, with receive and transmit error counters available in a dedicated tab.
• Silent (Listen-Only) Mode lets you capture and record traffic without transmitting frames or sending CAN acknowledgments.
I wrote about the customer support case that prompted these changes and how the new features help you troubleshoot a live network.
https://t.co/jWQKtf9YYf
#CANBus #SAEJ1939
Testing marine electronics shouldn’t require a trip to the marina.
Powering up a display is easy. Finding out whether it correctly handles changing engine RPM, wind data, or water temperature takes a controllable data source.
In my latest post, I explain how a Teensy 4.0 NMEA 2000 simulator brings those tests onto the workbench—and helps narrow down problems before installation.
A boat is an excellent place to use marine electronics. For debugging, I prefer a workbench and a cup of coffee that stays where I put it.
https://t.co/msScjeg4up
#NMEA2000 #MarineElectronics #CANBus #Teensy
You don’t need a running diesel engine to start testing an SAE J1939 application.
A simulator can generate engine speed, oil pressure, coolant temperature, and other vehicle data on your workbench—giving you controlled, repeatable conditions for testing dashboards, gateways, and data loggers.
But useful simulation involves more than transmitting CAN frames. Parameter encoding, message timing, request handling, address claiming, and transport protocol support all matter.
My latest post explains how to build a practical simulation, using my JCOM1939 project as an example, and what bench testing can tell you before connecting to a real vehicle.
Read “Simulating SAE J1939 Engine Data” at https://t.co/Xms8EKYAi7
#SAEJ1939 #CANBus #EmbeddedSystems
Connecting a CAN Bus interface to your car’s OBD-II socket does not automatically give you access to everything happening inside the vehicle—or the ability to control its functions.
That misunderstanding comes up regularly in customer inquiries. Someone connects an interface, starts monitoring, and sees no messages. The first suspicion is defective hardware or software. But a silent connection can be perfectly normal.
Conventional OBD-II readings use a request-and-response exchange: a diagnostic tool asks for a supported parameter, and an ECU responds. A continuously updating RPM display usually means the tool is repeatedly requesting fresh readings.
The vehicle’s normal CAN communications are a different matter. Controllers exchange operating data using manufacturer-specific message definitions. Knowing the standardized OBD-II parameter for engine speed does not tell you how to find that same value in ordinary CAN traffic.
Access also varies between vehicles. Some expose normal CAN traffic at the diagnostic connector. Others use gateways that restrict what an external interface can see.
Diagnostics can include commands, such as clearing trouble codes. Manufacturer-specific tools may also perform actuator tests and service routines. Those capabilities still do not make standardized OBD-II a universal vehicle control interface.
My latest article explains these distinctions—and why understanding them should come before choosing hardware or writing software.
https://t.co/hWzyAXNWZt
#OBDII #CANBus #AutomotiveDiagnostics #EmbeddedSystems
Cheap hardware. Huge market. Just capture 1% of it.
I regularly receive proposals built around that logic. What tends to be missing is a realistic budget for the software, testing, documentation, and support needed to turn inexpensive components into a product customers can depend on.
An affordable circuit board is a useful starting point. It is not a business plan.
In my latest post, I explain why established products may cost considerably more than their electronics—and why that can reflect financial responsibility rather than greed.
https://t.co/Nu7jk5AzOh
#ProductDevelopment #EmbeddedSystems #Entrepreneurship
After comparing CAN Bus and LIN Bus, I became curious: Could I connect my own hardware to a vehicle’s LIN network and interact with its sensors, switches, and actuators?
Yes—but connecting to the wire is only the beginning.
LIN’s low-cost hardware makes experimentation appealing. Understanding an existing network requires more:
• Vehicle-specific message definitions
• Knowledge of the commander’s communication schedule
• Correct electrical interfacing
• An understanding of initialization, wake-up, and sleep behavior
Passive monitoring is a useful starting point. Controlling a standalone component on the workbench is another practical possibility. Modifying communication inside the vehicle adds complexity: your hardware must cooperate with—or deliberately replace—the existing communication roles.
My latest post explores the possibilities and limitations of tapping into LIN, from recording traffic to building an inline gateway.
Read it at: https://t.co/75mNjrxage
#LINBus #CANBus #EmbeddedSystems #AutomotiveElectronics
Working with automotive LIN and CAN networks?
The Teensy 4.0 Dual LIN and CAN FD Board brings two LIN ports and a CAN interface together on one compact development platform.
The two LIN ports let you work with separate LIN networks from a single controller. With suitable firmware, each network can follow its own communication schedule—useful for testing different devices, coordinating subsystems, or comparing responses without repeatedly rewiring your setup.
Practical applications include:
• Building programmable LIN test fixtures
• Testing automotive sensors and actuators
• Prototyping CAN-to-LIN gateways
• Exploring communication between CAN and two LIN branches
The included Teensy 4.0 provides a 600 MHz Arm Cortex-M7 processor, with Arduino IDE support for developing custom firmware. The board supports Classical CAN or CAN FD and includes two MCP2004A LIN transceivers, onboard voltage regulation, reverse supply voltage protection, and ESD protection.
Explore the board at Copperhill Technologies:
https://t.co/4xNTOgv8tF
#AutomotiveElectronics #LINBus #CANFD #Teensy #EmbeddedSystems
Controlling a linear actuator over CAN Bus sounded straightforward: start, stop, extend, retract, and adjust the speed. Then I started testing.
During a customer project using a Thomson Electrak HD actuator, I encountered unexpected startup errors, problems starting at low speed, and feedback that complicated end-position detection. Getting the actuator moving was only the beginning.
Using an Arduino Due, I developed the control software and worked through these issues by monitoring the CAN traffic, testing the actuator’s behavior, and implementing software workarounds.
I documented everything in “Linear Actuator Motion Control per CAN Bus,” including:
• Hardware connections and Arduino programming
• Control messages and feedback decoding
• Startup and sleep-mode handling
• Low-speed starting and end-position detection
• The unexpected behavior I encountered and how I addressed it
]
The publication is available as a PDF or Kindle ebook. The accompanying basic and extended example source code is free.
Read the article:
https://t.co/wO1MNG5a1G
#CANBus #SAEJ1939 #Arduino #ArduinoDue #LinearActuator #MotionControl #EmbeddedSystems #SourceCode
The STM32G431 includes a CAN FD controller, but getting the NUCLEO-G431RB talking to another node takes more than writing a transmit routine.
You need a transceiver, correct bus wiring and termination, matching bit timing, and receive filters that accept the frames you’re sending. When nothing arrives, which part do you check first?
My latest post walks through a practical approach: establish a working Classical CAN connection, then introduce CAN FD, bit rate switching, and longer payloads one step at a time. Each test helps separate hardware faults from firmware configuration problems.
https://t.co/46ftUG2Coq
#STM32 #CANFD #EmbeddedDevelopment