Hello Everyone,
I'm quite new to the world of Arduino so forgive me if the problem I'm about to share is a fairly obvious one.
I've been trying to make a device for controlling a car heated seat over LIN, for this I have built a very basic circuit that is listed in this topic.
https://forum.arduino.cc/index.php?topic=279272.0
The code I have used is pretty basic also as I just want to prove out the transceiver. essentially what it does is drive the FAULT/TXE and CS pins high then sends some data over the TX line. I know the code works as when I hook my logic analyser up to the TX pin the data is read without issue but when I hook it up to the LIN output nothing seems to get sent.
Below is the code, if any of you could be of some assistance i would greatly appreciate it.
void setup()
{
Serial.begin(9600,SERIAL_8E1);
pinMode(2,OUTPUT);
digitalWrite(2,HIGH);
pinMode(3,OUTPUT);
digitalWrite(3,HIGH);
delay(100);
Serial.write(0x00);
Serial.write(0x55);
Serial.write(0x3A);
Serial.write(0x04);
Serial.write(0x0A);
Serial.write(0x11);
Serial.write(0x00);
Serial.write(0x78);
Serial.write(0xFF);
Serial.write(0xFF);
digitalWrite(2,LOW);
digitalWrite(3,LOW);
}
void loop()
{
}