Skip to main content

The CAN Bus Companion (Extract)

Page 1

books books

The CAN Bus Companion This book details the use of the Arduino Uno and the Raspberry Pi 4 in practical CAN bus based projects. Using either the Arduino Uno or the Raspberry Pi with off-the-shelf CAN bus interface modules considerably ease developing, debugging, and testing CAN bus based projects. This book is written for students, practicing engineers, enthusiasts, and for everyone else wanting to learn more about the CAN bus and its applications. The book assumes that the reader has some knowledge of basic electronics. Knowledge of the C and Python programming languages and programming the Arduino Uno using its IDE and Raspberry Pi will be useful, especially if the reader intends to develop microcontroller-based projects using the CAN bus.

Dogan Ibrahim has a BSc. degree in Electronic Engineering, an MSc. degree in Automatic Control Engineering, and a PhD degree in Digital Signal Processing. Dogan has worked in many organizations and is a Fellow of the Institution of Engineering and Technology (IET) and is a Chartered engineer. Dogan has authored over 100 technical books and over 200 technical articles on electronics, microprocessors, and related fields. Dogan is a certified Arduino professional and has many years of experience with practically all current microprocessors.

The book should be a useful source of reference material for anyone interested in finding answers to questions such as:

> > > > > > > > > > > > >

What bus systems are available for the automotive industry? What are the principles of the CAN bus? How can I create a physical CAN bus? What types of frames (or data packets) are available in a CAN bus system? How can errors be detected in a CAN bus system and how dependable is a CAN bus system? What types of CAN bus controllers exist? How do I use the MCP2515 CAN bus controller? How do I create 2-node Arduino Uno-based CAN bus projects? How do I create 3-node Arduino Uno-based CAN bus projects? How do I set the acceptance masks and acceptance filters? How do I analyze data on the CAN bus? How do I create 2-node Raspberry Pi-based CAN bus projects? How do I create 3-node Raspberry Pi-based CAN bus projects?

The full program listings of all the projects discussed in the book may be downloaded free of charge from the Elektor Store website, www.elektor.com (search for: book title).

Ahmet Ibrahim holds BSc. (Hons) and MSc. degrees in the fields of Computing, Software, and Networking. Ahmet has held positions in many industries involved in enterprise computing. He enjoys advising, designing, and implementing complex cloud and on-premises computer systems.

Elektor International Media www.elektor.com

The CAN Bus Companion • Dogan Ibrahim & Ahmet Ibrahim

Projects with Arduino Uno & Raspberry Pi

books books

The CAN Bus Companion Projects with Arduino Uno & Raspberry Pi r the With Examples fo s MCP2515 CAN Bu e Interface Modul

void setup() { SPI.begin(); mcp2515.setBitrate(CAN_500KBPS, MCP_8MHZ); // Config CAN bus mcp2515.setNormalMode(); // Normal mode pinMode(LED, OUTPUT); // LED is output digitalWrite(LED, 0); // LED OFF struct can_frame MyMsg; MCP2515 mcp2515(CS); void setup() { SPI.begin(); mcp2515.setBitrate(CAN_500KBPS, MCP_8MHZ); // Config CAN bus mcp2515.setNormalMode(); // Normal mode pinMode(LED, OUTPUT); // LED is output digitalWrite(LED, 0); // LED OFF { SPI.begin(); mcp2515.setBitrate(CAN_500KBPS, MCP_8MHZ); // Config CAN bus mcp2515.setNormalMode(); // Normal mode

Dr Dogan Ibrahim Ahmet Ibrahim BSc., MSc.

SKU20405_COV_The CAN Bus Companion_v04.indd Alle pagina's

18-01-2023 12:05


Turn static files into dynamic content formats.

Create a flipbook
The CAN Bus Companion (Extract) by Elektor - Issuu