• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • About
    • Contact
    • Privacy
    • Terms of use
  • Advertise
    • Advertising
    • Case studies
    • Design
    • Email marketing
    • Features list
    • Lead generation
    • Magazine
    • Press releases
    • Publishing
    • Sponsor an article
    • Webcasting
    • Webinars
    • White papers
    • Writing
  • Subscribe to Newsletter

Robotics & Automation News

Where Innovation Meets Imagination

  • Home
  • News
  • Features
  • Editorial Sections A-Z
    • Agriculture
    • Aircraft
    • Artificial Intelligence
    • Automation
    • Autonomous vehicles
    • Business
    • Computing
    • Construction
    • Culture
    • Design
    • Drones
    • Economy
    • Energy
    • Engineering
    • Environment
    • Health
    • Humanoids
    • Industrial robots
    • Industry
    • Infrastructure
    • Investments
    • Logistics
    • Manufacturing
    • Marine
    • Material handling
    • Materials
    • Mining
    • Promoted
    • Research
    • Robotics
    • Science
    • Sensors
    • Service robots
    • Software
    • Space
    • Technology
    • Transportation
    • Warehouse robots
    • Wearables
  • Press releases
  • Events

STONE TFT LCD for weather station

October 19, 2021 by Liv

The company recently needs to develop a project that focuses on real-time monitoring of the surrounding environment.

I need to buy some components to do pre-project testing.

Components:
1. Programmable screen
2. Microprocessor
3. Photo resistor sensor

Here is the schematic of my working project:

This application function is divided into three parts:
1. Temperature monitoring
2. Humidity monitoring
3. Light monitoring

Result:

After numerous research, I finally settled on the following model products:

Related devices:
1. DHT11 * 1
2. Photo resistor sensor * 1
3. Dupont wire * 8
4. Arduino module * 1
5. STONE TFT LCD screen *1

STONE TFT LCD and Arduino information interaction.

  • Realize the function of button switching interface.
  • Realize the function of automatically jumping to the main interface at power on.
  • Realize the variable display function.
  • Realization of data variables down.

Arduino peripheral control.

  • Arduino realize the data acquisition and analysis of photo resistor sensor.
  • Arduino realize the data adoption and analysis of DHT11 temperature and humidity sensor.
  • Arduino realize the uploading of effective data to TFT LCD screen.

This is the wiring diagram:

 

Module Introduction

Temperature and humidity sensor
The DHT11 is an all-in-one temperature and humidity digital sensor that includes an internal resistive moisture measurement element and an NTC temperature measurement element and is connected to a high performance 8-bit micro-controller.

A simple external circuit connection is all that is needed to collect local temperature and humidity in real time. the DHT11 communicates with controllers such as micro-controllers using a simple single bus, requiring only one I/O port.

The sensor internal temperature and humidity data 40Bit is transmitted to the micro-controller at once, and the data is checked by means of checksum, which effectively ensures the accuracy of data transmission.

Photosensitive sensors
One of the most common sensors, photosensitive sensors come in a wide variety of types: phototubes, photomultiplier tubes, photo resistors, phototransistors, solar cells, infrared sensors, ultraviolet sensors, fiber optic photoelectric sensors, color sensors, CCD and CMOS image sensors, etc.

The simplest photosensitive sensor is a photo resistor, which generates an electric current when a photon strikes the joint.

Arduino

The Arduino Uno is an ATmega328P based micro-controller board. It has 14 digital input/output pins (6 of which can be used as PWM outputs), 6 analog inputs, a 16MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power socket, an ICSP header, and a reset button.

It contains everything you need to support your micro-controller; just connect it to your computer with a USB cable or power it with an AC adapter or battery to get started.

You can tinker with your Uno without worrying too much about doing anything wrong, and at worst you can spend a few dollars to replace the chip and start over.

STVA101WT-01 serial screen

STVA101WT-01 display module is communicated with MCU through serial port, which is needed in this project.

We just need to add the designed UI images through menu bar options for buttons, text boxes, background images, and page logic through the host computer, then generate the configuration file, and finally download it into the display and it is ready to run.

The data sheet can be downloaded via the official website at https://www.stoneitech.com/support/download

Design and production 

Arduino

STONE tool box interface design

  • Download tools
    To develop based on our STONE TFT LCD, you first need to use to an upper computer development software STONE designer, in this upper computer, all screen-related settings are carried out in this upper computer, so how to download it, click the link below to go to the official website:https://www.stoneitech.com/support/download


Once downloaded, the tool is free to install, so you can put it anywhere on your hard drive and double-click it to run it.

  • Create a new project
    Find TOOL 2019.exe in the directory and double click it to open it.

Select New Project, set the screen size to 1024*600, set the project name to weather, and finally select the path where the project needs to be saved, then click OK.

  • Add picture
    After the completion of the previous step, the default blue background image will be deleted first, and then you need to add the images that need to be used for this application, which are made in advance. The size of the background image needs to be the same as the actual size of the screen, that is, 1024 * 600.

Find the Picture file directory, right click and select Add, and select the desired picture in the pop-up window.

  • Interface
    Here between I deleted the picture marked 0, so from the name of 1 interface, as shown to make changes.

  • Auto play setting
    No. 1 interface I set to auto-play jump, no need to touch the screen to jump, as shown below.

  • Page jumping setting
    When displaying, we will inevitably use the switch page function, here is the temperature interface as an example.

 

