In this diploma thesis we examine LIN bus protocol in detail and present its practical demonstration on a Audi E-tron position headlight. The headlight, made by Hella Saturnus Slovenija, uses light emmiting diodes, controlled via a proprietary LIN communication protocol. We implemented the protocol on a students microcontroller development kit MiŠKo 3, which already includes an integrated LIN chip and can send and receive LIN messages. We implemented LIN driver in the program language C, that uses asynhrone serial communication protocol (UART). Driver allows sending and reading approprate LIN messages to and from the headlight and controlling basic headlight functions, described in the datasheet. We also implemented a basic user interface using buttons and display, allowing setting different light functions of the headlight.
|