hello everyone help me to complete the task. the task is to read the output from the field sensors the output is in between the range 4-20ma i have to take that as a input to the stm32 microcontroller and i have to map the values in between 0-100 percent according to the input and i have to display the output in 4digit 7segment display? tell me how to write the code for it?
Share
4-20mA is a logic used for sensing signals of instruments on PLC like devices as they have direct interfacing options for industrial automation.
To sense i it with a microcontroller i think you could try using using the adc peripheral with some resistors . Or else you also read on adc using an extra current sensing module or circuit like the one shown in the simulation link : https://www.circuitlab.com/editor/#?id=47s2s6
Hello,
Good Question you have asked but it would be good if you can share more details like what you want.
Also would like to know that have you choose ADC Pin as input from STM32 to read ADC Data or not? If not then first of all you need to select that pin?
Also, Let us know more details or datasheet about 4-20 mA sensor which you want to integrate with STM32.
Regards,
Ritesh Prajapati