using pressure sensor with 0-10v output for 0-10bar using arduino but pressure value won't cross 4bar. so is...












1












$begingroup$


I have a pressure sensor working at 24V dc whose output is analog 0-10V for 0-10bar pressure. I am using this sensor with Arduino Uno. I know that the pressure value will never go beyond 4bar. So do I have to use a voltage divider in this case or not using it will still do the job?










share|improve this question







New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$












  • $begingroup$
    "I know that the pressure value will never go beyond 4bar." - How are you so sure? I recommend designing for the full sensor range anyway; that way you can actually measure overpressure if it ever happens, even if that's not expected under normal circumstances.
    $endgroup$
    – marcelm
    2 days ago
















1












$begingroup$


I have a pressure sensor working at 24V dc whose output is analog 0-10V for 0-10bar pressure. I am using this sensor with Arduino Uno. I know that the pressure value will never go beyond 4bar. So do I have to use a voltage divider in this case or not using it will still do the job?










share|improve this question







New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$












  • $begingroup$
    "I know that the pressure value will never go beyond 4bar." - How are you so sure? I recommend designing for the full sensor range anyway; that way you can actually measure overpressure if it ever happens, even if that's not expected under normal circumstances.
    $endgroup$
    – marcelm
    2 days ago














1












1








1





$begingroup$


I have a pressure sensor working at 24V dc whose output is analog 0-10V for 0-10bar pressure. I am using this sensor with Arduino Uno. I know that the pressure value will never go beyond 4bar. So do I have to use a voltage divider in this case or not using it will still do the job?










share|improve this question







New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




I have a pressure sensor working at 24V dc whose output is analog 0-10V for 0-10bar pressure. I am using this sensor with Arduino Uno. I know that the pressure value will never go beyond 4bar. So do I have to use a voltage divider in this case or not using it will still do the job?







arduino sensor voltage-divider






share|improve this question







New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Mar 31 at 3:23









shivamshivam

61




61




New contributor




shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






shivam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • $begingroup$
    "I know that the pressure value will never go beyond 4bar." - How are you so sure? I recommend designing for the full sensor range anyway; that way you can actually measure overpressure if it ever happens, even if that's not expected under normal circumstances.
    $endgroup$
    – marcelm
    2 days ago


















  • $begingroup$
    "I know that the pressure value will never go beyond 4bar." - How are you so sure? I recommend designing for the full sensor range anyway; that way you can actually measure overpressure if it ever happens, even if that's not expected under normal circumstances.
    $endgroup$
    – marcelm
    2 days ago
















$begingroup$
"I know that the pressure value will never go beyond 4bar." - How are you so sure? I recommend designing for the full sensor range anyway; that way you can actually measure overpressure if it ever happens, even if that's not expected under normal circumstances.
$endgroup$
– marcelm
2 days ago




$begingroup$
"I know that the pressure value will never go beyond 4bar." - How are you so sure? I recommend designing for the full sensor range anyway; that way you can actually measure overpressure if it ever happens, even if that's not expected under normal circumstances.
$endgroup$
– marcelm
2 days ago










2 Answers
2






active

oldest

votes


















4












$begingroup$

If we assume your Arduino Uno is powered from 5v, then what you appear to be asking is 'if my sensor voltage always stays within the range 0 to 4v, will it be OK to put it into and ADC that can accept 0 to 5v input?'



Under normal conditions, the answer is obviously yes.



The experienced designer designs things so that they work under 'normal' conditions, and don't break under possible but 'abnormal' conditions. Will your sensor output ever go above 5v? What about a brief blip when it's first switched on? What about water hammer in the pipes you're measuring?



It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail, and use at least a series resistor between sensor and Uno to limit the current to less than this under fault conditions.






share|improve this answer









$endgroup$













  • $begingroup$
    "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
    $endgroup$
    – marcelm
    2 days ago










  • $begingroup$
    @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
    $endgroup$
    – Neil_UK
    2 days ago










  • $begingroup$
    The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
    $endgroup$
    – marcelm
    yesterday



















1












$begingroup$

You might not need a voltage divider considering the range in normal operation, but I recommend a series current limiting resistor to protect the sensor, a clamp diode to Vcc, possibly another series resistor after the clamp diode to protect the ADC, and possibly a smoothing capacitor on the ADC input pin.






share|improve this answer









