Comments (10)
Sorry to revive this old thread, but the ATTiny167 appears to be a rare AVR 8-bit chip that supports a LIN controller on the UART pins. Since there exists a port of the Arduino libraries for the ATTiny line, this would eliminate then need for an external LIN transceiver, right? I apologize for the basic questions.
EDIT: Nevermind, I have found the answers to my questions. The answer is NO, the ATTiny does not have a built in LIN transceiver. This software repository is a software implementation of a LIN master MCU, that MUST communicate via TTL serial levels (pins 0 and 1 on the Arduino UNO, or any other UART - The Arduino Mega has 4 of them) to a dedicated LIN transceiver. The one I've found that is the easiest to "breadboard" is the MCP2003/4-A series (http://www.microchip.com/wwwproducts/en/MCP2004A). So, you will communicate with a LIN transceiver IC using the software gandrewstone has written over a dedicated TTL serial port (as I mentioned, pins 0 and 1 for the Uno, or any other UART), and you will attach your LIN bus (LIN only uses 1 pin for data, and 1 pin for GND) to the LIN transceiver.
from lin.
Yes, I used the ATA6663: http://www.atmel.com/images/atmel-9146-lin-networking-ata6663-ata6664_datasheet.pdf
You absolutely need a transceiver to communicate with LIN devices (unless of course your uP has an integrated transceiver)... I do not think that the transceiver chip would affect the checksum though (or any other bits). AFAIK it just handles the electrical issues
from lin.
Thank you for the information. Follow up question, my LIN device operates
at 12V. Does the transceiver step the voltages down so it can communicate
serially with the Arduino's 5V hardware serial port?
On Mar 14, 2016 2:27 PM, "gandrewstone" [email protected] wrote:
Yes, I used the ATA6663:
http://www.atmel.com/images/atmel-9146-lin-networking-ata6663-ata6664_datasheet.pdfYou absolutely need a transceiver to communicate with LIN devices... I do
not think that the transceiver chip would affect the checksum though (or
any other bits). AFAIK it just handles the electrical issues—
Reply to this email directly or view it on GitHub
#2 (comment).
from lin.
yes look as section 3 (Absolute Maximum Ratings) of
http://www.atmel.com/images/atmel-9146-lin-networking-ata6663-ata6664_datasheet.pdf
.
the LIN pin ranges from -27 to 40 v, the logic pins (including TX) from
-0.3 to 5.5v.
On Mon, Mar 14, 2016 at 3:19 PM, Pinguinsan [email protected]
wrote:
Thank you for the information. Follow up question, my LIN device operates
at 12V. Does the transceiver step the voltages down so it can communicate
serially with the Arduino's 5V hardware serial port?
On Mar 14, 2016 2:27 PM, "gandrewstone" [email protected] wrote:Yes, I used the ATA6663:
http://www.atmel.com/images/atmel-9146-lin-networking-ata6663-ata6664_datasheet.pdf
You absolutely need a transceiver to communicate with LIN devices... I do
not think that the transceiver chip would affect the checksum though (or
any other bits). AFAIK it just handles the electrical issues—
Reply to this email directly or view it on GitHub
#2 (comment).—
Reply to this email directly or view it on GitHub
#2 (comment).
from lin.
I'm trying to make this LIN communication work and I could really use some guidance. I want to use an ATmega2560 as a master and have multiple Atmega328p for slaves. I could really use some help understanding how to implement this code and what to change for the master and slave devices. Any help would be very much appreciated, Thanks in advance.
from lin.
I'm trying to use this project with this Lin board and an arduino UNO.
http://skpang.co.uk/catalog/linbus-breakout-board-p-1417.html
have someone experienced it?
i cant make it work till now. are they "compatible"?
from lin.
@ghislaingautier that should be compatible; I have a similar project using the MCP2003B and an Arduino Uno that was originally based on this library: https://github.com/trainman419/bekant
from lin.
@trainman419 do you know how i must use your libary to connect two of these boards https://copperhilltech.com/lin-bus-breakout-board/ with an Arduino Mega2560 one as slave and the other as master and then the master should say "hello" to the slave so that i can read it from the Arduino
from lin.
@philipk25 sorry; this project and my project only implements the LIN master.
from lin.
@trainman419 do you know a libary for a lin slave to use on this breakout board?
from lin.
Related Issues (10)
- File missing HOT 9
- Add header guard to lin.h file. HOT 3
- timeout period is longer than necessary
- LIN response in frame
- Software Serial HOT 3
- Serial Monitor Printing
- LIN Slave HOT 1
- LIN.recv doesn't send Sync and ID frames correctly
- LIN diagnostic frames shall always use checksum calculation of protocol version 1.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lin.