Intelligent design of aromatherapy beauty steam bath room

This article refers to the address: http://

Aromatherapy beauty steam bath room should have the following functions: 1 shower function, including top spray, side spray; 2 surf bath; 3 foot massage; 4 aroma beauty; 5 steam sauna; 60,000 calendar; 7 Chinese screen display; Self-test function; 9 automatic detection of temperature and humidity and withering; 10 built-in three classic light music, such as Alice, Jasmine, my heart and so on. This article selects Microchip's PIC16F877 MCU as the main controller, and discusses how to realize the intelligent control of the aromatherapy beauty steam bath room from two aspects of software and hardware.

hardware design

The PlC16F877 microcontroller is the most widely used FLASH CPU from Microchip. It contains 8K FLASH program memory, 368 bytes of RAM, 256 bytes of EEPROM, 35 independently usable I/O ports, and a 16-bit counter. Timer, two 8-bit counters/timers, 14 interrupt sources that can be used independently or nested, 2 traps/comparators/PWM modules, comes with 8 channels of 10-bit A/D, including The dog WDT and the power monitoring module have various power saving modes such as sleep and wait, and the I/O port can directly drive the LCD.

Hardware design block diagram

Based on the functional requirements of the bath room and the characteristics of the PIC16F877 microcontroller, the hardware design principle block diagram of this paper is shown in Figure 1. Among them, the LCD uses OCMJ2×8B Chinese character display module, which is easy to use and easy to operate, and the A/D which comes with the MCU itself. Module

And EEPROM makes the hardware design greatly simplified, the hardware design schematic is shown in Figure 2.

Hardware design schematic

software design

The software design includes three parts of single chip initialization, device self-test, timing sampling, logic judgment, liquid crystal display and button processing. Among them, device self-test is the most important, because the environment of steam bath room is generally damp and easy to cause system failure, so The hardware facilities of the device have high requirements, and the software flow chart is shown in Figure 3.

Software flow chart

In order to ensure the normal operation of the system, the system self-test program is executed first after the boot initialization, and the CPU detects whether each hardware facility is working normally. The CPU self-test subroutine of the CPU is as follows:
Subroutine

If an abnormal condition is found in the self-test subroutine, the corresponding abnormal information is displayed through the liquid crystal and alarmed. This article uses a fine electric liquid crystal display. The procedure is as follows:
Subroutine
Subroutine

The accuracy requirements of the system for temperature and humidity are not very strict. The sampling period in the paper is set to 10 seconds. The average value of 5 different points can be sampled. At the same time, the temperature fluctuation control should not be too small, otherwise the steam generator will start and stop frequently to make the life. The subroutine for shortening the A/D sampling temperature is as follows:
Subroutine

Instructions

Boot

Press the power button, the control system starts, the display shows the current temperature, then enters the standby state, while opening other functions, press the light button, the light is turned on, and then press to turn off the light.

2. Use of steam sauna

1 Open the sauna and press the sauna button for about 1 second. The display shows the sauna screen. The steam generator starts to work. First, the water tank starts to fill the water. When the water level reaches the required level, the steam card starts to heat up, and steam starts to be generated after about 3 minutes. In the process of water injection, if the water volume is not increased after 1 min, the display shows "The amount of water is not enough". If the water tank lacks water in the sauna, the display shows "Insufficient water". In the event of a water failure, the sauna system will automatically shut down and the speaker will alarm until the water tank is normal and filled with water before the steam system is automatically restored.
2 Temperature setting Press the temperature setting button to enter the control temperature menu, then press "UP, DOWN" to set the temperature value, and the display shows the set temperature value, press the enter key to store the set value. When the room temperature is higher than the set temperature, the steam generator will stop automatically; when the room temperature is lower than the set temperature by 1 °C, the steam generator will start automatically, and the default temperature of the system will be 45 °C.

3Time setting Press the time setting button to enter the control time menu, then press the "UP, DOWN" button to set the time value, and the display shows the set time value, press the confirm button to store the set value. When the usage time exceeds the set sauna time, the steam generator is automatically turned off, the timing time is set from 1 to 120 minutes, and the system default time is 60rmin.

4 Aromatherapy Beauty Press the aromatherapy beauty setting button to enter the control aroma beauty menu, and control the operation of the function through the start and stop of the setting menu. The aromatherapy beauty bath designed in this article is equipped with a special aromatherapy steam mask, which can be used to open the aromatherapy function at any time. In addition, there are top spray, side spray, bath, surf and foot massage functions in the bath room. When using, you can open the function menu.

5 Turn off the system and press the power button, the system is turned off. After 1min, the ozone generator automatically performs disinfection and cleaning work. After 4 minutes, the ozone generator automatically shuts down. At the same time, the automatic drainage system of the steam engine starts working and automatically closes after 5 minutes.

The software and hardware control system of the steam bath room designed in this paper embeds the corresponding functions into the single-chip microcomputer, which simplifies the design and reduces the cost.

Nature Wood Tone Series Outdoor Playground

Kids Playground,Outdoor Playground,Outdoor Playground Equipment

Indoor Playground Indoor Solution Co., Ltd. , http://www.nsaoutdoor.com

Posted on