Beruflich Dokumente
Kultur Dokumente
Design a real-time data acquisition & control system using the STM32Lxx ARM
Cortex M3 Microcontroller
It is required to monitor and control the temperature in a boiler which ranges from 0C to
100C every 1second using the STM32Lxx ARM Cortex M3 Microcontroller. The
temperature has to be kept at a set-point of 50C 2C. The temperature is measured
through an RTD sensor and is transmitted through a 4-20 mA two wire transmitter. The 4-
20mA is converted to 1 to 5V by 250 ohm terminating resistor. 1 to 5V is available at the
analog input port. 1V corresponds to 0C and 5V corresponds to 100C. An ON/OFF relay
connected to A PIO Port bit is used to control the heater element. A PC is used as the
monitoring and control station.
Read the data through ADC and send the data from 0V to 5V in steps of 0.1V. The same has
to be repeated after reaching the maximum value of 5V.
1. The temperature has to be sent to the PC every 1 second in the following protocol format
and the same has to be displayed using the LAS software in WISE-96 on the PC.
2. Provision should be given for receiving the set-point value of temperature from the PC,
and the set point is to be framed in the above protocol format.
3. If the transmitter is switched off or if it sends invalid data, i.e, below 4mA, an error
message packet similar to the above one with CMD byte set to 95H should be send to the
PC, instead of the data packet.
Hint: Use a Trimpot to apply the voltage. Use an LED to display the ON/OFF status.
ON/OFF control strategy can be used for controlling the power supplied to the heater.