This climate station supplies such data as temperature and humidity at a spot on a vibrant touch-screen show. It may possibly additionally management the temperature by the touch-screen person interface when it exceeds the set threshold stage. The venture could be simply transformed to a private climate station by including extra sensors to measure climate situations outside or indoors.
The digital console supplies straightforward readouts of the information collected by the sensor. The touch-screen has a microSD card reminiscence slot. So, it may be related to a private pc the place information could be displayed, saved, and uploaded to web sites, or used for information ingestion or distribution techniques. The creator’s prototype is proven in Fig. 1.
Parts required for this venture are talked about within the Desk.
Circuit and dealing
The circuit diagram of climate station with system management is proven in Fig. 2. It includes Arduino Uno Board1, DHT22 temperature and humidity sensor, BC548 transistor T1, a 5V single changeover relay, light-emitting diode LED1, and resistors R1 and R2. The 6cm TFT touch-screen show to be mounted on prime of the Arduino board is proven in Fig. 3.
A 9V-12V DC energy provide is used to energy the Arduino board. The touch-screen, DHT22 sensor, and BC548 system driver sections are powered by the 5V provide from Arduino board.
Arduino Uno
It’s the coronary heart of the venture. Temperature and humidity information, TFT contact enter show, and system management inputs are processed by Arduino programming.
TFT touch-screen
The 6cm TFT touch-screen show TS1 is principally an Arduino protect, which could be mounted on prime of the Arduino Uno board. This is without doubt one of the benefits of this show since you don’t want any exterior wires to interface with Arduino.
DHT22
This temperature and humidity sensor offers extra correct readings as in comparison with the favored DHT11 sensor. With this sensor, you may simply program to get humidity in %, temperature in °C and °F models. On this venture, its output pin is related to pin 11 of Arduino board.
DHT22 sensor can both be bought as a sensor or as a module. The sensor comes as a 4-pin package deal out of which solely three pins are used. The module comes as a 3-pin package deal, as proven in Fig. 4. The module has a filtering capacitor and pull-up resistor inbuilt, however for the sensor you could use them externally, if required. In any other case, efficiency of each is similar. The sensor can be manufacturing unit calibrated and therefore straightforward to interface with microcontrollers. It may possibly measure temperature from -40°C to +80°C and humidity from 0% to 100%.
BC548
This standard bipolar NPN transistor is used as driver for switching {the electrical} equipment related throughout the relay module.
Relay module
That is an electromechanical sugar-cube, single-channel relay used to change on/off {the electrical} system related throughout its COM and NO terminals. You should utilize available single-channel relay module. In that case you may join digital pin 11 of Arduino to IN pin of relay module. The pin particulars of relay module are proven in Fig. 5.
The working of the circuit is easy. After importing the code to Arduino Uno board and connecting all of the parts, as proven within the circuit, change on the circuit. You will note the principle panel on the TFT touch-screen, as proven in Fig. 7. Contact the Machine Management choice, utilizing stylus or your fingertip, to activate or flip off the equipment/system comparable to tube-light or air-conditioner. In any other case, contact on the Climate Station choice to examine the present temperature and humidity.
Software program
The software program (weather_light_control.ino) for this venture is written in Arduino programming language. The venture requires particular libraries for DHT22 and touch-screen show, comparable to DHT.h, SPFD5408_Adafruit_GFX.h, SPFD5408_Adafruit_TFTLCD.h and SPFD5408_TouchScreen.h
One of many challenges within the venture is calibrating the contact factors within the touch-screen show.
Relying on the mannequin and measurement of the touch-screen show, it’s worthwhile to calibrate x and y coordinates. The calibrated values within the code utilized by the creator are proven in Fig. 6.
After importing the code to Arduino Uno board, mount the TFT touch-screen on prime of the Arduino board by the header pins already supplied on Arduino board. You may fastidiously place it with a slight push on the touch-screen from prime. Guarantee the right positions of the male header pins from touch-screen show are inserted into the corresponding feminine pins on the Arduino board.
Now you may join the board to USB port of your PC/laptop computer or use a 9V-12V DC provide.
As quickly as the ability is on, the touch-screen show will activate and you’ll see the principle console panel on the TFT touch-screen, as proven in Fig. 7.
To manage the system, comparable to gentle or air-conditioner related throughout the relay, contact the ‘Machine Management’ choice. There are on and off buttons in Machine Management part, as proven in Fig. 8. If you contact ‘on’ button, the LED will glow and on the similar time {the electrical} system/equipment related throughout the relay will activate. Contact the ‘off’ button to show it off.
If you happen to contact the ‘Climate Station’ choice, it is going to take you to a different display screen, as proven in Fig. 9. Right here, you may see the present humidity and temperature values captured by the DHT22 sensor. The humidity right here is principally the relative humidity expressed in proportion, which represents the quantity of water vapour within the air at a given temperature in contrast with the utmost attainable water vapour at that very same temperature. Right here the temperature values are learn in each °C and °F models. So, no conversion is required.
Development and testing
The circuit could be assembled on a breadboard or Veroboard. The creator used a 10x3cm measurement Veroboard to mount the relay, sensor, transistor, LED, 2-pin terminal connector (non-obligatory), and the 2 resistors.
Since a lot of the Arduino pins are utilized by the TFT touch-screen show, you want exterior wires to solder at digital pin 11 of Arduino for the relay driver and analogue pin A5 for the DHT22, as proven in Fig. 10. You additionally must solder 5V and GND pins of Arduino for energy provide to the Veroboard. In case you are utilizing DHT22 sensor as an alternative of the module, ensure you join a 5-kilo-ohm pull-up resistor at its output pin, in any other case it’s possible you’ll not get right temperature and humidity readings.
Additionally word that some 6cm TFT touch-screen shows might not work. So, it is suggested to make use of the mannequin proven in Fig. 3. If you wish to management an equipment like cooler or AC, it’s worthwhile to exchange the sugar-cube relay with a high-power relay having contact rankings above 16A.
Although you may energy the circuit by connecting it to USB port of your PC, you can too energy it with exterior energy provide by the DC jack on the Arduino board. The creator used a 9V DC energy adaptor to energy the Arduino board. When energy is related to the circuit you’ll get the principle console display screen, as proven in Fig. 7.
Obtain Supply Code