Hello guys,
I work in a project with Pressure Sensor HSCDRRN002NDAA5 (Honeywell) and Arduino YUN but I can not get any information from the sensor, in resume I use:
Arduino board: Yun
Sensor: Honeywell HSCDRRN002NDAA5, Datasheet: http://www.mouser.com/ds/2/187/HSC%20Analog-221530.pdf
Software: Arduino 1.5.4
Port: COM17 (I've checked the port for my Arduino in 'device manager' option in Windows)
Library: SSC.h Arduino Playground - HoneywellTruStabilitySSC-HSCPressureSensors
Code, the basic one of the example:
#include <Wire.h>
#include <SSC.h>
// create an SSC sensor with I2C address 0x78 and power pin 8.
SSC ssc(0x78, 8);
void setup()
{
Serial.begin(115200);
Wire.begin();
// set min / max reading and pressure, see datasheet for the values for your
// sensor
ssc.setMinRaw(0);
ssc.setMaxRaw(16383);
ssc.setMinPressure(0.0);
ssc.setMaxPressure(1.6);
// start the sensor
Serial.print("start()\t\t");
Serial.println(ssc.start());
}
void loop()
{
// update pressure / temperature
Serial.print("update()\t");
Serial.println(ssc.update());
// print pressure
Serial.print("pressure()\t");
Serial.println(ssc.pressure());
// print temperature
Serial.print("temperature()\t");
Serial.println(ssc.temperature());
while(1) {
// use Serial as a command stream
while(Serial.available()) {
ssc.commandRequest(Serial);
}
delay(100);
}
}
I connect the following port of the sensor to Arduino board:
Pin2 -> 5V
Pin3 -> Pin 8 of Arduino
Pin4 -> GND
I can blink my Arduino board then the problem (I suppose) is on the code.
Any advice?
Thanks.