• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer
  • Home
  • Subscribe
  • Your Membership
    • Edit Your Profile
  • Services
    • Advertising
    • Case studies
    • Design
    • Email marketing
    • Lead generation
    • Magazine
    • Press releases
    • Publishing
    • Sponsored posts
    • Webcasting
    • Webinars
    • White papers
    • Writing
  • Shop
    • My Account
    • Cart
  • About
    • Contact
    • Privacy
    • Terms of use
  • Events

Robotics & Automation News

Market trends and business perspectives

  • News
  • Features
  • Video
  • Webinars
  • White papers
  • Press releases
  • Featured companies
    • BlueBotics
    • SICK Sensor Intelligence
    • Vicor Power

STONE TFT LCD for weather station

October 19, 2021 by Liv Leave a Comment

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:

  • Print
  • Facebook
  • LinkedIn
  • Reddit
  • Twitter
  • Tumblr
  • Pinterest
  • Skype
  • WhatsApp
  • Telegram
  • Pocket

You might also like…

Filed Under: Features, Miscellaneous, Technology Tagged With: arduino, STONE LCD, STONE TFT LCD, weather station

Join the Robotics & Automation News community

Reader Interactions

You must log in to post a comment.

Primary Sidebar

Latest articles

  • Is Robot-Assisted Laser Hair Surgery the Future?
  • AMD launches robotics starter kit to ‘kick-start the intelligent factory of the future’
  • Merits and demerits of investing in the crypto world
  • The real-world use cases for blockchain technology
  • Tips for picking a reliable crypto platform
  • Reliable tips for picking the right crypto wallet
  • How Additive Manufacturing Works and Provides Benefits
  • How is technology and innovation changing the field of photography?
  • How robots and RPA will change the business of the future
  • The Pros and Cons of Selling vs Trading in Your Vehicle

Most Read

  • Top 20 electric vehicle charging station companies
    Top 20 electric vehicle charging station companies
  • Track your lost Android
    Track your lost Android
  • Difference Between Three-Phase and Single-Phase Power
    Difference Between Three-Phase and Single-Phase Power
  • Top 20 programmable logic controller manufacturers
    Top 20 programmable logic controller manufacturers
  • Top 25 vertical farming companies
    Top 25 vertical farming companies
  • The Best Mechanical Engineering Design Software in 2022
    The Best Mechanical Engineering Design Software in 2022
  • Top 10 graphics processing unit manufacturers: Nvidia clearly in the lead
    Top 10 graphics processing unit manufacturers: Nvidia clearly in the lead
  • Scientists have found more water in space than they ever knew possible
    Scientists have found more water in space than they ever knew possible
  • What You Need to Know About Fixing an Engine Misfire
    What You Need to Know About Fixing an Engine Misfire
  • How to become a G-Code master with a complete list of G-Codes
    How to become a G-Code master with a complete list of G-Codes

Overused words

abb ai applications automated automation automotive autonomous business china companies company control customers data design development digital electric global industrial industry logistics machine manufacturing market mobile platform process production robot robotic robotics robots safety software solution solutions system systems technologies technology time vehicle vehicles warehouse

Secondary Sidebar

Latest news

  • Is Robot-Assisted Laser Hair Surgery the Future?
  • AMD launches robotics starter kit to ‘kick-start the intelligent factory of the future’
  • Merits and demerits of investing in the crypto world
  • The real-world use cases for blockchain technology
  • Tips for picking a reliable crypto platform
  • Reliable tips for picking the right crypto wallet
  • How Additive Manufacturing Works and Provides Benefits
  • How is technology and innovation changing the field of photography?
  • How robots and RPA will change the business of the future
  • The Pros and Cons of Selling vs Trading in Your Vehicle

Footer

We are…

Robotics and Automation News was established in May, 2015, and is now one of the most widely-read websites in its category.

Please consider supporting us by becoming a paying subscriber, or through advertising and sponsorships, or by purchasing products and services through our shop – or a combination of all of the above.

Thank you.

Independent

Archivists

October 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Sep   Nov »

Complex

Old-skool

This website and its associated magazine, and weekly newsletter, are all produced by a small team of experienced journalists and media professionals.

If you have any suggestions or comments, feel free to contact us at any of the email addresses on our contact page.

We’d be happy to hear from you, and will always reply as soon as possible.

Future-facing

Free, fair and legal

We support the principles of net neutrality and equal opportunities.

Member of The Internet Defense League

Copyright © 2022 · 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