Mixing serial OpenLog and i2c sensors?

NVHLVNOP

Member
Is it possible to switch back and forth and communicate with i2c and serial devices? I am planning a new project and would like to use some i2c sensors and the OpenLog data logger. https://www.sparkfun.com/products/9530

I believe they would both use the SDA and SCL pins on the PicAxe? Or would I use the SerIn and SerOut pins for the OpenLog, and the SCL and SDA pins for the i2c?

My code would go something like this...
1. Read data from i2c sensor
2. Process the data in the PicAXE and convert values to some meaningful value.
3. Output the data to the data logger. I'd like to make a .csv file for opening in Excel.
4. Repeat over and over. I'd be capturing data for 2-3 minutes maximum, so I'd like to get many samples per second if the OpenLog will let me.

Is this setup possible without conflicts? Much thanks in advance!
 

lbenson

Senior Member
From the description: "Power up this device and it will start logging any received serial data at 9600bps" (other baud rates may be set).

So if you don't write the serial to the SCL and SDA pins, and use any other pins for the logging, there should be no conflict.
 
Top