cancel
Showing results for 
Search instead for 
Did you mean: 

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

parth kothiya
Senior

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 ?​

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

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.

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

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 Employee

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.