$endgroup$














    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("schematics", function () {
    StackExchange.schematics.init();
    });
    }, "cicuitlab");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "135"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    shivam is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f429916%2fusing-pressure-sensor-with-0-10v-output-for-0-10bar-using-arduino-but-pressure-v%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4












    $begingroup$

    If we assume your Arduino Uno is powered from 5v, then what you appear to be asking is 'if my sensor voltage always stays within the range 0 to 4v, will it be OK to put it into and ADC that can accept 0 to 5v input?'



    Under normal conditions, the answer is obviously yes.



    The experienced designer designs things so that they work under 'normal' conditions, and don't break under possible but 'abnormal' conditions. Will your sensor output ever go above 5v? What about a brief blip when it's first switched on? What about water hammer in the pipes you're measuring?



    It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail, and use at least a series resistor between sensor and Uno to limit the current to less than this under fault conditions.






    share|improve this answer









    $endgroup$













    • $begingroup$
      "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
      $endgroup$
      – marcelm
      2 days ago










    • $begingroup$
      @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
      $endgroup$
      – Neil_UK
      2 days ago










    • $begingroup$
      The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
      $endgroup$
      – marcelm
      yesterday
















    4












    $begingroup$

    If we assume your Arduino Uno is powered from 5v, then what you appear to be asking is 'if my sensor voltage always stays within the range 0 to 4v, will it be OK to put it into and ADC that can accept 0 to 5v input?'



    Under normal conditions, the answer is obviously yes.



    The experienced designer designs things so that they work under 'normal' conditions, and don't break under possible but 'abnormal' conditions. Will your sensor output ever go above 5v? What about a brief blip when it's first switched on? What about water hammer in the pipes you're measuring?



    It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail, and use at least a series resistor between sensor and Uno to limit the current to less than this under fault conditions.






    share|improve this answer









    $endgroup$













    • $begingroup$
      "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
      $endgroup$
      – marcelm
      2 days ago










    • $begingroup$
      @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
      $endgroup$
      – Neil_UK
      2 days ago










    • $begingroup$
      The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
      $endgroup$
      – marcelm
      yesterday














    4












    4








    4





    $begingroup$

    If we assume your Arduino Uno is powered from 5v, then what you appear to be asking is 'if my sensor voltage always stays within the range 0 to 4v, will it be OK to put it into and ADC that can accept 0 to 5v input?'



    Under normal conditions, the answer is obviously yes.



    The experienced designer designs things so that they work under 'normal' conditions, and don't break under possible but 'abnormal' conditions. Will your sensor output ever go above 5v? What about a brief blip when it's first switched on? What about water hammer in the pipes you're measuring?



    It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail, and use at least a series resistor between sensor and Uno to limit the current to less than this under fault conditions.






    share|improve this answer









    $endgroup$



    If we assume your Arduino Uno is powered from 5v, then what you appear to be asking is 'if my sensor voltage always stays within the range 0 to 4v, will it be OK to put it into and ADC that can accept 0 to 5v input?'



    Under normal conditions, the answer is obviously yes.



    The experienced designer designs things so that they work under 'normal' conditions, and don't break under possible but 'abnormal' conditions. Will your sensor output ever go above 5v? What about a brief blip when it's first switched on? What about water hammer in the pipes you're measuring?



    It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail, and use at least a series resistor between sensor and Uno to limit the current to less than this under fault conditions.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 2 days ago









    Neil_UKNeil_UK

    78.5k284181




    78.5k284181












    • $begingroup$
      "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
      $endgroup$
      – marcelm
      2 days ago










    • $begingroup$
      @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
      $endgroup$
      – Neil_UK
      2 days ago










    • $begingroup$
      The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
      $endgroup$
      – marcelm
      yesterday


















    • $begingroup$
      "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
      $endgroup$
      – marcelm
      2 days ago










    • $begingroup$
      @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
      $endgroup$
      – Neil_UK
      2 days ago










    • $begingroup$
      The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
      $endgroup$
      – marcelm
      yesterday
















    $begingroup$
    "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
    $endgroup$
    – marcelm
    2 days ago




    $begingroup$
    "It would be prudent to check how much current the Uno input can accept without damage when the voltage exceeds the rail..." - That's going to be very little; any overvoltage will be shunted by the ESD protection diodes to VCC, and those diodes are not very beefy. Abuse may render them shorted (as they are on one of the ATMEGA328Ps I have here), killing that pin and possibly the MCU. I recommend external clamping for good protection. I've never found an official figure for the current capabilities of those diodes, but an Atmel app note suggested staying below 1mA.
    $endgroup$
    – marcelm
    2 days ago












    $begingroup$
    @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
    $endgroup$
    – Neil_UK
    2 days ago




    $begingroup$
    @marcelm thanks for checking. Looks like 1mA it is then. 20kohms should be enough to limit the maximu current to 1mA if we assume the input could blip to +24v.
    $endgroup$
    – Neil_UK
    2 days ago












    $begingroup$
    The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
    $endgroup$
    – marcelm
    yesterday




    $begingroup$
    The app note in question is Atmel AN2508 by the way. It should be noted that (unlike datasheets), app notes should be considered more of a suggestion, not an authority. But hey, it gives us a ballpark figure to work with.
    $endgroup$
    – marcelm
    yesterday













    1












    $begingroup$

    You might not need a voltage divider considering the range in normal operation, but I recommend a series current limiting resistor to protect the sensor, a clamp diode to Vcc, possibly another series resistor after the clamp diode to protect the ADC, and possibly a smoothing capacitor on the ADC input pin.






    share|improve this answer









    $endgroup$


















      1












      $begingroup$

      You might not need a voltage divider considering the range in normal operation, but I recommend a series current limiting resistor to protect the sensor, a clamp diode to Vcc, possibly another series resistor after the clamp diode to protect the ADC, and possibly a smoothing capacitor on the ADC input pin.






      share|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        You might not need a voltage divider considering the range in normal operation, but I recommend a series current limiting resistor to protect the sensor, a clamp diode to Vcc, possibly another series resistor after the clamp diode to protect the ADC, and possibly a smoothing capacitor on the ADC input pin.






        share|improve this answer









        $endgroup$



        You might not need a voltage divider considering the range in normal operation, but I recommend a series current limiting resistor to protect the sensor, a clamp diode to Vcc, possibly another series resistor after the clamp diode to protect the ADC, and possibly a smoothing capacitor on the ADC input pin.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        alex.forencichalex.forencich

        33.1k14989




        33.1k14989






















            shivam is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            shivam is a new contributor. Be nice, and check out our Code of Conduct.













            shivam is a new contributor. Be nice, and check out our Code of Conduct.












            shivam is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Electrical Engineering Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f429916%2fusing-pressure-sensor-with-0-10v-output-for-0-10bar-using-arduino-but-pressure-v%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b