Development of a single-chip computer for the PCBA scheme of the mattress thermostat

2020-12-14 09:04:51

Development of a single-chip computer for the PCBA scheme of the mattress thermostat


Function description of mattress thermostat

1. Power supply voltage:

1. Transmitter: power supply with 2 AAA batteries, 3VDC, wireless module 5V (boost processing is required)

2. Receiver: 220VAC power supply (regulated and rectified for system power supply), relay output 220VAC, wireless module 5VDC.


2. Basic functions:

1. Remote control: send setting parameters and power on/off instructions to the receiver, display clock, set temperature and other parameters (similar to the remote control of air conditioners).

2. Receiver: Receive transmitter parameters, display detection temperature, set temperature, clock, various operating status, etc., can be independently set and operated, and control the heater to run at the set temperature or to control the temperature at a time interval.


3. Controller operation mode:

1. Normal operation mode: run according to the temperature parameters, the output is turned off when the detection temperature ≥ the set value, and the output is turned on when the detection temperature ≤ the set value 3°C (the temperature control hysteresis is set by the receiver, and the factory default is 3°C).

2. Timing operation mode: the temperature control parameters of each period run separately according to the clock.


4. Transmitter function and operating instructions:

1. Initial display: full frequency display for 1.5 seconds after power-on, then display the clock, at this time it is in standby state.

2. Initial control parameters:

1) Temperature control value: 30°C initially at the factory (setting range 25-60°C).

2) Multi-period temperature control factory initial parameters: start running at 20:00 (valid period), operating temperature 30℃, stop running at 07:00 (invalid period).

3. Turn on/off: press the button to turn on when in standby, add on the basis of the display clock: set temperature display (initial display 30℃), normal operation (initial default), flame pattern animation, and at the same time send normal operation parameters to the receiver , Press and hold for 5 seconds to shut down after starting up, the standby display will be displayed, and the shutdown signal will be sent to the receiver at the same time.

4. Temperature parameter setting:

1) Normal operation mode: In this mode, press the key to adjust directly. At this time, the temperature will flash and change, and the key will not operate for 5 seconds to exit the setting and save the parameters.

2) Timing operation mode: During a certain valid period of time, press the key to adjust directly. At this time, the temperature will flash and change, and the key will not operate for 5 seconds to exit the setting and update the temperature control parameters of this period.

3) Pressing the key is invalid during the invalid period of the timing operation mode.

5. Clock setting: press the setting button once after standby or power on, the hours flashes, the button adjusts the hour, after the button the minutes flashes, the button adjusts the minutes, then the button returns to the hour adjustment, the button does not operate for 5 seconds to exit the setting And save the parameters.

6. Multi-period temperature control parameter setting: (24 hours divided into 4 periods)

1) Valid time period setting: Press the setting button twice during standby, and the number 7 number will display 1 (indicating the first time period), the hour 00 flashes, press the button to adjust the hour, then press the minute 00 flash, press the button to adjust the minutes, press the button after finishing The temperature value 30 flashes, press the button to set the temperature value of this period, and then press the button to set the parameters of the next period, the button does not operate for 5 seconds to exit the setting and save the parameters.

2) Valid time period setting: Assuming that the first and second time periods (valid time periods) are set, press the number 7 to display 3 (indicating the third time period), the hour 00 flashes, press the key to adjust the hours, and then press the minute number 00 to flash, press After adjusting the number of minutes, press the temperature value of 30 to flash, the number of the key is reduced to 00 and then the display of OF flashes (meaning no temperature control parameter), after that the key is returned to the hour adjustment, the key is not operated for 5 seconds to exit the setting and save the parameters.

3) Valid period: From this time, it will run according to the temperature control parameters of this period.

4) Invalid period: from this time on idle standby.

5) Note: The hours and minutes are all displayed as 00 during the initial setting, and the re-setting after the setting has been set will display the original set parameters.

7. Operation mode selection: After powering on, press the key to switch to ‘normal operation mode’ or ‘timing operation mode’. At this time, the text of the selected mode flashes, and the button is inactive for 5 seconds to exit the setting and save the parameters.

8. Data transmission: After each setting operation is completed, the button will not operate for 5 seconds, and the setting data will be sent (multiple transmissions, the number of times will be determined according to specific requirements).

9. Parameter storage: All parameter settings and modifications are saved as the latest and only data, and will not be lost after power failure.


5. Receiver specific functions and operating instructions:

1. Initial display: full screen display for 1.5 seconds after power-on, then standby display: clock, detected temperature, preset temperature display.

2. Initial control parameters:

1) Factory default value of temperature control: 30℃ (setting range 25-60℃).

2) Multi-period temperature control parameters leave factory initial: start running at 20:00 (valid period), operating temperature 30℃, stop running at 07:00 (invalid period).

3. The function of the buzzer:

1) A short beep every time the button is pressed

2) After each setting is completed, press the OK button and then a long beep

3) Fault alarm di-di-di——di-di-di 3 groups of consecutive beeps.

4. Turn on/off:

1)Operation of this machine: press and hold the OK button for 5 seconds to turn on the machine in standby mode, and add on the basis of displaying the clock and detecting temperature: preset temperature display (initial display 30℃), normal operation (initial default), flame pattern animation (output Animation when it is turned on, and it goes out when the output is turned off), after power on, press and hold the OK button for 5 seconds to power off, and the standby display.

2)Remote control operation: When it is in standby, it will be turned on after receiving the remote control signal, and run according to the data display. After the power is turned on, it will be turned off when it receives the remote control off signal, and the standby display will be displayed.

5. Temperature parameter setting:

1) Normal operation mode: In this mode, press the key to adjust directly. At this time, the temperature will flash and change, press OK to save the parameters and exit the setting.

2) Timing operation mode: During a valid period of time, press the key to adjust directly. At this time, the temperature flickers and changes, press the OK key to update the temperature control parameters of this period and exit the setting.

3) Pressing the key is invalid during the invalid period of the timing operation mode.

6. Clock setting: press the set button once after standby or power on, the hours flashes, the button adjusts the hour, after the button the minutes flashes, the button adjusts the minutes, then the button returns to the hour adjustment, press the OK button to save the parameters and exit Set up.

7. Multi-period temperature control parameter setting: (24 hours divided into 4 periods)

1) Valid time period setting: Press the setting button twice during standby, and the number 7 number will display 1 (indicating the first time period), the hour 00 flashes, press the button to adjust the hour, then press the minute 00 flash, press the button to adjust the minutes, press the button after finishing The temperature value 30 flashes, press the button to set the temperature value of this period, then press the button to set the parameters of the next period, press the OK button to save the parameters and exit the setting.

2) Invalid period setting: Assuming that the first and second periods (valid period) are set, press the number 7 to display 3 (indicating the third period), the hour 00 flashes, press the key to adjust the hours, and then press the minute number 00 to flash, press Adjust the number of minutes. After finishing, press the temperature value 30 to flash, the key number decreases to 00 and then the display OF flashes (meaning no temperature control parameter), after that, press the key to return to the hour adjustment, press the OK key to save the parameters and exit the setting.

3) Valid period: From this time, it will run according to the temperature control parameters of this period.

4) Invalid period: from this time on idle standby.

5) Note: The hours and minutes are all displayed as 00 during the initial setting, and the re-setting after the setting has already been set will display the previously set parameters.

8. Operation mode selection: After powering on, press the key to switch between ‘normal operation mode’ or ‘timing operation mode’. At this time, the selected mode text flashes, press the OK button to save the parameters and exit the setting.

9. Temperature control hysteresis setting: long press the key in standby, the temperature number 03 flashes, and the key adjusts the hysteresis parameters (1-20), after finishing press the OK key to save the parameters and exit the setting.

10. Data reception:

1) Execute after receiving the on/off signal more than 3 times.

2) After receiving the parameter modification signal more than 3 times, change the original parameter and run according to the new parameter, and save the last parameter.

11. Parameter storage: All parameter settings and modifications are saved as the latest and only data, and will not be lost after power off.

12. Failure alarm:

1) Low temperature alarm: After starting up, the system will alarm when the temperature is less than or equal to 5 degrees, (numbers 3 and 4) display ‘Lo’.

2) Temperature alarm: After power on, the system will alarm when the temperature is ≥70 degrees, (number 3, 4) display ‘H1’.

3) Temperature sensor open circuit alarm: After power on, the system will alarm when the temperature sensor circuit is open, (number 3, 4) display ‘E1’


6. The encoding and decoding of the remote control and the receiver are programmed by the single-chip microcomputer, and the codes are firstly coded before operation and use. The transmitter adopts the rolling coding technology. After the code is coded, the receiver saves the coding parameters (the details of the technology are determined by the engineer).