Page 1 of 1
Trouble uploading code to Data Logger
Posted: Thu Nov 26, 2015 2:20 pm
by kman42
Hi, I'm having trouble writing code to the data logger.
I downloaded the Freematics-master.zip file and imported the library into the Arduino IDE program, and loaded the datalogger sketch. When I try to upload using Programmer however, I get the following message:
datalogger.ino:9:17: fatal error: OBD.h: No such file or directory
compilation terminated.
Error compiling.
Thats all it says. What is going wrong?
Re: Trouble uploading code to Data Logger
Posted: Thu Nov 26, 2015 6:56 pm
by Xavali7
Hi,
Even if you open the Datalogger sketch, and config.h and datalogger.h are there with it, you have to also install the libraries.
With the master zip comes a folder labeled "libraries". You have to copy it over your Arduino installation directory, so that it asks you to combine the folders, and it will add the new libraries to the previous ones (they are OBD, I2Cdev, MPU9150, etc.).
To check if it worked, try to compile (no need to upload when checking) the sketch. That error should no longer be there!
Re: Trouble uploading code to Data Logger
Posted: Fri Nov 27, 2015 8:20 pm
by kman42
Thanks for your help with that. I merged the libraries and the error no longer occurs.
Cheers,
Kendric
Re: Trouble uploading code to Data Logger
Posted: Mon Jan 11, 2016 1:35 pm
by kgtim
Xavali7 wrote:Hi,
Even if you open the Datalogger sketch, and config.h and datalogger.h are there with it, you have to also install the libraries.
With the master zip comes a folder labeled "libraries". You have to copy it over your Arduino installation directory, so that it asks you to combine the folders, and it will add the new libraries to the previous ones (they are OBD, I2Cdev, MPU9150, etc.).
To check if it worked, try to compile (no need to upload when checking) the sketch. That error should no longer be there!
Where can find the master Zip file?
Thank you
Re: Trouble uploading code to Data Logger
Posted: Tue Jan 12, 2016 7:41 pm
by Xavali7
kgtim wrote:Xavali7 wrote:Hi,
Even if you open the Datalogger sketch, and config.h and datalogger.h are there with it, you have to also install the libraries.
With the master zip comes a folder labeled "libraries". You have to copy it over your Arduino installation directory, so that it asks you to combine the folders, and it will add the new libraries to the previous ones (they are OBD, I2Cdev, MPU9150, etc.).
To check if it worked, try to compile (no need to upload when checking) the sketch. That error should no longer be there!
Where can find the master Zip file?
Thank you
This is where Stanley shares the libraries and firmwares:
https://github.com/stanleyhuangyc/Freematics