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.