Request for programming code

Hi, my name is Lee, I just purchased this pressure sensor as shown in link below

Does anyone have the programming code for this sensor. I want to connect this sensor to arduino UNO. I only need this pressure sensor to measure and display the pressure of the surrounding. Please help me !!!

If you want someone to write the code for you, hire someone.
If you want help doing it yourself, show us what you have already tried and describe what doesn't work.
Post the schematic how you hooked it up and there are a lot of people who can help you out correcting it if it is wrong.
There are a lot of examples you can find online for a lot of possible sensors, there is no reason to come asking here for code if you didn't try anything yourself.

Interesting. A data sheet with no digital interface specifications. Good luck.

The interesting part is on the last page:

ADDITIONAL INFORMATION
The following associated literature is available at sensing.honeywell.com:

[ ... ]
• Application information
• Technical notes

  • I2C Communications with Honeywell Digital Output Pressure Sensors
  • SPI Communications with Honeywell Digital Output Pressure Sensors

Does anyone have the programming code for this sensor

Sure. e.g. @honeywell.com

The sensor you link SSCDANN150PGAA5 is Board Mount Pressure Sensors DIP Axial 150 PSI Gage 5V Analog sensor.

The sensor output is:

Output (V) = ((0.8 x Vsupply)/(Pmax - Pmin))* (Pressure apply - Pmin)+0.10 * Vsupply

Pmax =150psi, Pmin=0 , Vsupply = 5V

you can just use the analog read example.

/*
  Analog Input
 Demonstrates analog input by reading an analog sensor on analog pin 0 and
 turning on and off a light emitting diode(LED)  connected to digital pin 13. 
 The amount of time the LED will be on and off depends on
 the value obtained by analogRead(). 
 
 The circuit:
 * Potentiometer attached to analog input 0
 * center pin of the potentiometer to the analog pin
 * one side pin (either one) to ground
 * the other side pin to +5V
 * LED anode (long leg) attached to digital output 13
 * LED cathode (short leg) attached to ground
 
 * Note: because most Arduinos have a built-in LED attached 
 to pin 13 on the board, the LED is optional.
 
 
 Created by David Cuartielles
 modified 30 Aug 2011
 By Tom Igoe
 
 This example code is in the public domain.
 
 http://arduino.cc/en/Tutorial/AnalogInput
 
 */

int sensorPin = A0;    // select the input pin for the potentiometer
int ledPin = 13;      // select the pin for the LED
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup() {
  // declare the ledPin as an OUTPUT:
  pinMode(ledPin, OUTPUT);  
}

void loop() {
  // read the value from the sensor:
  sensorValue = analogRead(sensorPin);    
  // turn the ledPin on
  digitalWrite(ledPin, HIGH);  
  // stop the program for <sensorValue> milliseconds:
  delay(sensorValue);          
  // turn the ledPin off:        
  digitalWrite(ledPin, LOW);   
  // stop the program for for <sensorValue> milliseconds:
  delay(sensorValue);                  
}

Thanks BillHo, appreciate your help. I am new to this, sorry if i cause trouble to you guys. :slight_smile:

These documents might help (not checked if you have the SPI or the I2C version)

SPI Communication with Honeywell Digital Output Pressure Sensors
I2C Communications with Honeywell Digital Output Pressure Sensors

//Edit: Ah, seems even to be something else :wink: