Hello, any help would be much appreciated. I'm having trouble with an analog 0-15psi Pressure Sensor, for some reason the voltage output is always 2.5v as measured with a milti-meter across pins 12 and 2 on the Arduino, which shows corresponding A0 reading of 520. I did replace the Arduino Nano Every and the sensor with new components, same results. Sensor is wired directly to the Arduino, no bread board, no PCB, just wires soldered direct to sensor and legs of Arduino for most basic testing of sensor. I did disconnect the lead from A0 to measure sensor output independently, same 2.5v.
// 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 12:
int sensorValue = analogRead(A0)
;
Serial.print("Available commands: \n");
Serial.print("MIN:"); Serial.print(1050); Serial.print(", "); // To freeze the lower limit
Serial.print(" ");
Serial.print("MAX:"); Serial.print(0); Serial.print(", "); // To freeze the upper limit
Serial.print(" ");
Serial.print("PotVal:"); Serial.print(sensorValue); Serial.print(", ");
Welcome. Your hardware has a lot of detail and could be a source of problems. You need to post at least a wiring diagram in place of the word salad description. Please go back and read the forum introduction.
Edit - given that you did post some hardware information, what would tie it all together into something that might help us help you, are detail photos of your actual hardware. A wiring diagram seems futile to many people when the wiring is simple, so they post a connection list. Surprisingly often, it turns out that it omits important details or is incorrect.
That sensor is an unamplified, millivolt output bridge type, and is not intended for direct connection with Arduino. The full scale differential voltage output will be on the order of 50 mV.
An instrumentation amplifier module is normally used to convert the analog sensor output to something that the Arduino can measure.
You might be able to use the HX711 strain gauge amplifier to interface it.
Yep, cheaper sensors don't have the supporting electronics inside. Throw the sensor away and get one with built-in instrumentation amp, or even one with a digital interface. Saves you a lot of grief having to build your own preamp.
Leo..
Jremmington and Wawa, thank you for the help! I will look into amplifying the signal from the sensor. You may have guessed this is all new to me, Im a mechanical guy. If you need help machining something out of inconel, let me know!!
aarg, hopefully this clears up the word salad a bit. good day
As jremington said, a HX711 breakout board could fix this.
Going by the table in your image,
Pin1 to E+
Pin2 to A-
pin3 to E-
pin4 to A+
Connect the supply/outputs of the HX 711 as usual. See the many examples on the web.
Leo..