Project description
1. Configure and feedback is performed via the RS-232 (UART) interface.
1.1. Commands that are transmitted from the PC from the terminal program by RS-232.
1.1.1. Determination of the upper temperature threshold, the temperature value;
1.1.2. Determination of the lower temperature threshold, the temperature value;
The format of the commands is determined by the developer.
2. Indication of the current temperature on the 7th segment of the indicator with an accuracy of 0.5 ° C.
3. Indication of temperature within or outside a given range
It is performed on LED1 – LED4 and with the help of an audio signal. Algorithm
The indications are as follows:
3.1. If the temperature is within a given range, LED2 and
LED3. The sound signal is silent.
3.2. If the temperature is below the lower limit of the given range, then it glows.
LED1. The sound signal emits a discontinuous sound of a frequency of 500 Hz
Duration of 1 second and with a pause of 1 second.
3.3. If the temperature is above the upper limit of a given range, then it glows.
LED4. The sound signal emits a discontinuous sound of a frequency of 1000 Hz
Duration of 1 second and with a pause of 1 second.
4. Transfer to the PC the current temperature and its status (normal, above or below thresholds)
It is performed through the RS-232 interface 2 times per second. Status display format
Temperatures are determined by the developer.
5. The work is started by pressing the KEY1 button.
6. The shutdown is done by pressing the KEY2 button.
Observations
1. To survey buttons, use the mechanism of software anti-drum.
2. To set the upper and lower thresholds of the temperature range, it is necessary to perform
Check that the upper limit of the range is not below the lower limit of the range.