Campbell Hausfeld Model Fp200201av Air Compressor Squirrel Cage Fan
Intro: Automatic Fan/Air conditioner System
Welcome! In this Instructable I leave walk you through and through how to build your same own automatic Lover/Air conditioner System. This Instructable deals with a window rooter, which is used to cool kill rooms in the heat of summer. The finish of this project is to create a system that testament automatically monitor and regulate the temperature of a room past controlling a common window sports fan. Additionally, the power to control condition the fan wirelessly with a smartphone wish be enforced using a Esp8266/NodeMCU Wifi Development board along with the IoT app, Blynk. The main control system of rules utilizes an Arduino and a couple of other components. Let's get into IT!
Step 1: Gathering Components
For this Instructable, you wish need:
- Arduino Uno (comes with USB data cable) - Bribe Present (Amazon) (other similar boards care the Arduino Mega will work besides)
- 16x2 Liquid crystal display Display (in that project, I use a display without a 16 pin module adapter. If you have the adapter, Arduino has tutorials on how to wire the module adaptor up to an Arduino Uno)
- DHT11 Temperature/Humidity Sensor (3 pin) - Buy Here (Amazon) - there are two versions: a 3 pin and a 4 pin. Here I use the 3 pin sensor every bit information technology is easier to use and wire upbound because you Don River't have to add a resistance. Make sure to check the pinout of your sensor, as different manufacturers have slightly different pinouts for this sensor.
- 10k Ohm Potentiometer - Buy out Here (Amazon)
- 2 Pushbuttons - Buy Here (Amazon)
- Metal Power train Servo - Buy Here (Amazon) - you do not have to use a metal gear servo, every bit it all depends on your windowpane fan. The servo will represent used to move the switch on the fan, so information technology totally depends on how much force is required to move the switch. I use a beefy metal gear servo because my fan has a sturdy switch, and in imprecise, metal gear servos are way less likely to break than regular plastic gear servos.
- Male to Male person & Young-begetting to Female Jumper Wires - Buy Here (Amazon)
- Esp8266/NodeMCU Wireless local area network Ontogeny Board - Steal Here (Amazon)
- Blynk (Free mobile app available on App Store and Google Fun)
- Micro USB Cablegram for scheduling Esp8266/NodeMCU
- Miscellaneous materials for constructing a gimmick to allow the servo to move the switch on the devotee. (A picture of my device will be enclosed boost down)
Step 2: Wiring It All In the lead
The custom-made wiring plot for the Arduino is shown above.
*IMPORTANT NOTE*
The DHT11 and Esp8266/NodeMCU some still have to Be wired up to the Arduino. The servomechanical also needs to embody wired upwards to the Esp8266/NodeMCU.
Connections:
DHT11 ---> Arduino
VCC ---> 5v (on breadboard)
GND ---> GND (on breadboard)
Signal (S) ---> Analog Pin A0
____________________________
Arduino ---> Esp8266/NodeMCU
Digital Thole 8 ---> Digital Pin 3 (D3)
Digital Pin 9 ---> Digital Pin 2 (D2)
____________________________
Servosystem Connections
Red Wire ---> 5v (on breadboard)
Black/Brown Wire ---> GND (along breadboard)
Yellow/Orange Wire ---> Appendage Pin 0 (D0) on Esp8266/NodeMCU
Step 3: Programming the Arduino
The downloadable Arduino file for the important Arduino circuit is located beneath.
*IMPORTANT*
Make a point you have the required libraries installed (dht11 and LiquidCrystal)
*If you already have both of these libraries installed (countercheck, as there are many different DHT11 libraries) then you can upload the Arduino code from the file above to your Arduino*
To download the LiquidCrystal Depository library, in the Arduino IDE, click happening Sketch, Include Library, and then click on Manage Libraries. Wait for all of the libraries to load, and then type LiquidCrystal in the search block off. It should be the first library to show, by Arduino and Adafruit. (FYI this may already be installed, as this is one of the libraries that much comes assembled-in when you download the IDE. If it is, then just go to the next paragraph) Make sure it is the most recent edition, and click Install. When it is cooked installing, close stunned of the IDE.
To download the dht11 library, go here, and click on the K push on the right that says "Clon Oregon Download", and click "Download ZIP". A zip file should Be downloaded to your device. Open choke Arduino IDE and come home on Study, Include Program library, and Add .ZIP Library. Select the compressed ZIP code file you just downloaded. Once the library has successfully been installed, preclude of the IDE once more. Re-open it and navigate to the Custom_Fan_AC_System. Now you can quality your board and port and upload it to the Arduino.
Whole tone 4: Setting Rising Blynk With the Esp8266/NodeMCU
Foremost, download the Blynk app from either the App Fund (iOS) or the Google Play Store (Android).
Open up the app, and make an account. Create a New Project, and name IT Automatic Buff A/C System. Choose Esp8266 or NodeMCU for the device (either should work). Choose WLAN as the connection type. Then click "Create Project". An authentication code should be created. That leave be used later.
In real time chink happening the screen (Oregon swipe left) and a menu should crop up. Click on Styled Button, and insert System Control as the name. For Pin, scroll to Whole number and select D1. Slide the Mode from the Force out to the Switch. For the slay pronounce, name IT Elbow room. For the along label, name IT Mobile. Then click Sooner State at the top opportune of the screen. Click on the screen again to go to the fare, and click luger. Name it Fan Switch. For the Pin, whorl to Virtual and superior V0. If the set range is from 0-1023, change the 1023 to 180. So sink in OK at the top right. Click on the screen one last time and scroll down until you see Segmented Switch. Click "Tot up Option" and since my fan has three settings, Off, Moo, and High, I named the first option Off, then Low, then High. DO NOT CONNECT THIS SWITCH TO A PIN. Place this switch below the slipper. (the reason for this switch will suit clear later)
_____
There is unity much library (maybe two) you need to put in, and that is the Blynk library. Again, go into the Arduino IDE, to Adumbrate, Let in Library, then Library Manager. Search Blynk in the search box, and the one away Volodymyr Shymanskyy should come up. Download the latest variation and once it is done, close unfashionable of the IDE.
_____
Make in for you have the Servomechanical library installed. It is a built-in library for the IDE, indeed IT should be installed. The library is by Michael Margolis and Arduino. If it is non installed, install the in style version and exit out of the IDE.
_____
The Esp8266 needs to be setup within the IDE. It is sort o simple, just open the IDE and attend File, Preferences, and in the Additional Boards Manager URLs package, type in:
http://arduino.esp8266.com/sound/package_esp8266c...
Then click OK.
_____
Attend Tools, Board, past Boards Manager. Search for Esp8266. If information technology is not installed, put in it and exit out of the IDE erst much.
_____
Open up the IDE, and quid your Esp8266/NodeMCU into your device with the Micro USB Cable. Make sure the Arduino Uno is unplugged. Go to Tools and select the on tap port, and for the Get on, choose NodeMCU 1.0 (Extrasensory perception-12E Module).
_____
Download the file for the Esp8266/NodeMCU above, and read through my comments and fill in the required selective information. Once that is done, upload it to the dining table.
Step 5: Constructing the Servosystem/Fan Switch Device
Here I will show you how I constructed a device to countenance the servo to trade the fan between Low, High, and Off.
I used a piece of clear tube that fit snugly around the switch over of my fan, and I ill-used Lego Technic pieces to create an arm with a sliding retention mechanism that would mount under the window, just alike the rooter. This all depends connected your rooter and the setup of the room. I have a desk near the fan, so I can just setting it to something on the desk. If you brawl not take up a solid nonmoving object just about the window, you may need to attach the control system to the fan now.
The Lego arm can move freely for a certain distance, a length that allows for the switch to actuate fully from terminate to goal. I also affixed a Lego piece to the servosystem horn away using some small-scale screws and brass adapters that came with the servos. I did non strongly secure the Lego arm around the thermionic vacuum tube that is on the switch because the switch needs to move freely enough because the angle of the tube changes referable the switch being a semicircle. I just made a Lego box around the throw so the arm would not have distract turning the fan on and off. There is a video below that you can download and vigil that shows the arm rising close you said it IT moves the interchange. Along to testing!
Step 6: Testing &ere; Boilersuit Explanation of Project
I decided to make this project after my brother and I repeatedly disagreed happening the temperature of our room. I like the fan on a lot so the room is very cool, and he ends up turning off the fan a lot of the time, saying that IT is too cold. Additionally, when IT is hot out, I sometimes bury to turn the fan on when I'm not in the board, and when I plump skyward to sleep the room is so tropical, and I own to go on the fan then, which doesn't alteration the temperature fast enough for a good sleep. So I get to earn a scheme that can solve the problem.
_____
This system has two elements: the Smart Part and the Non-automatic Part
The Automatic Part is controlled by the Arduino, where information technology constantly takes the temperature and displays IT on the LCD screen. The Arduino besides uses the two pushbuttons to adjust the desired temperature of the room. In Automatic Mode, Beaver State Elbow room Musical mode, the Arduino turns on the winnow when the desired temperature is lower than the true temperature. When the desired temperature is reached, information technology turns off the fan. The Blynk App is used to see to it the whole system, as the button can turn the fan into Room Modality and into Mobile Style, which allows for the user to control the servo and the sports fan remotely. When in Mechanised Mode, the user uses the slider to control the servo. The Arduino still keeps displaying the Current Temperature and the Wanted Temperature connected the LCD.
_____
Testing:
Erst you have uploaded the cypher onto both the Arduino and the Esp8266/NodeMCU and created a way for the servo to control the fan switch, you have to turn everything happening. Power up the Arduino and Esp8266/NodeMCU (whether that atomic number 4 through USB, a 5v origin, etc.) and wait a few seconds until everything is turned happening. Then open the Blynk app and enter the project screen and hit the play button at the top right. IT should be connected to the Esp8266/NodeMCU. Click the pushbuttons to make a point they adjust the in demand temperature, and make a point the LCD also changes with information technology. In the Blynk app, dawn the switch indeed the system is in Mobile Mode. Then actuate the slipper and release IT and you should see the servo run (to the stead of the numeral of degrees that the slider shows. If it doesn't show the value, depart into the slider and handicap the switch that says "Show Value"). Move the skidder around until you get the exact numbers that prompt the servo so your fan turns on and remove. Inscribe these numbers racket into the Arduino code. * I only programmed in the low and polish off settings, even though mine has a high place setting, as the moo scope is powerful decent * Re-upload the code to the Arduino.
The purpose of the metameric switch underneath the slider is to reveal the values for the settings along the fan, since you testament be controlling remotely with the slider. I denatured the name of my options to
Choice 1. Off - (value)
Option 2. Low - (value)
Choice 3. Up - (value)
This way I know where to put the slider when I am dominant the fan remotely. You should enter your servo values into the options so you know where to travel the luger. Then you can switch the Organization back into Room (Automatic) Mode.
____
Once that is done. just ordered the wanted temperature of the room with the two pushbuttons, and the Arduino system wish do the work!
//
If you have some questions/problems, feel released to drop them down on a lower floor and I'll cost happy to help you impermissible! :)
Be the Starting time to Parcel
Recommendations
-
Anything Goes Repugn 2022
Campbell Hausfeld Model Fp200201av Air Compressor Squirrel Cage Fan
Source: https://www.instructables.com/Automatic-FanAir-Conditioning-System/
