Breaking
March 30, 2025

Supercon 2024: Yes, You Can Use the Controller Area Network Outside of Cars Lewin Day | usagoldmines.com

Ah, the CAN bus. It’s become a communication standard in the automotive world, found in a huge swathe of cars built from the mid-1990s onwards. You’ll also find it in aircraft, ships, and the vast majority of modern tractors and associated farm machines, too.

As far as [Randy Glenn] is concerned, though, the CAN bus doesn’t have to be limited to these contexts. It can be useful far beyond its traditional applications with just about any hardware platform you care to use! He came down to tell us all about it at the 2024 Hackaday Supercon.

[Randy]’s talk was titled “Yes, You CAN: Use The Controller Area Network Outside Of Cars.” We have to assume the pun was intended. In any case, the CAN bus came to us from Bosch, which began developing the standard in 1983. The company officially released it at the Society of Automotive Engineers conference in 1986, with compatible chips first hitting the market a year later. It took a little while longer for the standard to find traction, with Mercedes-Benz being the first to implement it in a production vehicle in 1991. It soon caught on with the wider industry as a robust and reliable way to let a vehicle’s various control units communicate with all the important sensors that were proliferating on modern automobiles. CAN got its big break when it was mandated as part of the OBD-II standard in North America, which defacto put it into virtually every car sold in that market from 1996 onwards.

Since then, CAN has proliferated well beyond the automotive space, into marine and aerospace contexts as well. As [Randy] explains, beyond transportation, you’ll also find it in everything from robots to pinball machines and even elevators. Basically, wherever it’s important to have robust local communication between distributed embedded systems, CAN is a great candidate for the job.

Since it’s so widespread, it’s easy to find hardware and software that’s CAN-ready out of the box. The vast majority of microcontroller manufacturers include some sort of CAN compatibility; for example, Espressif’s ESP32 has the “Two Wire Automotive Interface” which is built for this purpose. Linux is more than happy to talk CAN, too, and most programming languages have some sort of library available, too. Whether you’re working with Arduino, MicroPython, or CircuitPython, you can certainly find what you need. Even if you have a device without CAN built in—like a Raspberry Pi—SPI-ready CAN controllers can be had for cheap from vendors like Microchip.

Depending on your hardware, you might have to add a CAN controller or transceiver to get it talking on the CAN bus. However, this is usually trivial.

There are specific reasons why you might consider CAN for your embedded communication needs. It uses a differential bus, which gives it an inherent ability to resist disruption from electrical noise. Addressing, error-checking, and retransmission functionality are also baked in to CAN controllers, so you don’t have to handle it yourself. You can also find tons of CAN compatible hardware on the market to do whatever you’re trying to do, and a lot of it is pretty cheap because manufacturers are churning it out by the millions.

Of course, there are some limits. Traditionally, you’re stuck with only 32 devices on a bus, though there are some ways to work around it at lower data rates. Peak data rate is 1 megabit per second on a traditional CAN bus operating at the high data rate; this limits you to a total bus length of 25 meters. You can up this to 250 meters if you drop to 250 kbit/s instead. Packets are also limited to 8 bytes in size.

Beyond the basic performance specs, [Randy] also explains how you might go about typical implementations with different hardware. For example, if you’ve got a microcontroller with no CAN capability baked in, you might hook it up with a CAN controller and transceiver over SPI. Alternatively, you might choose to work with a more advanced microcontroller that has all the CAN communication hardware built into the chip, simplifying your build. For parts like the ESP32 and some STM32s, you might find you’ve got a CAN controller on board, but you’re lacking the hardware to do the fancy differential signalling—in that case, you just need to hook up a CAN transceiver to get your hardware on the bus. [Randy] also highlights the usual conventions, such as terminology and wire colors, while explaining that these aren’t always rigidly adhered to in the field.

Talking CAN on Linux is as easy as plugging in a cheap USB dongle.

On the communication level, the CAN bus standard mandates that nodes transmit frames, with each each frame containing up to 8 bytes of data. [Randy] explains how messages are formatted and addressed to ensure the right nodes get the right data they’re looking for. There are standard message frames, as well as Remote Transmission Request (RTR) frames—where one node requests data from another. A typical example is a controller asking a sensor to report a value. There are also special Error and Control Frames, which [Randy] notes are complicated and beyond the scope of his Supercon talk. However, he recommends resources that exist to explain them in great detail.

Data of a complete CAN frame laid over the traces of the bus itself. Credit: Ken Tindell, Canis Automotive Labs Ltd. via CC BY-SA 4.0

Much of [Randy’s] talk explains how CAN works. But, as promised, he also takes the time to explain possible non-automotive applications for this technology. He steps through an amusing Halloween build, where a CAN bus is used to trigger scary lightning and sound effects when people press a doorbell.

If you’ve ever wanted a good CAN primer, [Randy]’s talk is just what you need. As far as robust embedded communication standards go, it’s one of the most popular and long-lived out there. It might just pay dividends to put the CAN bus in your own toolbox for future use!

 

This articles is written by : Nermeen Nabil Khear Abdelmalak

All rights reserved to : USAGOLDMIES . www.usagoldmines.com

You can Enjoy surfing our website categories and read more content in many fields you may like .

Why USAGoldMines ?

USAGoldMines is a comprehensive website offering the latest in financial, crypto, and technical news. With specialized sections for each category, it provides readers with up-to-date market insights, investment trends, and technological advancements, making it a valuable resource for investors and enthusiasts in the fast-paced financial world.

Recent:

Protocol Analyzer Remembered Al Williams | usagoldmines.com

Can Hackers Bring Jooki Back to Life? Tom Nardi | usagoldmines.com

Automatically Crack Safes with this Autodialer Bryan Cockfield | usagoldmines.com

Chip Glitching 101 with [Hash] Dan Maloney | usagoldmines.com

Yaydio, a Music Player For Kids Jenny List | usagoldmines.com

DIY Split Keyboard Made with a Saw Maya Posch | usagoldmines.com

An ESP32 Pomdoro Timer Jenny List | usagoldmines.com

AMSAT-OSCAR 7: the Ham Satellite That Refused to Die Maya Posch | usagoldmines.com

Scammers Hit iPhone and Android Users, Drain Bank Accounts in ‘Astronomical’ Attack Targeting Americ...

Open Source Framework Aims to Keep Tidbyt Afloat Tom Nardi | usagoldmines.com

JPMorgan Chase Launches Zelle Payments Crackdown, Wells Fargo Refuses To Reimburse $60,000, and Bank...

Contagious Ideas Elliot Williams | usagoldmines.com

Recreating the Analog Beauty of a Vintage Tektronix Oscillator Dan Maloney | usagoldmines.com

How to Make a 13 mm Hole With a 1/2″ Drill Bit Donald Papp | usagoldmines.com

Pictures from a High Altitude Balloon Al Williams | usagoldmines.com

Make DIY Conductive, Biodegradable String Right In Your Kitchen Donald Papp | usagoldmines.com

494,000 Americans at Risk of Bank Fraud and Identity Theft As Massive Data Breach Exposes Names, Fin...

Math, Optimized: Sweden’s Maximal Multi-Divi Heidi Ulrich | usagoldmines.com

Imprisoned FTX Founder Sam Bankman-Fried Moved From New York To Transfer Facility in Oklahoma Conor ...

An Artificial Sun In A Manageable Size Jenny List | usagoldmines.com

Take A Little Bit Of Acorn To Work Jenny List | usagoldmines.com

Keep Tabs on Your Vehicle’s Needs with LubeLogger Tom Nardi | usagoldmines.com

Hackaday Podcast Episode 314: It’s Pi, but Also PCBs in Living Color and Ultrasonic Everything Dan M...

This Week in Security: IngressNightmare, NextJS, and Leaking DNA Jonathan Bennett | usagoldmines.co...

Dwingeloo to Venus: Report of a Successful Bounce Heidi Ulrich | usagoldmines.com

Scanning Film The Way It Was Meant To Be Jenny List | usagoldmines.com

AqMood is an Air Quality Monitor with an Attitude Tom Nardi | usagoldmines.com

Half The Reflow Oven You Expected Jenny List | usagoldmines.com

An Inexpensive Way to Break Down Plastic Bryan Cockfield | usagoldmines.com

Inside a Fake WiFi Repeater Maya Posch | usagoldmines.com

Your Badminton Racket Needs Restringing? There’s a DIY Machine for That Elliot Williams | usagoldmin...

Custom Slimline CD Player Hides Out Under Speaker Tom Nardi | usagoldmines.com

General Fusion Claims Success with Magnetized Target Fusion Maya Posch | usagoldmines.com

Chase Light SAO Shouldn’t Have Used a 555, and Didn’t Dan Maloney | usagoldmines.com

Pi Pico Turns Atari 2600 into a Lo-fi Photo Frame Jenny List | usagoldmines.com

Why are Micro Center Flash Drives so Slow? Maya Posch | usagoldmines.com

Fitting a Spell Checker into 64 kB Bryan Cockfield | usagoldmines.com

Integrated BMS Makes Battery Packs Easy Bryan Cockfield | usagoldmines.com

3D-Printed Scanner Automates Deck Management for Trading Card Gamers Dan Maloney | usagoldmines.com

FLOSS Weekly Episode 826: Fedora 42 and KDE Jonathan Bennett | usagoldmines.com

Supercon 2024: A New World of Full-Color PCBs Lewin Day | usagoldmines.com

Teardown of Casio Credit Card-Sized Radio Maya Posch | usagoldmines.com

Tech in Plain Sight: Hearing Aids Al Williams | usagoldmines.com

Build Customized Raspberry Pi OS Images With rpi-image-gen Maya Posch | usagoldmines.com

Admit it. You Want This Go-Kart Jenny List | usagoldmines.com

Designing a Portable Mac Mini Lewin Day | usagoldmines.com

Physical Key Copying Starts With a Flipper Zero Dan Maloney | usagoldmines.com

Brazilian Modders Upgrade NVidia Geforce GTX 970 to 8 GB of VRAM Maya Posch | usagoldmines.com

