Room weather station with network interface on the Tibbo Project System

    Weather station
    This publication will focus on the development of a room weather station based on the Tibbo Project System hardware platform . Flexibility, wide scalability, free programming make it possible to use the above solution both in “home automation” and in creating professional automation systems in the HVAC market (forced ventilation, air conditioning, climate control, etc.). The article shows the work with climate sensors, relays, connection to the AggreGate software platform, 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 indoor climate. As a rule, the device displays information on the current parameters of temperature, humidity, pressure. Often "street" sensors are connected to the station or weather information is downloaded from the Internet. Meteorological stations can be an independent “alert” device or be part of more complex climate control systems, when control actions are performed on the basis of sensor readings according to given scenarios.


    Using Tibbo Project System technology, you can create powerful climate control systems. But here we show the implementation of a small project of a home weather station, which can be taken as a basis in the development of a complete automation system.

    As in any project, first you need to determine the functionality of the future device. It turned out the following:
    1. Ambient temperature measurement in degrees Celsius C.
    2. Measurement of relative humidity in%.
    3. Measurement of atmospheric pressure in mmHg or kPa.
    4. Displays all of the above options on the display.
    5. Date and time display.
    6. The presence of a web interface.
    7. Wi-Fi and Ethernet connectivity.
    8. Availability of relays for future control of actuators.

    But this time we came to the choice of requirements more practical and did not limit ourselves to the listed functions. It was decided to create a basic open source template that will contain the basics for any subsequent project (our or our customers). And already on this template to implement the basic functionality of the device. Thus, new requirements appeared:
    1. Real time clock.
    2. SNTP time synchronization protocol.
    3. Automatically retrieving network settings via DHCP.
    4. Customizable user menu with navigation (on display).
    5. Customizable web interface.
    6. Synchronization with the AggreGate software platform .
    7. The ability to configure the device with network commands.

    Hardware part.

    Based on the TPP2 board . As you remember from previous articles, the board has a built-in microcontroller, memory, network interface, etc. Firmware is downloaded directly through the network. To communicate with the external environment, it is necessary to install I / O modules - Tibbits, on the board.

    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).

    As temperature and humidity sensors, we use module No. 30, and for measuring atmospheric pressure, Tibbit No. 35. The sensors themselves are made on microcircuits and integrated into the “connector”. For their communication with the controller, Tibbits No. 003 are used. If necessary, you can connect external sensors by replacing the corresponding modules.

    Having foreseen the future control of 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 in 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.

    A photo


    Without taking into account the functions from the template, the firmware is extremely simple: polling the sensor values ​​and displaying them (synchronization with AggreGate occurs automatically by the name of the variables). Also, we provided for the operation of the relay (for example, to start the supply ventilation system, air conditioning or heater), at the intersection of the threshold (maximum and minimum) temperature values. 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 an API function call and simple configuration. For example, to add an additional item to 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.

    Source codes are open and we will send them to you upon request.

    AggreGate, Web Interface

    TPS web interface
    For remote monitoring and control, in the template part of the program, code is implemented that allows you to configure parameters using the web interface by printing the device name or its IP address in the browser. Moreover, it is not necessary to have a computer at hand - you can use the web interface from the smartphone.

    In addition, the template part implements AggreGate Agent, which allows you to use the professional software platform AggreGate Scada / HMI . This solution offers not only adjusting 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, producing alerts about emergency situations, and implementing other system behavior models. LicenseAggreGate Scada / HMI up to 3 devices is free.



    New Year promotion starts. If you contact our employees and name the keyword " Habr ", you will receive a 13% discount on any equipment from Tibbo Technology Inc.

    Links: The
    page of the room weather station on our site
    Access control on TPS .
    Accounting for working hours on TPS .
    Overview of the Tibbo Project System .

    Also popular now: