Coder Social home page Coder Social logo

arduino's People

Contributors

franksmicro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino's Issues

CAN Project

Hi Frank,

We are starting a new Electric Car Motor project, and curious if you did any part time consulting, or would just like to be involved with us interfacing a Curtis Motor Controller ?

I'm trying to pick a good CAN shield to build a sniffer, and able to issue some write commands for starters. If that goes well, I think we will make a tablet infotainment interface to our CAN bus, to display valuable data from the controller.

I think you will like the project/vehicle we are building ...

Thanks,
-john
[email protected]

Arduino 1.x compatibility

In Arduino 1.0, the name of the main library changed. To make your libs work again(but still keep compatibility to older versions), you'd want to change

include "WProgram.h"

to

if defined(ARDUINO) && ARDUINO >= 100

#include "Arduino.h"

else

#include "WProgram.h"

endif

I made these changes to use your MCP2515 lib and had no problem working with it afterwards.

queryOBD received byte id doesn't always match sent

Using the provided OBDMPG, I noticed that I was receiving speed data as maf data. What I saw was that the PID for the received data did not match the PID for the requested data. Adding a check to see if the PIDs matched fixed the problem.

This was my fix.

rxSuccess = receiveCANMessage(&msg,1000);
if (rxSuccess) {
     //Check if the PIDs match
    while(msg.data[2] != code){
        rxSuccess = receiveCANMessage(&msg,1000);
        noMatch++;
        if (noMatch >= 5) {
            return 0;
        }
    }
} else {
    return 0;
}

What it does is check if data was received and if the PID matches. If not try again and see if it matches. Repeat 5 times before giving up. If it timesout once, give up.

Update?

Hello, is there an update soon?
Since the time the library was written, lot of things changed on Arduino side.

Thanks.

Send Extended IDs Not Correct

Sorry if this is an issue on my side, but in my testing whenever I would have the library send out an extended message, the ID that it would send out would not be correct.

If I sent 0x123 and have isExtendedAdrs set to LOW, it would send out 0x123. (as expected)
If I sent 0x123 and have isExtendedAdrs set to HIGH it would send out 0x48C0123.
If I sent 0xFFFFAB and have isExtendedAdrs set to HIGH it would send out 0x1EACFFAB.

I've tested this using a NI USB CAN device, and a neoVI Fire.

Receiving extended messages seems to work fine.

EDIT: The first issue I see with this is that register TXB0SIDL is leaving the extended ID bit 17, and bit 16 zero, even if the extended ID uses these bits. This is a bug, but even zeroing these out (which they will be right now) still sends a ID that is not correct.

Obsolete included file

The Keeloq library cannot compile, since it is no longer possible to #include <WProgram.h>. You need to replace it by the more appropriate #include <Arduino.h>.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.