I have a hollow tube on the upper pressure sensor opening for testing purposes (I blow or suck the tube). The other pressure transducer opening (on the bottom) is not used and remains open.
The Problem The Arduino IDE serial plotter does plot using the sketch below, but shows no change in response to pressure change.
Comment on power The pressure sensor indicates 5V, but a 5V external power source (not the USB) rapidly made the Uno extremely hot, which I caught when I started to notice burning smell! The output from the power source was definitely 5V, so I am not sure why the overheating. Yet, I also cannot run the sensor on 5V with USB power alone. When I try to use the 5V on the board on just USB power alone, the LED indicator on the Arduino goes out and the computer can no longer detect the board.
(I do need to keep the baud rate to eventually read into a BrainVision visualizer with several other LSL inputs that has default 500 Hz.)
Arduino Uno Sketch
void setup() {
Serial.begin(115200);
}
void loop() {
int sensorValue = analogRead(A0);
float voltage = sensorValue * (3.3 / 1023.0); // Convert to voltage
Serial.println(voltage);
delay(500);
}
There is little useful information on the product page, except the statement that sensor output voltage is 0.5 to 4.5V, which strongly suggests it is intended for 5V only operation.
Since the Arduino got hot when you wired the sensor to an external power supply, it and/or the sensor have likely been damaged, and neither should be trusted.
Why 3.3V? The label on your link shows 5V.
When you get burning smell, it's likely too late to save the setup.
Try to understand what was wrong and if any of the components still work.
Debugging hints:
After your Serial,begin(), Wait a second or so until communications is actually esatblushed before using Serial.print().
To begin debugging, just print the RAW VALUES you are getting from the analogrRead(). By the transducer page, the raw values should be about 600 to 700. What are you getting?
Thanks, but I have a second Arduino Uno and the exact same thing happens. When I plug the device into the 5V and a power source in addition to the USB, the lights go out. When I change the device to the 3.3V, the lights stay on.
The power definitely says 5V output, so something about the wiring from the pressure transducer?
Thanks for the thought
As above, I have a second Arduino Uno and had the same behavior. Plugging into the 5V with a 5V power source causes the lights to go out. When I switch back to 3.3V, the lights remain on.
I agree, it looks like it should be on 5V (that's why I made that note), but I clearly cannot be on 5V.
Sensor is faulty or the pins are mislabeled. Even if the sensor was 3.3V device, powering it from 5V should not smoke Arduino, at best it would fry the sensor.
I say you have a high probability of a busted sensor / breakout board. If you have a lab supply with current limiting, hook it up with CC 10 mA and see.