Problems with kit3

Inquiry and support for Freematics products
HSK
Posts: 6
Joined: Tue Sep 16, 2014 8:30 pm

Problems with kit3

Post by HSK »

Hi,

I purchased a Kit #3 with all accessories ( no gps). It's a cool kit with promise.

I downloaded the megalogger code from here: https://github.com/stanleyhuangyc/Ardui ... megalogger
That code don't work for me. There is some error in the compiler (view the attachment).

Do you have any tips?

Thank you!
Attachments
Error =(
Error =(
errorArduinObd.JPG (111.11 KiB) Viewed 24392 times
stanley
Site Admin
Posts: 1026
Joined: Sat Mar 01, 2014 3:15 am

Re: Problems with kit3

Post by stanley »

Is the file MPU6050.h good?
HSK
Posts: 6
Joined: Tue Sep 16, 2014 8:30 pm

Re: Problems with kit3

Post by HSK »

stanley wrote:Is the file MPU6050.h good?

Yes.
The problem is also with obd.h (see picture) .
Can you tell me how fix this?
stanley
Site Admin
Posts: 1026
Joined: Sat Mar 01, 2014 3:15 am

Re: Problems with kit3

Post by stanley »

I have no idea what caused this. I have never seen it on my end.
HSK
Posts: 6
Joined: Tue Sep 16, 2014 8:30 pm

Re: Problems with kit3

Post by HSK »

Can you tell me some standard procedure to use the kit?

I mean the correct program to be loaded on the card, and also the type of software to use.
thanks.
stanley wrote:I have no idea what caused this. I have never seen it on my end.
stanley
Site Admin
Posts: 1026
Joined: Sat Mar 01, 2014 3:15 am

Re: Problems with kit3

Post by stanley »

The majority of users have no problem compiling the sketch. I really don't know why you have these errors.
gambatte
Posts: 16
Joined: Tue Aug 19, 2014 11:21 am
Location: Tokyo, Japan

Re: Problems with kit3

Post by gambatte »

You might want to try removing any other libraries (except for the ones required by the megalogger). I noticed there can be conflicts that cause compile failures, so just go to your ../Documents/Arduino/libraries/ folder and temporarily move out everything except:
- MicroLCD
- MPU6050 <--- this needs to be the one provided by Freematics, it is not the same as the ones you find elsewhere but still called MPU6050
- MultiLCD
- OBD
- TinyGPS
HSK
Posts: 6
Joined: Tue Sep 16, 2014 8:30 pm

Re: Problems with kit3

Post by HSK »

gambatte wrote:You might want to try removing any other libraries (except for the ones required by the megalogger). I noticed there can be conflicts that cause compile failures, so just go to your ../Documents/Arduino/libraries/ folder and temporarily move out everything except:
- MicroLCD
- MPU6050 <--- this needs to be the one provided by Freematics, it is not the same as the ones you find elsewhere but still called MPU6050
- MultiLCD
- OBD
- TinyGPS

Thank you!
I've successfully uploaded the firmware but...after connecting the kit to the OBD port I get the screen stating the following:

- ACC check
- GPS error/cross (but i don't have gps)
- OBD error/cross

How can i do?
gambatte
Posts: 16
Joined: Tue Aug 19, 2014 11:21 am
Location: Tokyo, Japan

Re: Problems with kit3

Post by gambatte »

Is the ignition turned on? Even though there is power to the OBD socket when the ignition is off, you need the ECU to be on (i.e. ignition on) for it to start communicating.
HSK
Posts: 6
Joined: Tue Sep 16, 2014 8:30 pm

Re: Problems with kit3

Post by HSK »

gambatte wrote:Is the ignition turned on? Even though there is power to the OBD socket when the ignition is off, you need the ECU to be on (i.e. ignition on) for it to start communicating.

Yes the ignition is on! The file configure.h is this?

Code: Select all

#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED

/**************************************
* Choose model of OBD-II Adapter
**************************************/
// OBD_MODEL_I2C for I2C version
// OBD_MODEL_UART for UART version
#define OBD_MODEL OBD_MODEL_I2C
#define OBD_PROTOCOL PROTO_KWP2000_FAST

/**************************************
* Data logging options
**************************************/
// enable(1)/disable(0) data logging (if SD card is present)
#define ENABLE_DATA_LOG 0
#define SD_CS_PIN SS

/**************************************
* Data streaming options
**************************************/
// enable(1)/disable(0) data streaming
#define ENABLE_DATA_OUT 1

// uses software(1)/hardware(0) serial for data streaming
#define USE_SOFTSERIAL 0

// this defines the format of data streaming
// FORMAT_BIN is required by Freematics OBD iOS App
#define STREAM_FORMAT FORMAT_BIN

/* Default streaming baudrates:
   9600bps for BLE
   38400bps for BT 2.1
*/
#define STREAM_BAUDRATE 9600

// outputs debug information
#define VERBOSE 0

/**************************************
* GPS configuration
**************************************/
#define USE_GPS 1
#define GPSUART Serial2
#define MAX_GPS_PROCESS_TIME 50 /* ms */
#define GPS_BAUDRATE 38400 /* bps */
//#define GPS_OPEN_BAUDRATE 4800 /* bps */

/**************************************
* Accelerometer & Gyro
**************************************/
#define USE_MPU6050 1
#define ACC_DATA_RATIO 160
#define GYRO_DATA_RATIO 256

/**************************************
* Timeout/interval options
**************************************/
#define OBD_MIN_INTERVAL 20 /* ms */
#define ACC_DATA_INTERVAL 200 /* ms */
#define GPS_DATA_TIMEOUT 2000 /* ms */

/**************************************
* LCD module (uncomment only one)
**************************************/
LCD_SSD1289 lcd; /* 3.2" SSD12389 based TFT LCD */
//LCD_ILI9325D lcd; /* 2.8" ILI9325 based TFT LCD */
//LCD_ILI9341 lcd; /* 2.4" ILI9341 based SPI TFT LCD */
//LCD_Null lcd;

#endif
Post Reply