Back to Basics: LIN

Today, let’s talk about Local Interconnect Network(LIN). I believe it’s an essential but yet often overlooked communication protocol in automotive tech because of its big brother CAN.

LIN came in the late 1990s when automotive manufacturers needed a simpler, cost-effective solution to complement CAN. While CAN was great for critical tasks like engine control or braking. But for simpler tasks, CAN was too complicated and expensive. This is exactly where LIN shines. It operates on a single data wire (Data & GND) serial communication, making it simpler and cheaper to implement. LIN transmits at speeds up to only 20kbps which is more than enough for non-critical tasks like controlling windows, mirrors, seat adjustments, and wipers. Why use & waste the CAN bandwidth for these routine tasks?

Its architecture consists primarily of one master node and multiple slave nodes(upto 16). The master node initiates communication by sending a header; slave nodes respond based on predefined data frames. LIN has a self-synchronization feature, meaning slave nodes synchronize automatically with the master’s clock every time a message is sent in the header frame. Hence, there is no need for additional timing signals. Since communication protocol is not complex, it’s usually handled in the microcontroller and doesn’t need a dedicated controller like CAN.

The uC’s output is level shifted by specific LIN transceivers for transmission/reception in the bus. The physical layer bus voltage can be between 9V-30V, depending on the IC. They require pull-ups like I2C, but it might already be built into the IC. Although speed of communication is low, you would need to keep the bus capacitance under 10nF for good signalling. Max distance supported is around 40m. EMI/EMC problems with LIN are relatively lesser because of lower rise times/speed compared with CAN.

LIN is everywhere in modern cars. Think of them as local masters handling all the less critical work and then sends the data to the CAN when needed via the microcontroller. They do their work without any major fuss and coexist with CAN in your cars.

If you liked the post, Share it with your friends!

Back To Basics: 4-wire Kelvin Connection

This is a simple resistance measurement technique and fairly widely known, but I rarely see folks whom I usually interact with, using it. The name “Kelvin” comes from Lord Kelvin, who made a bridge circuit to measure smaller resistors.

To measure any resistor, the default method used is to pass a known current through a resistor and measure the voltage across it. Then via Ohms law calculate the resistance value. To understand why 4-wire is needed, you need to understand the issue with a 2-wire measurement. In 2-wire measurements, the resistance of the wires and contacts adds to the resistance of the component under test. This becomes a problem when the component value under measurement is very small. Check images. As the current in both arms are the same, the voltage measured includes the voltage drop across lead resistors also.

The 4-wire method solves the issue by using one pair of wires to supply the current and another pair to measure the voltage drop across the device. This separation ensures that the voltage measurement is not influenced by the voltage drop in the current-carrying leads, resulting in a much more accurate reading. Since the current flowing to the voltage measurement part is negligible (because of high impedance), measured voltage accurately reflects the resistance of the component alone.

Their application mostly involves measuring milliohm-level resistance values. These can be for measurement of shunt resistors, PCB traces, internal battery resistors. They find their way in precision and calibration instruments.

There are also shunt resistors with 4 terminals that allow you to do this measurement on an actual PCB. Please check my older posts or search the website on how to place and route them in PCBs. Also, if you want to use them, you will get 4 wire Kelvin style connectors with clip on leads. Worth purchasing you if you do a lot of low value resistance measurements.

If you liked the post, Share it with your friends!
1 6 7 8 9 10 66