LED Filaments Become Attractive Time Piece Lewin Day | usagoldmines.com

The Vectrex Home Computer You Never Had Jenny List | usagoldmines.com

Ancient Pocket Computer Gets a Serious Serial Upgrade Lewin Day | usagoldmines.com

2024 Hackaday Supercon Talk: Killing Mosquitoes with Freaking Drones, and Sonar Elliot Williams | us...

ReactOS 0.4.15 Released With Major Improvements Maya Posch | usagoldmines.com

Metal Detector Built With Smartphone Interface Lewin Day | usagoldmines.com

Handheld Console Plays Original Pong With Modern E-Waste Donald Papp | usagoldmines.com

Glow In The Dark PCBs Are Pretty Cool Lewin Day | usagoldmines.com

PPS Is The Hottest USB-C Feature You Didn’t Know About Lewin Day | usagoldmines.com

Mural: The Plotter That Draws On Walls Lewin Day | usagoldmines.com

Wearable Computing Goes Woven, Wireless, and Washable Donald Papp | usagoldmines.com

The SNES Seems To Be Getting Faster Over Time Lewin Day | usagoldmines.com

Keebin’ with Kristina: the One with the Grasshopper Typewriter Kristina Panos | usagoldmines.com

Cloudflare’s AI Labyrinth Wants Bad Bots To Get Endlessly Lost Donald Papp | usagoldmines.com

$7,000,000 Up for Grabs As Feds Tell Crypto Fraud Victims To Come Recover Their Money Alex Richardso...

Rolling Foam Cutter Gives Mattress a Close Shave Tom Nardi | usagoldmines.com

Build a Starship Starship Bridge Simulator With EmptyEpsilon Maya Posch | usagoldmines.com

“Unnecessary” Automation of a DIY Star Lamp Build Elliot Williams | usagoldmines.com

Hackaday Links: March 23, 2025 Dan Maloney | usagoldmines.com

RTL-SDR with Only a Browser Al Williams | usagoldmines.com

Insider at Major US Bank Quietly Drains $180,000 From Two Customers’ Accounts, Alleges Department of...

Building the Simplest Atomic Force Microscope Elliot Williams | usagoldmines.com

The Mysterious Mindscape Music Board Maya Posch | usagoldmines.com

Booting a Desktop PDP-11 Al Williams | usagoldmines.com

Musings on a Good Parallel Computer Maya Posch | usagoldmines.com

Piezo Sensor Reviewed Al Williams | usagoldmines.com

Twisting Magnetism to Control Electron Flow Heidi Ulrich | usagoldmines.com

Generative Art Machine Does it One Euro at a Time Elliot Williams | usagoldmines.com

Card Radios Remembered Al Williams | usagoldmines.com

Acoustic Levitation Gets Insects Ready For Their Close-Up Tom Nardi | usagoldmines.com

Thanks for Hackaday Europe! Elliot Williams | usagoldmines.com

FBI Issues ‘Medusa’ Alert As Hackers Target Critical Infrastructure, Extort Victims for Cash Alex Ri...

The Fastest MS-DOS Gaming PC Ever Maya Posch | usagoldmines.com

Biosynthesis of Polyester Amides in Engineered Escherichia Coli Maya Posch | usagoldmines.com

A Cute Handheld Gaming Device That You Can Build In An Altoids Tin Lewin Day | usagoldmines.com

Producing Syngas From CO2 and Sunlight With Direct Air Capture Maya Posch | usagoldmines.com

21,899 Bank Customers Affected As US Lender Suffers Cybersecurity Breach, Hacker Taps Social Securit...

Moving Software Down to Hardware Bryan Cockfield | usagoldmines.com

Turning a Kombucha Bottle Into a Plasma Tube Lewin Day | usagoldmines.com

Building a Handheld Pong Game Lewin Day | usagoldmines.com

High Frequency Food: Better Cutting With Ultrasonics Lewin Day | usagoldmines.com

Benchtop Haber-Bosch Makes Ammonia at Home Dan Maloney | usagoldmines.com

Hackaday Podcast Episode 313: Capacitor Plague, Wireless Power, and Tiny Everything Jenny List | usa...

This Week in Security: The Github Supply Chain Attack, Ransomware Decryption, and Paragon Jonathan B...

Aluminum Business Cards Make Viable PCB Stencils Lewin Day | usagoldmines.com

Cheap Endoscopic Camera Helps Automate Pressure Advance Calibration Dan Maloney | usagoldmines.com

A Modern Take on the Etch A Sketch Bryan Cockfield | usagoldmines.com

Solar Power, Logically Al Williams | usagoldmines.com

Backyard Rope Tow from Spare Parts Bryan Cockfield | usagoldmines.com

$19,500,000 Payout Incoming After Wells Fargo Sued Over Alleged Secret Recordings of Potential Custo...

Laser Harp Sets the Tone Bryan Cockfield | usagoldmines.com

Three SPI Busses Are One Too Many on This Cheap Yellow Display Jenny List | usagoldmines.com

Leave a Reply