From the datasheet image you posted I assume you are using this pH sensor https://cdn.sparkfun.com/datasheets/Sensors/Biometric/pH_EZO_datasheet_v13.pdf , is that right? According to the datasheet, when that sensor is in i2C mode the power LED lights blue and when data transmission is being sent and read the LED lights in different colors. Do you have this behavior with your device? Also, I see from the i2C.write() line that you are using the device in Single reading mode, why don’t you try using a continuous reading mode to see if there are any changes?
Hi, here is the updated datasheet directly from the manufacturers website:
I also placed a power isolator between the Intel Edison Arduino break out board i2c bus (A4/A5) and the ph sensor. The data sheet for the power isolator can be found here:
I believe the power isolator already has 10k pullups.
I don't think the continuous mode will work when the ph sensor is in i2c mode and I don't see the continuous command listed under the i2c available commands.
I see the lights blink and change color the way they are supposed to when the command is sent and when the i2c read is executed.
The 1 that I am receiving corresponds to "Success". To troubleshoot further, I wrote R,34.53 to the ph sensor and then prematurely executed i2c.read () and received 254 which corresponds to "Pending". So, I believe I am receiving the result or a partial result from the sensor.
I'm confused as to where is the remaining data? Is the i2c connection getting terminated prematurely? Or maybe the issue has to do with the power isolator already having 10k pullups?
I read through the mraa github example section which explains, "There is no explicit nodejs API documentation, see the examples. The API itself is very similar to the python one but with a js syntax." So I wrote a rather simple python script that gets the Ph Sensor value successfully.
i2c = mraa.I2c(1)
d = " "
The python code outputs: 2.974 Getting a result proves my circuit design works and now I need to figure out what the NodeJS API is to get a successful i2c reading. Would you or anyone else know the NodeJS API for getting an i2c reading?