61.2k views
4 votes
A pressure transducer has a range of 5 to 1000 psia. The transducer voltage output ranges from 0 to 5 VDc. The supply voltage is 20 V. Write pseudocode to measure the transducer output voltage with a 8-bit A/D and determine if the system is within 5% of the burst pressure of 750 psia and output a warning statement if it is.

1 Answer

5 votes

Final answer:

To measure the transducer output voltage, you can use an 8-bit A/D converter. Here's a pseudocode example: Read the voltage from the transducer, convert the voltage to digital, calculate the pressure, check if it's within 5% of the burst pressure, and output a warning if necessary.

Step-by-step explanation:

To measure the transducer output voltage, you can use an 8-bit A/D converter. Here's a pseudocode example:

  1. Read the voltage from the transducer.
  2. Convert the voltage to digital using the A/D converter.
  3. Calculate the pressure using the range of the transducer and the digital value.
  4. Check if the pressure is within 5% of the burst pressure (750 psia).
  5. If it is, output a warning statement.

User Highwingers
by
7.0k points