Skip to main content
parth kothiya
Associate III
April 6, 2022
Solved

Analogue input 0-10V DC or 4-20ma DC measure circuit.

  • April 6, 2022
  • 2 replies
  • 3512 views

I want to measure analogue input ( 0-10V DC , 4-20ma) using STM32 MCU.

STM32 pin ip voltage (0-3.3)

Now I want to convert 0-10V & 4-20ma in to (0-3.3V DC) what is the circuit diagram for getting 0-3.3V output ?​

This topic has been closed for replies.
Best answer by Peter BENSCH

This can be done quite easily by connecting both a resistor in series to the ADC input and two Schottky diodes:

  • from GND --> ADC input
  • from ADC input --> VDD

The first limits negative input spikes, the latter diverts positive voltages with more than VDD+Vf to VDD. Both ensure that the input voltage remains within the permissible range because of the small forward voltage of Schottky diodes.

The resistor limits the current that can flow through an overvoltage, so its size depends on the expected overvoltage. If you use a voltage divider to measure the 0...10V, you can usually do without the series resistor.

Regards

/Peter

2 replies

Peter BENSCH
ST Technical Moderator
April 6, 2022

You asked essentially the same question as you have asked before.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
parth kothiya
Associate III
April 6, 2022

How can I protect MCU pins if input analogue voltage is ​greater than 3.3 voltage?

Or how to limit voltage divider op not increase then 3.3 voltage when ip voltage is increasing grater then 10v.

Example

IP........OP

​0V. 0V

10V. 3.3V

12V. 3.3V

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
April 6, 2022

This can be done quite easily by connecting both a resistor in series to the ADC input and two Schottky diodes:

  • from GND --> ADC input
  • from ADC input --> VDD

The first limits negative input spikes, the latter diverts positive voltages with more than VDD+Vf to VDD. Both ensure that the input voltage remains within the permissible range because of the small forward voltage of Schottky diodes.

The resistor limits the current that can flow through an overvoltage, so its size depends on the expected overvoltage. If you use a voltage divider to measure the 0...10V, you can usually do without the series resistor.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Peter BENSCH
ST Technical Moderator
April 7, 2022

If the problem is resolved, please mark this topic as answered by selecting Select as best under your preferred answer. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.