I would like to be able to operate some valves, to be able to inflate or deflate my springs to a pre-set value. Eventually an automatic leveling system would be great..
I would think you would want a "Gage" pressure sensor (pressure relative to ambient atmospheric) and not the Absolute pressure sensor you pointed to. As you gain altitude and ambient pressure drops you may need to release pressure to get the same effect.
I would like to be able to operate some valves, to be able to inflate or deflate my springs to a pre-set value. Eventually an automatic leveling system would be great..
Hi guys - found this stalled here - I'm doing exactly the same project. Air springs need between 0-30-80 psi depending on where the ride height is going to be.
I bought a 4 button keychain remote/fob and it's wired. I can turn on/off LEDs just fine. What I want to do is use two of the buttons for different ride heights - one for driving normally down the road and one for cruising. (the other two are 'all up' and 'all down'.
So I have the NBPDANN150PGUNV and I get some funny readings when I pin it with +5v in pin 1, GND on pin 3, and A0 pin to pin 2. It jumps all over the place when I touch the sensor with my fingers (which is not the expected result) and if I use a straw to blow into the thing it doesn't register any change. What am I doing wrong?
I'm new to Arduino/electronics - so any help is appreciated. The datasheet is here for the sensor:
See Page 11. Not sure if I need something wired to pin 4 on the sensor?
Just a follow up - I added another line to Vout- and wired that to A1. When I output A0 to the serial port I get jumping numbers that mostly stick around 325 i the Serial Port. When I switch to read A1, I get 520. I'm using this code:
/*
AnalogReadSerial
Reads an analog input on pin 0, prints the result to the serial monitor.
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
This example code is in the public domain.
*/
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
float sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1); // delay in between reads for stability
}