thomasonw / avr_can Goto Github PK
View Code? Open in Web Editor NEWObject oriented canbus library for Atmel AVR CPUs used with the Arduino IDE.
License: GNU Lesser General Public License v2.1
Object oriented canbus library for Atmel AVR CPUs used with the Arduino IDE.
License: GNU Lesser General Public License v2.1
Hi, I'm fairly new to this library but it seems like exactly what I need for a project I'm working on.
The only issue I have at the moment is that I wold like to be able to use the begin(baudrate, enablepin)
function which is listed in the howtouse.txt
file among the other constructors but isn't defined anywhere in the avr_can.h
and avr_can.cpp
files.
Is there any chance it will be implemented in the near future?
Hi.
I have a pair of Sparkfun AST-CAN485 (AT90CAN128 based) boards. When I use their provided CAN library tx/rx samples, I can successfully send/receive CAN data but it has no method of manipulating filters/mailboxes and relies on polling, so I would like (if possible) to use your library.
I tried your simple interrupt based receiver and it appears to "crash" when it starts to receive data from the remote, I have a simple led flasher in the loop function and as soon as I connect the CAN bus (connected to a simple transmitter) the LED stops flashing!
Any ideas?
Thanks
Phil
I setup 2 CAN64 IO (Atmega64M1) boards using Arduino IDE 1.8.1. Both interconnected with CAN High and Can Low (120Ohm bus terminator active on both sides). One is configured with "CAN_SendingTest" and the other one with "CAN_TrafficSnooper". Both compiled with 16Mhz and PSC OFF.
I can see no data coming in on the receiver side and a "FAILED" on transmit side after the 8th message.
Any idea what could be wrong?
Hi Thomas,
I was wondering if there was an Arduino library for some Atmel uC with the CANBUS controller integrated and I found your code.
The question is how to make the porting that uses your library in substitution to the mcp_can.h and mcp_can.c on which many arduino examples are made.
The idea is to use the ATmega16M1 instead of the classic atmega328p with the MCP2515 external can controller.
Do you think that it's possible?
Have you thought on this possibility?
Thanks in advance
I've tried your library and the examples with the internal 8MHz oscillator.
There is some problem running at that speed.
Any suggestion?
Hi, I working in a arduino board with canbus communication, but I want to replace the Atmega328p chip for Atmega32M1 chip, I found your Arduino Core for ATmegaxxM1/C1 CPUs, I installed and work great, but for some reason I can't run the avr_can examples.
I'm not expert programer, I try to check if the canbus port are in correct pins but can't find in your code where you initialize the TX,RX pins, I found where you #define CAN Can0 but where you define the pins? PC2, PC3.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.