Good morning at all.
I'm a real beginner and I started with the "Arduino story" three weeks ago. During my studies I programmed a bit on Java so I know about the programming basics, but I'm not so familar with it.
My actual project is, to create a small LIN (Local Interconnect Network) with one master and two slaves, and send some messages between them
The messages are not yet defined, but they should control a LED, a servo motor, check a potentiometer and maybe a thermistor. So these points are a bit "open".
The hardware I have:
- Arduino Uno R3 SMD edition (3x)
- Arduino Due R3 (1x)
- Cypress CY8CKIT-026 Can- and LIN-Shield board (3x) http://www.cypress.com/documentation/development-kitsboards/cy8ckit-026-can-and-lin-shield-kit
- Cypress CY8CKIT-042 development board (1x) http://www.cypress.com/documentation/development-kitsboards/cy8ckit-042-psoc-4-pioneer-kit
- PEAK PCAN-USB Pro FD for CAN and LIN (1x) PCAN-USB Pro FD: PEAK-System
- serveral LEDs, a servo motor, a sensor kit, a LCD 16x2 (direct controlled via SDA and SCL), ...
I have to create a small thesis for my actual studies on a functionating LIN bus, where I only add the messages and the hardware like LEDs etc.
I searched and read a lot on forums about existing LINs but I didn't find a proper solution for my actual task. From my point of view, one of the most interesting and maybe functionating post is this: GitHub - macchina/LIN: Arduino library to add dual LIN support on SAM3X based boards with a TJA1021/TJA1027 transceiver
But I have to modifiy the code and I'm not able to, because of my programming knowlegde.
The LIN-Transceiver on the Cypress-board is a TJA 1020. http://www.nxp.com/docs/en/data-sheet/TJA1020.pdf?pspll=1
I also found some threads with an TJA 1021, which is basically equal to the TJA 1020.
So, is here anybody who can help with a working LIN bus either with the Uno or the Due? Does anyone have a working code or can modify the GitHub-example?
If I/we found out, that it will only work with the Due, than the university will buy additional Dues.
Just for your information: The idea of the project is from my professor, because the actual LIN bus, which the students work with, is not modificable. And with the arduino-platform there is much more modification possible, also in the future. The first toughts were, to put the Cypress LIN-Shield onto the Uno and put an existing code on it. Than modifiy the messages, if it is working. For my small thesis it is not necessary, to build an arduino library or the complete code.
Many thanks in advance!
McMathin