Hi all,
I am doing a project about measuring drag and lift forces on a circular cylinder placed inside a wind tunnel. To do this my university had bought SDP610 differential pressure sensors. This kind of sensors use I2C protocol to transfer data. I am struggling with the code trying to obtain reliable results. I had tried different methods and the one with better results is attached below (SDP611-single.ino). I wonder if someone could help me to simplify it using SDPxx library. I have written a short example using this library and it works but I am pretty sure it does not right. The example is the next:
#include <Wire.h>
#include <SDP6xx.h>
void setup()
{
Wire.begin();
Serial.begin(115200);
}
void loop()
{
Serial.println(SDP6xx.readPA());
delay(1000);
}
I hope anyone can help me, Thanks.
SDP6xx.cpp (4.28 KB)
SDP6xx.h (2.88 KB)
SPD611-single.ino (5.18 KB)