Explorer and I2C > OpenLog board

Hello,

After spending a few days looking at the forum and trying to make things work (without success) i’m now asking for some help :wink:

I want to use the open log board https://learn.sparkfun.com/tutorials/qwiic-openlog-hookup-guide/all with my explorer board.

this logging board exists in 2 versions (one over serial and it works like a charm), the other one over I2C (the one i tend to use because i need the hardware serial )

the library is https://github.com/sparkfun/SparkFun_Qwiic_OpenLog_Arduino_Library/archive/master.zip
I’ve been using the Wire Library with other devices without problem.

What i’m facing is that not all caracters are written to the SD card, and sometimes new lines are not taken into account

format : h, m, (should be format : h, m, s,Temp)
0,0,0,27.72
0,0,6,27.77
0,0,12,27.70
0,0,18,27.70
0,0,25,27.73
0,0,31,27.73
0,0,37,27.80
0,0,43,27.73
0,0,50,27.600,0,56,27.76 >> new line not taken into acount
0,1,2,27.62
0,1,8,27.73
0,1,15,27.71
0,1,21,27.73

Edit : I have tested the Open Log board on I2C with an arduino UNO and it works like a charm ;-(

1 Like

Hi @laurentchivot,

The UNO doesn’t have anything connected to the I2C, the explorer already has some I2C sensors onboard. Could it be that your logging device has a conflict address with one of onboard sensors?

You can also try Wire1 on A4/A5, to use these you might need to add pullups.

Best regards,
Jan

Hello, Thanks Jan for quick answering my problem.

For the UNO you’re right, but for the ExploRer,

here is the result of an I2C scan
Scanning…
I2C device found at address 0x2A !
I2C device found at address 0x60 !
done

0x60 is the ExploRer onboard device, 0x2A is my board

about A4/A5 should i initialize Wire1.begin ?

Hi @laurentchivot,

Then it must be something else.

That’s correct.

Best regards,
Jan

Hello Jan,

Thanks for guiding us, the problem is not coming from hardware part but more probably grom the library of Open Log. We have foud a workaround.

Regards

Laurent

1 Like