stanleyhuangyc / ArduinoOBD

OBD-II library and sketches for Arduino
http://freematics.com
973 stars 518 forks source link

Need complete walkthrough for getting project up and running #4

Open timfpark opened 10 years ago

timfpark commented 10 years ago

You should add a complete walkthrough for getting this up and working - it was a bit challenging.

Here were the things that tripped me up:

1) I didn't realize I also needed to install the Arduino development platform in addition to CodeBlocks in order to get the serial drivers. 2) I had to copy over the libraries from this project to the CodeBlocks arduino directory in order to get the megalogger code to compile. 3) It was a bit confusing that there is a SD slot on the LCD panel of the kit but that you really need to have a mini-SD for the data logger board.

Thanks again - great platform so far - enjoying using it and looking forward to my GPS to try out more!

stanleyhuangyc commented 10 years ago
  1. You need either Arduino IDE or CodeBlocks actually, not both of them.
  2. You can down a complete package of megalogger which contains directories of libraries here: https://sourceforge.net/projects/obdcon/files/logger/
  3. You can use the SD slot on LCD if making a change in SD2card.h http://arduinodev.com/obd-ii-gps-accelerometer-gyro-data-logger-based-on-arduino-mega2560/#faq
timfpark commented 10 years ago

I just want to clarify that I filed this because its a great platform and I got it working, but I think it would be easier for you and the users if there was a step by step setup guide. I found pieces of information in multiple locations but everything wasn't in one page (for example: which I2C to plug the OBD-II port into which I found on GitHub and how to use CodeBlocks, which I found on your Arduino dev site). You would hopefully get fewer questions about how it all works if it was all in one spot...

For #1 above, I needed the Arduino IDE to get the USB driver to be able to download the code in addition to CodeBlocks. For #3 above, that's great! I'll try that.

stanleyhuangyc commented 10 years ago

Are you suggesting that the USB driver should included in my CodeBlocks distribution?

timfpark commented 10 years ago

No - just letting you know that it might be helpful for other users that if they run into that problem to tell them they need to install the Arduino IDE to be able to download to the Arduino Mega.

famolina commented 10 years ago

Hi, I need help. I have Arduino OBD-II Logger Kit #2 but I am clueless as what to do. I saw what you said at the top. I downloaded CodeBlocks but am still don't know what to do. I could use some help (first arduino device). Thank you

stanleyhuangyc commented 10 years ago

You should really know something about Arduino before you can start with the kit, including all the basic concepts and how to compile and run a sketch. Please head up for Arduino's website for learning. http://www.arduino.cc

famolina commented 10 years ago

So far I figure that.

Thanks

chuckt62 commented 10 years ago

I'm having issues with this code also. I've copied your files hoping it was just my stuff, but I can't get yours to compile either. I created a project named rpm_led under the default IDE setup in my "Documents\Arduino" directory. I also have your OBD dir under that with the .h & .cpp files inside. I think these are the latest files, as they both include code for the I2C adapter.

The initial errors form the compile are listed here:

rpm_led:13: error: 'COBD' does not name a type rpm_led.ino: In function 'void setup()': rpm_led:23: error: 'obd' was not declared in this scope rpm_led.ino: In function 'void loop()': rpm_led:31: error: 'obd' was not declared in this scope rpm_led:31: error: 'PID_RPM' was not declared in this scope

Any help would be greatly appreciated.

Thanks, c

chuckt62 commented 10 years ago

...Okay, I got it to compile.

I had to move the OBD include files up to the same dir as the .ino file and change the angle brackets to double quotes "OBD.h".

It seem like there could something wrong with my path setup?

Edit: After saying that out loud I decided I should move the OBD directory, containing the OBD included files, to the "Arduino\libraries" dir under "My Documents". Then I changed the double quotes back to angle brackets. I had to re-start the IDE so it could see the new lib.

All is well !