Skip to main content
Arduino

Timeline for Reading pressure sensor using Arduino analog

Current License: CC BY-SA 3.0

23 events
when toggle format what by license comment
Apr 9, 2018 at 21:34 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Mar 10, 2018 at 21:03 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Feb 8, 2018 at 20:09 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 9, 2018 at 19:48 history edited dda CC BY-SA 3.0
deleted 192 characters in body; edited title
Jan 9, 2018 at 19:08 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 10, 2017 at 18:45 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Nov 10, 2017 at 18:36 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 11, 2017 at 17:47 answer added Manav timeline score: 0
Sep 20, 2017 at 22:02 answer added Jot timeline score: 0
Sep 20, 2017 at 21:00 comment added Edgar Bonet The Arduino and the sensor need to share a common ground: connect the negative terminals of the power sources together.
Sep 20, 2017 at 20:47 answer added jose can u c timeline score: 1
Sep 20, 2017 at 20:03 comment added resolver101 Added all the details of the project as requested. Hope all the information is there for you. If not, ask away :-)
Sep 20, 2017 at 20:01 history edited resolver101 CC BY-SA 3.0
Advised to change question to expand on the current problem.
Sep 20, 2017 at 18:42 comment added Jot Please update your question. Rewrite it completely, mention the sensor, the resistors, and which Arduino board, and the result that you want (if you want a float value, then you can't use the map function). The sensor you have is not ratiometric and outputs a absolute voltage. When the Arduino reads that, the 5V of the Arduino is default used as a reference. If that 5V changes, so will the resulting measured pressure change, even if the sensor outputs the same voltage. Using the internal reference is better, but it can be 1.0 to 1.2 V and is different for every Arduino board.
Sep 20, 2017 at 8:24 comment added resolver101 2 x 10k resistors. one leads to ground and the other leads to the Arduino analogue in. i don't think i need the the full 100 bar, i will know more after measuring the pressure. When you say how stable is the arduino 5v, can you expand on what you mean?
Sep 19, 2017 at 18:49 comment added Jot Using the map function is okay. Just use it. However, you have a problem with the accuracy. What is your voltage divider made of ? Please tell everything, the resistor values and so on. If that sensor was the 0.5-4.5 ratiometric version, then you would have a good accuracy. With the 0-10V sensor you don't. How good and stable is your Arduino 5V ? Do you need the full 100 bar range ? If you only need to measure up to 50 bar, then only a protection resistor would be needed.
Sep 19, 2017 at 18:43 comment added resolver101 I'm using analogread. I don't understand the maths behind map but I guess thats the beauty of the function. It simplifies the maths so I dont need to.
Sep 19, 2017 at 18:41 comment added resolver101 Its a OsiSenseTM XMLP. It kicks out a 10v output so I've built a circuit with a voltage divider so the output to the Arduino is a maximum of 5V. The power source to the sensor is 24v and is stable.
Sep 19, 2017 at 18:26 comment added Jot Which pressure sensor is it ? The output voltage is probably not 0.0 to 5.0V, but rather 0.5 to 4.5V. How good and stable is your Arduino 5V which is used to power the sensor ? That is important to know. Is the pressure sensor ratiometric ?
Sep 19, 2017 at 16:13 comment added Mikael Patel Assuming that you are using analogRead() with 0 for 0V and 1023 for 5V it is a question of mapping the range 0-1023 to the pressure range 0-100 bar (map(0, 1023, 0, 100)). See arduino.cc/en/Reference/Map. Or use float to keep the resolution.
Sep 19, 2017 at 16:12 review First posts
Sep 19, 2017 at 16:49
Sep 19, 2017 at 16:11 answer added MatsK timeline score: 1
Sep 19, 2017 at 16:09 history asked resolver101 CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /