1
\$\begingroup\$

Datasheet of STM32F103X8

I found the sensor output a voltage ranged 0~5V, which is higher than the ADC port can tolerate with (in STM32F1XX datasheet all ADC ports can only tolerate 3.3V).

How to make it accessible to input 0~5V ,without destroying MCU and, not losing too much accuracy of analog voltage input?

Datasheet of sensor

\$\endgroup\$
9
  • 2
    \$\begingroup\$ You can use a voltage divider circuit to scale down the voltage from 0-5V to within the range that the ADC port can tolerate (0-3.3V). \$\endgroup\$
    – liaifat85
    Commented Mar 23 at 8:08
  • \$\begingroup\$ @liaifat85 For example tandem resistors voltage divider? \$\endgroup\$
    – s sss
    Commented Mar 23 at 8:39
  • 1
    \$\begingroup\$ To help get an answer can you edit the question and include a link to the datasheet for the sensor. Depending upon the output impedance of the sensor may affect how a voltage divider with resistors can be achieved. \$\endgroup\$ Commented Mar 23 at 12:13
  • 1
    \$\begingroup\$ The link to the datasheet of sensor which has been added to the question is https://file///C:/Users/Dell2/Desktop/TSW-30.pdf. I.e. a link to a file on your PC and therefore not visible to others. \$\endgroup\$ Commented Mar 23 at 14:24
  • \$\begingroup\$ @ChesterGillon Thanks...ehh but how to upload file in the question though? \$\endgroup\$
    – s sss
    Commented Mar 23 at 15:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.