Local Interconnect Network (LIN) Bus Master/Slave/Sniffer
What you'll learn
- Learn the basic LIN (Local Interconnect Network) basics from an implementation point of view.
- Exposure to the Arduino Integrated Development Enviroment (IDE)
- Program both the Arduino based Teensy 4.0 and XIAO ESP32C3 modules for act as a LIN Master and Slave/Sniffer
- Learn to build LIN prototyping hardware using breadboard.
Requirements
- Basic embedded hardware and software and a willingness to expand on embedded C software.
Description
The Emicros Instructional Series on “Building A Local Interconnect Network (LIN) Project From Hardware to Software” exposes the student to basic LIN principles generating a break signal for the Master to responding to the break signal by the Slave/Sniffer. The sync character is next followed by the payload. The protected ID generation is discussed and coded as well as the checksum for both LIN 1.x and 2.x specification. The hardware for sending and receiving LIN frames as a LIN Master or Slave/Sniffer using the Arduino based Teensy 4.0 and/or Seeed Development XIAO ESP32C3 modules. Software is written in C and compiled using the FREE Arduino IDE.
In the hardware section the schematic used for building the hardware is shown and then the hardware is built using a breadboard. Two versions for both the Teensy 4.0 and the XIAO ESP32C are developed. The LIN interface IC is the MCP2003 or MCP2004. Note the XIAO ESP32C3 can be purchased for around $5.
The software starts with setting up the FREE Arduino IDE writing the software in C. The break signal is developed first then the sync byte and the LIN payload. The checksum is shown and then both Master and Slave/Sniffer software is produced.
This course is for anyone with basic electronic hardware and software knowledge and having the motivation to learn more embedded hardware and software techniques.
Who this course is for:
- This course is for embedded software engineers, electrical engineers, and students exploring a career in the embedded software area.
Instructor
I’m Ron Russ and I’m an Embedded Software Engineer working in the Automotive industry since 1990. I worked on the first CAN based instrument cluster for Ford Motor Company in the mid ‘90’s and have worked on a variety of projects from Instrument Clusters in assembly and C to high end Amplifier modules in C++. I also sell CAN modules via my Embedded Micro Software website.