Friday, August 12, 2022
HomeElectronicsPrivate Climate Station With System Management Utilizing Contact-Display Show

Private Climate Station With System Management Utilizing Contact-Display Show

This climate station gives such data as temperature and humidity at a spot on a vibrant touch-screen show. It could actually additionally management the temperature by the touch-screen person interface when it exceeds the set threshold degree. The mission could be simply transformed to a private climate station by including extra sensors to measure climate circumstances outdoor or indoors.

The digital console gives simple readouts of the info collected by the sensor. The touch-screen has a microSD card reminiscence slot. So, it may be linked to a private pc the place knowledge could be displayed, saved, and uploaded to web sites, or used for knowledge ingestion or distribution methods. The writer’s prototype is proven in Fig. 1.

Author’s prototype
Fig. 1: Writer’s prototype

Parts required for this mission are talked about within the Desk.

Circuit and dealing

The circuit diagram of climate station with gadget 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 high of the Arduino board is proven in Fig. 3.

Circuit diagram
Fig. 2: Circuit diagram
TFT touch-screen display
Fig. 3: TFT touch-screen show

A 9V-12V DC energy provide is used to energy the Arduino board. The touch-screen, DHT22 sensor, and BC548 gadget driver sections are powered by the 5V provide from Arduino board.

Arduino Uno

It’s the coronary heart of the mission. Temperature and humidity knowledge, TFT contact enter show, and gadget management inputs are processed by Arduino programming.

TFT touch-screen

The 6cm TFT touch-screen show TS1 is mainly an Arduino protect, which could be mounted on high of the Arduino Uno board. This is among the benefits of this show since you don’t want any exterior wires to interface with Arduino.


This temperature and humidity sensor offers extra correct readings as in comparison with the favored DHT11 sensor. With this sensor, you possibly can simply program to get humidity in %, temperature in °C and °F items. On this mission, its output pin is linked 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 bundle out of which solely three pins are used. The module comes as a 3-pin bundle, as proven in Fig. 4. The module has a filtering capacitor and pull-up resistor inbuilt, however for the sensor you need to use them externally, if required. In any other case, efficiency of each is identical. The sensor can also be manufacturing unit calibrated and therefore simple to interface with microcontrollers. It could actually measure temperature from -40°C to +80°C and humidity from 0% to 100%.

Pin details of DHT22 module
Fig. 4: Pin particulars of DHT22 module


This standard bipolar NPN transistor is used as driver for switching {the electrical} equipment linked throughout the relay module.

Relay module

That is an electromechanical sugar-cube, single-channel relay used to change on/off {the electrical} gadget linked throughout its COM and NO terminals. You should use available single-channel relay module. In that case you possibly can join digital pin 11 of Arduino to IN pin of relay module. The pin particulars of relay module are proven in Fig. 5.

Relay module
Fig. 5: Relay module

The working of the circuit is straightforward. After importing the code to Arduino Uno board and connecting all of the elements, as proven within the circuit, swap on the circuit. You will note the principle panel on the TFT touch-screen, as proven in Fig. 7. Contact the System Management choice, utilizing stylus or your fingertip, to activate or flip off the equipment/gadget corresponding 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 mission is written in Arduino programming language. The mission requires particular libraries for DHT22 and touch-screen show, corresponding to DHT.h, SPFD5408_Adafruit_GFX.h, SPFD5408_Adafruit_TFTLCD.h and SPFD5408_TouchScreen.h

One of many challenges within the mission is calibrating the contact factors within the touch-screen show.

Relying on the mannequin and dimension of the touch-screen show, it’s essential to calibrate x and y coordinates. The calibrated values within the code utilized by the writer are proven in Fig. 6.

The calibrated values for x and y coordinates
Fig. 6: The calibrated values for x and y coordinates

After importing the code to Arduino Uno board, mount the TFT touch-screen on high of the Arduino board by the header pins already supplied on Arduino board. You may rigorously place it with a slight push on the touch-screen from high. 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 possibly can 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 may see the principle console panel on the TFT touch-screen, as proven in Fig. 7.

Main console
Fig. 7: Most important console

To manage the gadget, corresponding to mild or air-conditioner linked throughout the relay, contact the ‘System Management’ choice. There are on and off buttons in System Management part, as proven in Fig. 8. While you contact ‘on’ button, the LED will glow and on the identical time {the electrical} gadget/equipment linked throughout the relay will activate. Contact the ‘off’ button to show it off.

Device on
Fig. 8: System on

For those who contact the ‘Climate Station’ choice, it’s going to take you to a different display screen, as proven in Fig. 9. Right here, you possibly can see the present humidity and temperature values captured by the DHT22 sensor. The humidity right here is mainly 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 doable water vapour at that very same temperature. Right here the temperature values are learn in each °C and °F items. So, no conversion is required.

Temperature and humidity readings
Fig. 9: Temperature and humidity readings

Development and testing

The circuit could be assembled on a breadboard or Veroboard. The writer used a 10x3cm dimension Veroboard to mount the relay, sensor, transistor, LED, 2-pin terminal connector (non-obligatory), and the 2 resistors.

Since many 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 have to 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 appropriate temperature and humidity readings.

Soldered connections
Fig. 10: Soldered connections

Additionally notice 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 essential to substitute the sugar-cube relay with a high-power relay having contact scores above 16A.

Although you possibly can energy the circuit by connecting it to USB port of your PC, you too can energy it with exterior energy provide by the DC jack on the Arduino board. The writer used a 9V DC energy adaptor to energy the Arduino board. When energy is linked to the circuit you’ll get the principle console display screen, as proven in Fig. 7.

Obtain Supply Code




Please enter your comment!
Please enter your name here

Most Popular

Recent Comments