![]() ![]() ![]() In my case, it is defined as -1, as the display is sharing Arduino’s Reset pin. Also, the Reset pin of the display has to be defined. Often, the address of 1.3-inch OLED is OX3C. Then, the OLED I2C address is defined, which is can be either OX3C or OX3D, which is OX3C in my case. #include #include #include #include "DHT.h" “ SoftwareSerial.h” and “ wire.h” are inbuilt and “ Adafruit_SH1106.h” can be downloaded from this link and “DHT.h” can be downloaded from this link. So, the first step is to include the entire required library in the code, which are “ SoftwareSerial.h”, “ wire.h”, “Adafruit_SH1106.h” and “DHT.h” in this project. Here we are explaining the entire code line by line. The complete code is given at the end of the document. To make the project setup mobile and more compatible, I soldered all the components on the perfboard as shown in the below image:Īfter completion of successful hardware connection as per the circuit diagram, now it’s time to flash the code to Arduino. Similarly, the digital output pins of Arduino are connected to the Relay and BJT for DC Fan driving. ![]() The OLED display is connected to Arduino via the I2C Pins which are A4, A5 pin of Arduino. ![]() The data pin of DHT11 is connected to the Digital input pin of Arduino as shown and configured in the code. Then this power is supplied to Arduino Nano, OLED, DHT11 and Relay circuits. As shown, first of all a 12V DC power supply is converted into 5V DC power supply using 7805 Regulator and Capacitive filter. Let us learn the circuit diagram in detail. Main features of this dehumidifier are given below:Ĭomplete schematic for building a DIY Humidifier using Arduino is given here: So, the humidifier value is compared with a reference value, and depending on the humidity values, the humidifier is turned ON/OFF. Moreover, depending on the humidity value, we need to trigger the relay, which in turn switches the humidifier to ON/OFF. Since we need to sense the humidity, the DHT11 humidity sensor is connected with Arduino Nano and an OLED display is connected to display the real-time values. The working of the humidifier that we are going to build can be understood by below block diagram:Īs shown in the above block diagram, the ultrasonic humidifier is placed on the water surface in the container. The humidifier floats on the water. The humidifier needs to be floated on water bed to produce the mist. The mist produced in the humidifier is almost immediately absorbed into the air. The sound vibrations propel moisture into the air. Portable humidifier can produce a warm/cool mist by using a metal diaphragm vibrating at high frequency. Components Required for Building a Portable Humidifier If it finds that relative humidity is lower than the required limit, it turns on the humidifier, and vice versa. Apart from Arduino and LCD, we are also using DHT11 sensor to read the atmospheric humidity values. We are also using a display to show the relative humidity (RH) in terms of percentage of moisture in the air. In this diy project, we are going to build an automatic humidifier, which can maintain the relative humidity of the atmospheric air by using sensor mechanism. Especially during winters, when the heater is turned on, it causes the relative humidity of the air to decrease. Humidifier is a device used to increase the relative humidity of a closed area to ensure enough moisture in the area. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |