![]() ![]() When the ambient temperature is greater than 30 ☌, the fan rotates at the fastest speed, and the LCD displays “FAN ON 3” (here, “3” means the current fan speed is the third gear). When the ambient temperature is greater than 28 ° C and less than 30 ° C, the fan rotates at medium speed, and the LCD displays “FAN ON 2” (here “2” means the current fan speed is second gear). When the ambient temperature is greater than 26 ° C and less than 28 ° C, the fan rotates at a low speed, and the LCD displays “FAN ON 1” (here, “1” means that the current fan speed is one gear). When the ambient temperature is less than 26 ☌, the fan is turned off and “FAN OFF” is displayed on the LCD. In this experiment, Arduino mainly controls the motor by reading the value of DTH11. Automatic speed regulation according to temperature.If you want to use it in a household fan, just add a relay control. PS: For the convenience of experiment, here I use a DC motor instead of a household fan, but the principle is the same. The 1602 display showed the current temperature and humidity and the fan working status. In the experiment, I used Arduino UNO as the main control board, processed the data collected by the DHT11 temperature and humidity sensor and controlled the 1602 display. ![]() Use the Arduino kit in my hand to make a smart fan that automatically turns on or off and automatically adjusts to temperature. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |