Re: Read serial data from motorcycle K-line

Please help:
Just sketched the idea for my motorcycle LINBUS (a BMW R1200GS LC 2014).

DLR (Dayllight running light) SIGNAL READINGS (LIN BUS)
*DLR (ON/OFF) (getLINcode)
*FTP (FLASH-TO-PASS SWITCH) (getLINcode)
*HIGH BEAM SWITCH (getLINcode)
*HORN SWITCH (getLINcode)

MAIN SWITCH ON (on the handlebar)
IF DLR=ON THEN
AUX LED LIGHTS ALLWAYS ON 50%
WHEN LINcode = FTP >> PWM 50%->100%
WHEN LINcode = HORN >> PWM 50%->100%
WHEN LINcode = HIGHBEAM >> PWM 50%->100%
THEN 50%

IF DLR=OFF (LOW BEAM=NIGHT) THEN
AUX LED LIGHTS ALLWAYS ON 30%
WHEN LIN = FTP >> PWM 30%->100%
WHEN LIN = HORN >> PWM 30%->100%
WHEN LIN = HIGHBEAM >>> PWM 30%->100%
THEN 30%

MAIN SWITCH OFF
AUX LED LIGHTS ALWAYS OFF
WHEN LIN = FTP >> PWM 100%
WHEN LIN = HIGHBEAM >> PWM 100%

AUX LED LIGHTS
2X 12Volt 20Watts 1.6Amps


Have Arduino Uno R3 to use.

Probably using a MCP2025 (LIN transciever Microchip).
For the PWM i´d probably should use a MOSFET, like a RFP30N06LE, right?
Please help.
Very little experience in coding / hardware (but i believe it is a simple project)..
Thank you all!

luisfrances:
Please help:
Just sketched the idea for my motorcycle LINBUS (a BMW R1200GS LC 2014).

Why are you asking your question in a Thread that has been dead for 12 months. I don't see any commonality beytween your problem and the earlier problem.

I suggest you ask the moderator to move your Post to its own Thread and then you can give it a suitable title that reflects your problem.

You have provided a lot of information but you have not asked any specific question.

...R

Thank you for your reply and sorry for wrongly post on this thread. I will try the correct one. Regards!