Ok, obviously I’m a noob because I can’t work this out.
The board I bought is this one:
http://www.sparkfun.com/products/10039
I can’t get the demo code for the CAN-BUS shield to compile, let alone connect it to a car and start streaming CAN over OBDII. The demo code came from the board designer -SK Pang.
http://www.skpang.co.uk/catalog/arduino … p-706.html
I’ve tried on Arduino 0022, 0023 and the new version 1.0, including changing out all the…sLCD.print(COMMAND,BYTE);
to ```
sLCD.write(COMMAND);
The errors I get now are probably related to some of the other driver calls. I can't work out why some of the ".h" includes get highlighted correctly and others do not. For example, in the code there is:
#include <SdFat.h> /* Library from Adafruit.com */
#include <SdFatUtil.h>
#include <NewSoftSerial.h>
#include <Canbus.h>
Sd2Card card;
SdVolume volume;
SdFile root;
SdFile file;
Does that mean I need to track down some other drivers from yet another website? When I go to the Adafruit website, they say that their SD card drivers are now part of the official distribution of Arduino, so do I need to replace them or not? The canbus driver was easy enough. I extracted SK-Pangs can-bus library into the "libraries" folder, and the editor now sees "canbus" as a keyword ok, but where do I find the "SDFatUtil, SDFat and NewSoftSerial" includes?
Amongst the gazillions of errors I get during compling are:
ecu_reader_logger.cpp:15:58: error: SdFat.h: No such file or directory
ecu_reader_logger.cpp:16:23: error: SdFatUtil.h: No such file or directory
ecu_reader_logger.cpp:17:27: error: NewSoftSerial.h: No such file or directory
ecu_reader_logger.pde:-1: error: ‘Sd2Card’ does not name a type
ecu_reader_logger.pde:-1: error: ‘SdVolume’ does not name a type
ecu_reader_logger.pde:-1: error: ‘SdFile’ does not name a type
ecu_reader_logger.pde:-1: error: ‘SdFile’ does not name a type
ecu_reader_logger.pde:-1: error: ‘NewSoftSerial’ does not name a type
Grrr. I've spent hours trying to work this out. It's very frustrating. Anyone know what I'm missing, or why the example code straight from the manufacturers website would not work "out of the box"? I can understand why they might not work in version 1.0 as it is so new, but builds 0022 and 0023 have been around for some time now.
Any assistance appreciated.