Intelligent Toilet Based on 51 Microcontroller

☆ Design Hardware Components: STC89C51 microcontroller + RFP602 thin-film pressure sensor + TRCR5000 infrared sensor + DS18B20 temperature sensor + LCD1602 liquid crystal display + ADC0832 analog-to-digital converter chip + SG90 servo + AT24C02 storage chip + PTC heating element + relay + fan + buzzer + buttons.

1. The STC89C51 microcontroller is used as the control core, updating the display of the seat temperature, temperature limit, and other information in real-time through the LCD1602 liquid crystal display.

2. Limit Setting: Users can set the seat temperature limit by using the increase and decrease buttons, and the set temperature limit will be automatically stored in the AT24C02 storage chip.

3. Lid Sensing: The system uses the TRCR5000 infrared sensor to detect if someone is approaching for urination or defecation. When someone is detected nearby, the system automatically controls the servo to open the toilet lid. After the user leaves, the system will automatically reverse the servo to close the toilet lid.

4. Seat Heating Control: The system uses the RFP602 thin-film pressure sensor to detect if someone is sitting on the toilet. When someone is detected, the system automatically compares the set temperature limit with the measured temperature to control the heating element, thus eliminating the cold toilet seat.

5. One-Button Wash: After the user sits on the toilet and completes their business, pressing the button will activate the water pump for a one-button wash. After washing, the system will automatically start the fan to dry the user, and once drying is complete, the system will enter a delay before activating the relay to flush the toilet.

6. Automatic Toilet Flush: When the infrared sensor detects that a person has left after urination or defecation, the system will automatically delay for a moment before activating the relay to flush the toilet.

7. One-Button Flush: Users can also flush the toilet with a single button press to activate the relay.

Leave a Comment