
This publication will focus on the development of a room weather station based on the
Tibbo Project System hardware platform. Flexibility, wide scalability, and free programming allow using this solution both in “home automation” and for creating professional automation systems on the
HVAC market (inlet ventilation, air conditioning, climate control, etc.). The article shows work with climatic sensors, relays, connection to the AggreGate software platform, and visualization of parameters on the display. You will see how easy it is to create your own automation devices using
Tibbo Technology .
Home weather stations notify the user about the microclimate indoors. As a rule, information on current parameters of temperature, humidity, pressure is displayed on the device display. Often, “street” sensors are connected to the station or weather information is downloaded from the Internet. Weather stations can be an independent “alert” device or be part of more sophisticated climate control systems, when, based on sensor readings, control actions are performed according to specified scenarios.

Requirements
With
Tibbo Project System technology, you can create powerful climate control systems. But here we will show the implementation of a small project of a home weather station, which can be taken as the basis for the development of a complete automation system.
As in any project, you first need to determine the functionality of the future device. It turned out the following:
- Measurement of ambient air temperature in degrees Celsius C.
- Measurement of relative air humidity in%.
- Measurement of atmospheric pressure in mm.rt.st. or kPa.
- Displays all of the above parameters on the display.
- Display date and time.
- The presence of a web interface.
- Communication via Wi-Fi and Ethernet.
- Availability of relays for future control of actuators.
But this time we came to the choice of requirements more practical and not limited to the listed functions. It was decided to create a basic open source template that will contain the basis for any subsequent project (ours or our clients). And already on this template to implement the main functionality of the device. Thus, new requirements have appeared:
- Real time clock.
- SNTP time synchronization protocol.
- Automatically retrieve network settings via DHCP.
- Customizable user menu with navigation (on display).
- Customizable web interface.
- Synchronization with the AggreGate software platform.
- Ability to configure the device with network commands.
Hardware part
Based on the selected board
TPP2 . As you remember from previous articles, the board has a built-in microcontroller, memory, network interface, etc. The firmware is downloaded directly through the network. To communicate with the external environment, on the board you need to install I / O modules - Tibbits.
')
TPP2 is powered by 5V. To work with a standard 12V power supply, we install a power converter (tibbit no. 9) and a connector (tibbit no. 18) on the board. You can also choose a converter from 24 / 48V to 5V (
Tibbit No. 25).
We use module No. 30 as temperature and humidity sensors, and tibbit No. 35 for measuring atmospheric pressure. The sensors themselves are made on chips and integrated into the "connector". For their communication with the controller, Tibbits No. 003 are used. If necessary, you can connect external sensors, replacing the corresponding modules.
Having foreseen the future control of the actuators, we also installed 2 relays on the board (made in the form of Tibbit No. 032). The GA1000 module (Wi-Fi modem) is installed into a special connector, to which an external antenna is connected. It remains to install the case with the display and the hardware assembly is ready.
CODE
Disregarding the functions from the template, the firmware is extremely simple: polling the values ​​of the sensors, and their output to the display (synchronization with
AggreGate occurs automatically by the name of the variables). Also, we provided for the relay to be triggered (for example, to start the ventilation system, air conditioner or heater), when crossing the threshold (maximum and minimum) temperature values. The threshold values ​​can be set regardless of the time of day and with reference to the day / night scenario (the beginning of the day or night is set in the settings).
The functionality of the project template is made in the form of well-documented libraries with API function calls and simple configuration. For example, to add an additional item in the graphical menu, it is enough to add an entry to a text file with the name of the item and the type of input data.
Source codes are open and we will send them to you upon request.
AggreGate, Web Interface

For remote monitoring and control, in the template part of the program, a code is implemented that allows you to configure settings using the web interface by typing the device name or its IP address in a browser. Moreover, it is not necessary to have a computer at hand - you can also use the web interface from a smartphone.
In addition, the AggreGate Agent is implemented in the template part, which allows the use of the
AggreGate Scada / HMI professional software platform. This solution offers not only setting parameters and monitoring the device, but also organizing scenarios of working with other devices, storing an archive of sensor values, accumulating statistics, responding to alarms, generating alerts about emergency situations and implementing other system behavior patterns. The
AggreGate Scada / HMI license for up to 3 devices is free.
Stock
Starts New Year's action. If you contact our employees and name the keyword “
Habr ”, you will receive a 13% discount on any equipment of Tibbo Technology Inc.
References:
Page of meteorological station on our siteAccess control on TPS .
Accounting for working time on TPS .
Overview of the Tibbo Project System .