First add a button control to the temperature, select “button” control, and draw the corresponding area; then in the right feature settings, set the button effect, here select page 2, that is, when the button is pressed, the corresponding area to display the effect of page 2; then select the page switch function, here select the No. 4 page, that is, when this button is pressed, the page will immediately switch to page 4, that is, the temperature display interface.

  • Text display setting

Under the temperature display interface, a text display control is needed to display the real-time temperature data passed by the Arduino, so it is necessary to add a data variable control, as shown in the following figure.

First of all, you need to set the variable address of the control, this address is very important, the data of the micro-controller can only be displayed by sending data to this address, and then set the format of the display, here choose 2 integers and 1 decimal.

If you feel that the font size of the display is too small to see clearly, you can also adjust the font size, and finally the alignment, I generally choose the center alignment, of course, there are also left-aligned, right-aligned to choose.

  • Push button command control

The STONE TFT LCD sometimes needs to control the micro-controller to achieve a two-way interaction, which is also the case here, and needs to implement the start and stop acquisition function, using the START button as an example.

Select the “return pressed key value” control, which is different from “button” and can send key values to the micro-controller so that the micro-controller can respond.

First set the key effect, here select page 2, when the key is pressed it will display the effect of page 2, here there is no need to switch pages, so select null, it should be noted that it is also necessary to set a variable address.

This variable address can not be repeated, otherwise it may appear invalid, here the variable address is set to 0x000A, also need a key value, set to 0x0002 This value will also be sent down as the key is pressed.

After setting, click compile, then insert the U disk, wait for the recognition to finish and click download to copy the project into the U disk, and plug in the display to upgrade. In this way, the whole project is finished.

 

For reference, here is the code:

int lightState = 0;
bool TemperatureBool = false;
bool HumidityBool = false;
bool illuminationBool = false;
bool illuminationState = false;

uint8_t TemperatureValueInteger = 0;
uint8_t TemperatureValueDecimal = 0;
uint8_t TemperatureValue = 0;

uint8_t HumidityValue = 0;
uint8_t illuminationValue = 0;

uint8_t TemperatureOutput[8] = {0xA5, 0x5A, 0x05, 0x82, 0x00, 0x10, 0x00, 0x00}; //A5 5A 06 83 00 0A 01 00 02
uint8_t HumidityOutput[8] = {0xA5, 0x5A, 0x05, 0x82, 0x00, 0x15, 0x00, 0x00}; //A5 5A 06 83 00 14 01 00 05
uint8_t illuminationOutput[8] = {0xA5, 0x5A, 0x05, 0x82, 0x00, 0x20, 0x00, 0x00}; //A5 5A 06 83 00 18 01 00 08
uint32_t cout_i;
uint8_t RecievedTemp[40];

#include “dht11.h”
dht11 DHT;
#define DHT11_PIN 5
#define PIN_A 3

void setup() {

Serial.begin(115200);

}

void loop() {

DHT.read(DHT11_PIN);

if(Serial.available() != 0)
{
for(cout_i = 0; cout_i < 9; cout_i ++)
{
RecievedTemp[cout_i] = Serial.read();
}
switch(RecievedTemp[5])
{
case 0x0A://Temperature start
TemperatureBool = true;
break;
case 0x0C://Temperature stop
TemperatureBool = false;
TemperatureValue = DHT.temperature;
TemperatureOutput[7] = TemperatureValue;
Serial.write(TemperatureOutput, 8);
break;
case 0x0E://Temperature back
TemperatureBool = false;
break;
case 0x14://Humidity start
HumidityBool = true;
break;
case 0x16://Humidity stop
HumidityBool = false;
HumidityValue = DHT.humidity;
HumidityOutput[7] = HumidityValue;
Serial.write(HumidityOutput, 8);
break;
case 0x13://Humidity back
HumidityBool = false;
break;
case 0x18://illumination start
illuminationBool = true;
illuminationState = false;
break;
case 0x19://illumination stop
illuminationBool = false;
illuminationValue = analogRead(PIN_A);
illuminationOutput[7] = illuminationValue;
Serial.write(illuminationOutput, 8);
break;
case 0x17://illumination back
illuminationValue = 0;
illuminationBool = false;
break;
default:
break;
}
}
}

Just a simple reminder, if you run into problems with your development, Stone has an official forum where you can ask technology-related questions https://forum.stoneitech.com/

Other reference images

—

Article contributed by Grey Ii.

Print Friendly, PDF & Email

Share this:

  • Click to print (Opens in new window) Print
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on X (Opens in new window) X
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on Pocket (Opens in new window) Pocket

Related stories you might also like…

Filed Under: Features, Sections A-Z, Technology Tagged With: arduino, STONE LCD, STONE TFT LCD, weather station

Primary Sidebar

Search this website

Latest articles

  • Levels of intelligence: Navigating the future of AI, from robotic arms to autonomous cars
  • Superwood: A potentially revolutionary material that could replace steel
  • Materials science startup InventWood raises $15 million for its ‘stronger than steel’ Superwood
  • MassVentures to award $4.5 million in grant funding to 26 ‘deep tech’ startups
  • ‘A Robot’s Dream’ analyzed at the Venice Biennale Architecture
  • Benefits of Investing in Quality Commercial Painting Services
  • Construction robotics: Building the future
  • Construction robotics market set to grow from $1.15 billion to $4.10 billion
  • Opinion: Are humanoid robots coming soon to the construction industry?
  • Realtime Robotics releases cloud-based software to accelerate design of robot cells

Secondary Sidebar

Copyright © 2025 · News Pro on Genesis Framework · WordPress · Log in

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT