Hi Guys:
I need to find a way to connect Spo2 sensor module to Arduino. So, I came cross the Nonin sensor, which seems to support serial communication.
The eatasheet, states that the Controller integrated in the Xpod (The Sensor), is capable of communication via SSP protocol (Synchronous Serial Port). It is written that Arduino supports Serial Port Interface SPI and hence an SPI library is available, however, I have not implemented this type of embedded system before, could someone with more experience tell me if that is feasible to get this module connected to the Arduino?
Note: It streams 3 bytes every seconds, but datasheet says something regarding the bits high and nits low, which confuses me.
So, does it mean that I could use SoftSerial Library for communication?
If yes, do you know how can I determine types of the bytes that is being transferred between Arduino and the sensor?
That is right, second question does not makes sense, that is because lack of experience with soft serial.
I do not know, how can I transfer data transferred form sensor through soft serial, into ASCII format so that later I could process the values, put them into some sort of readable format.
kiandr:
I do not know, how can I transfer data transferred form sensor through soft serial, into ASCII format so that later I could process the values, put them into some sort of readable format.
You need to know the format of data being sent fro the device. The message formats are described in the data sheet you linked to in your first post.
It states that sensor transfers three bytes , once a second. (In mode1, by default streaming mode, where each byte representation is described in the data sheet too)
This might sounds silly, but would this work for example:
while (mySerial.available()>0)
{{
byte Array [i]=mySerial.read();
i++;
}
for (int j=0; j<i; j++)
Serial.print([j]);
}