![]() ![]() You can select either the data register, which holds what goes on the screen, or an instruction register, which is where the LCD’s controller looks for instructions on what to do next. RS: A register select pin that controls where in the LCD’s memory you are writing data to. VO: A pin that adjust the contrast of LCD1602 VDD: A pin that connects to a +5V power supply Support USB interface protocol and power supply (without external power supply)ĭigital I/O port: 14 (4 PWM output ports)įlash memory: 32 KB (ATmega328) (0.5 KB for bootloader) Microprocessor: ATmega328 (Chip data sheet is in the documentation) Output voltage: 5V DC output and 3.3V DC output and external power input Input voltage: USB powered or external 7V~12V DC input ![]() Of course, this value can be modified, you only need to modify the temperature according to your living environment. 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 |