STM32 MCU OLED Smart Water Dispenser Child Lock Automatic Water Replenishment Heating Water Level Detection

Practice making DIY- GC 0 159 -- OLED smart water dispenser

Design based on STM32 microcontroller --- OLED smart water dispenser

2. Function introduction:

Circuit composition: STM32F103CXT6 minimum system + OLED display + DS18B20 to detect water temperature + 1 relay to simulate heating + 1 relay to simulate water supply + 1 relay to simulate water outlet + water level sensor + ultrasonic ranging + multiple buttons (water outlet switch, heating switch, temperature Plus, temperature minus) + multiple LED lights to indicate the status of hot and cold water.

Function: Simply put, the water dispenser can heat hot water, automatically replenish water when the water tank is insufficient, has a child lock function, and has a water cup close to the automatic water discharge function.

1. The single-chip microcomputer reads the temperature of DS18B20 to obtain the water temperature. If the hot water is turned on, it will be heated automatically. If the water temperature is lower than the set temperature, the heating relay will be energized for heating, and if it is higher than the set temperature, it will not be heated. No heating after turning off the hot water function.

2. The liquid level sensor is used to calculate the remaining water volume, and if the water volume is not enough, it will automatically add water. (Water filling relay simulation, turn on the relay to add water after it is lower than the minimum value, and the relay will automatically turn off after 10s, simulating the process of adding water)

3. The position of the water outlet is equipped with an ultrasonic sensor. When the sound wave sensor is judged to be less than the minimum value, the system will automatically discharge the water. There is a child lock button and long press for 3 seconds to determine the child lock is turned on, and the screen also shows that the child lock is on. After turning on this mode, the water cannot be discharged, but it can be heated and kept warm normally.

4. You can customize the heating temperature, and it will heat when it is lower than the set temperature. If you don’t need to continue heating at this time, you can also use the button to control the heating to stop.

5. The current real-time water temperature and remaining water volume are displayed on the OLED screen.

6. Multiple groups of buttons can control the operation of the device: click the water outlet switch to discharge water, click the heating switch to heat, and the temperature can be increased and decreased by temperature to output water temperature.

  1. The indicator light prompts information. The green light is on when the water is cold, the red light is on when the water is hot, and the yellow light (ready to drink) is on when the hot water has reached the target temperature or it will also be on when the water is cold.

3. Details:

Video explanation: Bilibili searches for the UP master "love to engage in single-chip microcomputer" and searches for the keyword " OLED smart water dispenser " in its space to watch the detailed explanation of the video

 

Function demonstration operation :

This is an OLED smart water dispenser based on STM32 microcontroller . Circuit composition: STM32F103CXT6 minimum system + OLED display + DS18B20 to detect water temperature + 1 relay to simulate heating + 1 relay to simulate water supply + 1 relay to simulate water outlet + water level sensor + ultrasonic ranging + multiple buttons (water outlet switch, heating switch, temperature Plus, temperature minus) + multiple LED lights to indicate the status of hot and cold water.

Function: Simply put, the water dispenser can heat hot water, automatically replenish water when the water tank is insufficient, has a child lock function, and has a water cup close to the automatic water discharge function.

1. The single-chip microcomputer reads the temperature of DS18B20 to obtain the water temperature. If the hot water is turned on, it will be heated automatically. If the water temperature is lower than the set temperature, the heating relay will be energized for heating, and if it is higher than the set temperature, it will not be heated. No heating after turning off the hot water function.

2. The liquid level sensor is used to calculate the remaining water volume, and if the water volume is not enough, it will automatically add water. (Water filling relay simulation, turn on the relay to add water after it is lower than the minimum value, and the relay will automatically turn off after 10s, simulating the process of adding water)

3. The position of the water outlet is equipped with an ultrasonic sensor. When the sound wave sensor is judged to be less than the minimum value, the system will automatically discharge the water. There is a child lock button and long press for 3 seconds to determine the child lock is turned on, and the screen also shows that the child lock is on. After turning on this mode, the water cannot be discharged, but it can be heated and kept warm normally.

4. You can customize the heating temperature, and it will heat when it is lower than the set temperature. If you don’t need to continue heating at this time, you can also use the button to control the heating to stop.

5. The current real-time water temperature and remaining water volume are displayed on the OLED screen.

6. Multiple groups of buttons can control the operation of the device: click the water outlet switch to discharge water, click the heating switch to heat, and the temperature can be increased and decreased by temperature to output water temperature.

7. The indicator light prompts information. The green light is on when the water is cold, the red light is on when the water is hot, and the yellow light (ready to drink) is on when the hot water has reached the target temperature or it will also be on when the water is cold.

Watch the video for a detailed introduction to the specific test method. . .

 

To learn more, please watch the video explanation. . .

Guess you like

Origin blog.csdn.net/LS840233684/article/details/131780936