Hello,
I just purchased an Uno 3 and want to hook up a simple 3 pin pressure sensor to it. Sorry for the elementary question but is some able to provide a simple code that would work to get basic measurements. Hopefully something I could copy and paste into it.
Thanks for your help!
Welcome to the forum
Your topic has been moved to the Project Guidance category of the forum
Exactly what sort of pressure sensor do you have ? Please post a link to it
It’s an amphenol NPR-101.
Read the data sheet.
Try
sensorReading = analogRead(A0);
after you supply 5 volts to the sensor and hook the sensor output to the A0 pin.
HTH
a7
Thanks! I’ll give it a try this afternoon.
Now does that go under void setup or void loop
It depends on whether you want to read it once (in the setup() functon) or many times (in the loop() function)
Of course, you also need to know the value that has been read. Where are you expecting to see it ?
In short I am looking at the burst pressure of a hose/ catheter under different variables. The hose will be occluded and fluid will be slowly pushed into it. Then I can see what the max pressure is before it bursts. I realize off the bat it won’t tell me a pressure but more of a voltage that will need to be translated into pressure. I wanted to get some readings on the graph function before it gets more involved (coding it to translate voltage to pressure)
looks like the sensor is designed to attach to METAL tubing. Use care not to distort the tubing right at the connection to the pressure sensor.
OK, sry. I did not think beyond that line of code.
You will benefit from the few minutes reading here will take:
HTH
a7
It appears this project is important to you so I highly recommend getting a copy of the Arduino Cookbook then skim it from cover to cover then read the sections that are applicable to your project.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.