using a tft lcd to move a servo made in china

In this article, you will learn how to use TFT LCDs by Arduino boards. From basic commands to professional designs and technics are all explained here.

In electronic’s projects, creating an interface between user and system is very important. This interface could be created by displaying useful data, a menu, and ease of access. A beautiful design is also very important.

There are several components to achieve this. LEDs,  7-segments, Character and Graphic displays, and full-color TFT LCDs. The right component for your projects depends on the amount of data to be displayed, type of user interaction, and processor capacity.

TFT LCD is a variant of a liquid-crystal display (LCD) that uses thin-film-transistor (TFT) technology to improve image qualities such as addressability and contrast. A TFT LCD is an active matrix LCD, in contrast to passive matrix LCDs or simple, direct-driven LCDs with a few segments.

In Arduino-based projects, the processor frequency is low. So it is not possible to display complex, high definition images and high-speed motions. Therefore, full-color TFT LCDs can only be used to display simple data and commands.

In this article, we have used libraries and advanced technics to display data, charts, menu, etc. with a professional design. This can move your project presentation to a higher level.

In electronic’s projects, creating an interface between user and system is very important. This interface could be created by displaying useful data, a menu, and ease of access. A beautiful design is also very important.

There are several components to achieve this. LEDs,  7-segments, Character and Graphic displays, and full-color TFT LCDs. The right component for your projects depends on the amount of data to be displayed, type of user interaction, and processor capacity.

TFT LCD is a variant of a liquid-crystal display (LCD) that uses thin-film-transistor (TFT) technology to improve image qualities such as addressability and contrast. A TFT LCD is an active matrix LCD, in contrast to passive matrix LCDs or simple, direct-driven LCDs with a few segments.

In Arduino-based projects, the processor frequency is low. So it is not possible to display complex, high definition images and high-speed motions. Therefore, full-color TFT LCDs can only be used to display simple data and commands.

In this article, we have used libraries and advanced technics to display data, charts, menu, etc. with a professional design. This can move your project presentation to a higher level.

Size of displays affects your project parameters. Bigger Display is not always better. if you want to display high-resolution images and signs, you should choose a big size display with higher resolution. But it decreases the speed of your processing, needs more space and also needs more current to run.

After choosing the right display, It’s time to choose the right controller. If you want to display characters, tests, numbers and static images and the speed of display is not important, the Atmega328 Arduino boards (such as Arduino UNO) are a proper choice. If the size of your code is big, The UNO board may not be enough. You can use Arduino Mega2560 instead. And if you want to show high resolution images and motions with high speed, you should use the ARM core Arduino boards such as Arduino DUE.

In electronics/computer hardware a display driver is usually a semiconductor integrated circuit (but may alternatively comprise a state machine made of discrete logic and other components) which provides an interface function between a microprocessor, microcontroller, ASIC or general-purpose peripheral interface and a particular type of display device, e.g. LCD, LED, OLED, ePaper, CRT, Vacuum fluorescent or Nixie.

The display driver will typically accept commands and data using an industry-standard general-purpose serial or parallel interface, such as TTL, CMOS, RS232, SPI, I2C, etc. and generate signals with suitable voltage, current, timing and demultiplexing to make the display show the desired text or image.

The LCDs manufacturers use different drivers in their products. Some of them are more popular and some of them are very unknown. To run your display easily, you should use Arduino LCDs libraries and add them to your code. Otherwise running the display may be very difficult. There are many free libraries you can find on the internet but the important point about the libraries is their compatibility with the LCD’s driver. The driver of your LCD must be known by your library. In this article, we use the Adafruit GFX library and MCUFRIEND KBV library and example codes. You can download them from the following links.

You must add the library and then upload the code. If it is the first time you run an Arduino board, don’t worry. Just follow these steps:Go to www.arduino.cc/en/Main/Software and download the software of your OS. Install the IDE software as instructed.

By these two functions, You can find out the resolution of the display. Just add them to the code and put the outputs in a uint16_t variable. Then read it from the Serial port by Serial.println(); . First add Serial.begin(9600); in setup().

First you should convert your image to hex code. Download the software from the following link. if you don’t want to change the settings of the software, you must invert the color of the image and make the image horizontally mirrored and rotate it 90 degrees counterclockwise. Now add it to the software and convert it. Open the exported file and copy the hex code to Arduino IDE. x and y are locations of the image. sx and sy are sizes of image. you can change the color of the image in the last input.

Upload your image and download the converted file that the UTFT libraries can process. Now copy the hex code to Arduino IDE. x and y are locations of the image. sx and sy are size of the image.

In this template, We just used a string and 8 filled circles that change their colors in order. To draw circles around a static point ,You can use sin();  and cos(); functions. you should define the PI number . To change colors, you can use color565(); function and replace your RGB code.

In this template, We converted a .jpg image to .c file and added to the code, wrote a string and used the fade code to display. Then we used scroll code to move the screen left. Download the .h file and add it to the folder of the Arduino sketch.

In this template, We used sin(); and cos(); functions to draw Arcs with our desired thickness and displayed number by text printing function. Then we converted an image to hex code and added them to the code and displayed the image by bitmap function. Then we used draw lines function to change the style of the image. Download the .h file and add it to the folder of the Arduino sketch.

In this template, We created a function which accepts numbers as input and displays them as a pie chart. We just use draw arc and filled circle functions.

In this template, We added a converted image to code and then used two black and white arcs to create the pointer of volumes.  Download the .h file and add it to the folder of the Arduino sketch.

In this template, We added a converted image and use the arc and print function to create this gauge.  Download the .h file and add it to folder of the Arduino sketch.

while (a < b) { Serial.println(a); j = 80 * (sin(PI * a / 2000)); i = 80 * (cos(PI * a / 2000)); j2 = 50 * (sin(PI * a / 2000)); i2 = 50 * (cos(PI * a / 2000)); tft.drawLine(i2 + 235, j2 + 169, i + 235, j + 169, tft.color565(0, 255, 255)); tft.fillRect(200, 153, 75, 33, 0x0000); tft.setTextSize(3); tft.setTextColor(0xffff); if ((a/20)>99)

while (b < a) { j = 80 * (sin(PI * a / 2000)); i = 80 * (cos(PI * a / 2000)); j2 = 50 * (sin(PI * a / 2000)); i2 = 50 * (cos(PI * a / 2000)); tft.drawLine(i2 + 235, j2 + 169, i + 235, j + 169, tft.color565(0, 0, 0)); tft.fillRect(200, 153, 75, 33, 0x0000); tft.setTextSize(3); tft.setTextColor(0xffff); if ((a/20)>99)

In this template, We display simple images one after each other very fast by bitmap function. So you can make your animation by this trick.  Download the .h file and add it to folder of the Arduino sketch.

In this template, We just display some images by RGBbitmap and bitmap functions. Just make a code for touchscreen and use this template.  Download the .h file and add it to folder of the Arduino sketch.

The speed of playing all the GIF files are edited and we made them faster or slower for better understanding. The speed of motions depends on the speed of your processor or type of code or size and thickness of elements in the code.

using a tft lcd to move a servo made in china

The TFT display is a kind of LCD that is connected to each pixel using a transistor and it features low current consumption, high-quality, high-resolution and backlight. This 2.8-inch full color LCD has a narrow PCB display. The resolution is 320×280 pixels and it has a four-wire SPI interface and white backlight.

using a tft lcd to move a servo made in china

The main component of Me TFT LCD Screen module is a LCD display communicating with Makeblock Orion through serial port to show characters and graphics of different size and colors. The module is integrated with MCU and memory chip, and the Chinese characters, letters, and figures stored in the memory chip can be invoked easily through the serial port. Its blue/gray ID means that it has a double-digital signal port and needs to be connected to the port with

Since the port of Me TFT LCD Screen has blue/gray ID, you need to connect the port with blue or gray ID on Makeblock Orion when using RJ25 port. Taking Makeblock Orion as example, you can connect to ports No. 5 as

When the Dupont wire is used to connect the module to the Arduino UNO Baseboard, its TX and RX pins should be connected to TX and RX ports respectively as follows:

Makeblock-Library-master should be invoked to control the Me TFT LCD Screen. This program serves to display different graphics and characters through Arduino programming.

This module (Me TFT LCD Screen – 2.4 Inch) contains a voltage converter, an STM32 chip, and a serial flash memory of 2M. In contrast with other displays, it needs only serial port for communication, so it is easy to operate and connect.

A special serial port assistant is provided to help you set the baud rate of transmission, and store the processed pictures you want to display into the flash memory so as to implement the display or switch of boot pictures in your own project. To download pictures, you need other serial port for conversion. In addition, it also supports superposition of background pictures and the letters, and GUI display. Its applications include the calendar, voltage meter, ampere meter, etc.

using a tft lcd to move a servo made in china

In this Arduino touch screen tutorial we will learn how to use TFT LCD Touch Screen with Arduino. You can watch the following video or read the written tutorial below.

For this tutorial I composed three examples. The first example is distance measurement using ultrasonic sensor. The output from the sensor, or the distance is printed on the screen and using the touch screen we can select the units, either centimeters or inches.

The next example is controlling an RGB LED using these three RGB sliders. For example if we start to slide the blue slider, the LED will light up in blue and increase the light as we would go to the maximum value. So the sliders can move from 0 to 255 and with their combination we can set any color to the RGB LED,  but just keep in mind that the LED cannot represent the colors that much accurate.

The third example is a game. Actually it’s a replica of the popular Flappy Bird game for smartphones. We can play the game using the push button or even using the touch screen itself.

As an example I am using a 3.2” TFT Touch Screen in a combination with a TFT LCD Arduino Mega Shield. We need a shield because the TFT Touch screen works at 3.3V and the Arduino Mega outputs are 5 V. For the first example I have the HC-SR04 ultrasonic sensor, then for the second example an RGB LED with three resistors and a push button for the game example. Also I had to make a custom made pin header like this, by soldering pin headers and bend on of them so I could insert them in between the Arduino Board and the TFT Shield.

Here’s the circuit schematic. We will use the GND pin, the digital pins from 8 to 13, as well as the pin number 14. As the 5V pins are already used by the TFT Screen I will use the pin number 13 as VCC, by setting it right away high in the setup section of code.

As the code is a bit longer and for better understanding I will post the source code of the program in sections with description for each section. And at the end of this article I will post the complete source code.

I will use the UTFT and URTouch libraries made by Henning Karlsen. Here I would like to say thanks to him for the incredible work he has done. The libraries enable really easy use of the TFT Screens, and they work with many different TFT screens sizes, shields and controllers. You can download these libraries from his website, RinkyDinkElectronics.com and also find a lot of demo examples and detailed documentation of how to use them.

After we include the libraries we need to create UTFT and URTouch objects. The parameters of these objects depends on the model of the TFT Screen and Shield and these details can be also found in the documentation of the libraries.

Next we need to define the fonts that are coming with the libraries and also define some variables needed for the program. In the setup section we need to initiate the screen and the touch, define the pin modes for the connected sensor, the led and the button, and initially call the drawHomeSreen() custom function, which will draw the home screen of the program.

So now I will explain how we can make the home screen of the program. With the setBackColor() function we need to set the background color of the text, black one in our case. Then we need to set the color to white, set the big font and using the print() function, we will print the string “Arduino TFT Tutorial” at the center of the screen and 10 pixels  down the Y – Axis of the screen. Next we will set the color to red and draw the red line below the text. After that we need to set the color back to white, and print the two other strings, “by HowToMechatronics.com” using the small font and “Select Example” using the big font.

Next is the distance sensor button. First we need to set the color and then using the fillRoundRect() function we will draw the rounded rectangle. Then we will set the color back to white and using the drawRoundRect() function we will draw another rounded rectangle on top of the previous one, but this one will be without a fill so the overall appearance of the button looks like it has a frame. On top of the button we will print the text using the big font and the same background color as the fill of the button. The same procedure goes for the two other buttons.

Now we need to make the buttons functional so that when we press them they would send us to the appropriate example. In the setup section we set the character ‘0’ to the currentPage variable, which will indicate that we are at the home screen. So if that’s true, and if we press on the screen this if statement would become true and using these lines here we will get the X and Y coordinates where the screen has been pressed. If that’s the area that covers the first button we will call the drawDistanceSensor() custom function which will activate the distance sensor example. Also we will set the character ‘1’ to the variable currentPage which will indicate that we are at the first example. The drawFrame() custom function is used for highlighting the button when it’s pressed. The same procedure goes for the two other buttons.

drawDistanceSensor(); // It is called only once, because in the next iteration of the loop, this above if statement will be false so this funtion won"t be called. This function will draw the graphics of the first example.

getDistance(); // Gets distance from the sensor and this function is repeatedly called while we are at the first example in order to print the lasest results from the distance sensor

So the drawDistanceSensor() custom function needs to be called only once when the button is pressed in order to draw all the graphics of this example in similar way as we described for the home screen. However, the getDistance() custom function needs to be called repeatedly in order to print the latest results of the distance measured by the sensor.

Here’s that function which uses the ultrasonic sensor to calculate the distance and print the values with SevenSegNum font in green color, either in centimeters or inches. If you need more details how the ultrasonic sensor works you can check my particular tutorialfor that. Back in the loop section we can see what happens when we press the select unit buttons as well as the back button.

Ok next is the RGB LED Control example. If we press the second button, the drawLedControl() custom function will be called only once for drawing the graphic of that example and the setLedColor() custom function will be repeatedly called. In this function we use the touch screen to set the values of the 3 sliders from 0 to 255. With the if statements we confine the area of each slider and get the X value of the slider. So the values of the X coordinate of each slider are from 38 to 310 pixels and we need to map these values into values from 0 to 255 which will be used as a PWM signal for lighting up the LED. If you need more details how the RGB LED works you can check my particular tutorialfor that. The rest of the code in this custom function is for drawing the sliders. Back in the loop section we only have the back button which also turns off the LED when pressed.

In order the code to work and compile you will have to include an addition “.c” file in the same directory with the Arduino sketch. This file is for the third game example and it’s a bitmap of the bird. For more details how this part of the code work  you can check my particular tutorial. Here you can download that file:

drawDistanceSensor(); // It is called only once, because in the next iteration of the loop, this above if statement will be false so this funtion won"t be called. This function will draw the graphics of the first example.

getDistance(); // Gets distance from the sensor and this function is repeatedly called while we are at the first example in order to print the lasest results from the distance sensor

using a tft lcd to move a servo made in china

In this Arduino touch screen tutorial we will learn how to use TFT LCD Touch Screen with Arduino. You can watch the following video or read the written tutorial below.

For this tutorial I composed three examples. The first example is distance measurement using ultrasonic sensor. The output from the sensor, or the distance is printed on the screen and using the touch screen we can select the units, either centimeters or inches.

The next example is controlling an RGB LED using these three RGB sliders. For example if we start to slide the blue slider, the LED will light up in blue and increase the light as we would go to the maximum value. So the sliders can move from 0 to 255 and with their combination we can set any color to the RGB LED,  but just keep in mind that the LED cannot represent the colors that much accurate.

The third example is a game. Actually it’s a replica of the popular Flappy Bird game for smartphones. We can play the game using the push button or even using the touch screen itself.

As an example I am using a 3.2” TFT Touch Screen in a combination with a TFT LCD Arduino Mega Shield. We need a shield because the TFT Touch screen works at 3.3V and the Arduino Mega outputs are 5 V. For the first example I have the HC-SR04 ultrasonic sensor, then for the second example an RGB LED with three resistors and a push button for the game example. Also I had to make a custom made pin header like this, by soldering pin headers and bend on of them so I could insert them in between the Arduino Board and the TFT Shield.

Here’s the circuit schematic. We will use the GND pin, the digital pins from 8 to 13, as well as the pin number 14. As the 5V pins are already used by the TFT Screen I will use the pin number 13 as VCC, by setting it right away high in the setup section of code.

As the code is a bit longer and for better understanding I will post the source code of the program in sections with description for each section. And at the end of this article I will post the complete source code.

I will use the UTFT and URTouch libraries made by Henning Karlsen. Here I would like to say thanks to him for the incredible work he has done. The libraries enable really easy use of the TFT Screens, and they work with many different TFT screens sizes, shields and controllers. You can download these libraries from his website, RinkyDinkElectronics.com and also find a lot of demo examples and detailed documentation of how to use them.

After we include the libraries we need to create UTFT and URTouch objects. The parameters of these objects depends on the model of the TFT Screen and Shield and these details can be also found in the documentation of the libraries.

Next we need to define the fonts that are coming with the libraries and also define some variables needed for the program. In the setup section we need to initiate the screen and the touch, define the pin modes for the connected sensor, the led and the button, and initially call the drawHomeSreen() custom function, which will draw the home screen of the program.

So now I will explain how we can make the home screen of the program. With the setBackColor() function we need to set the background color of the text, black one in our case. Then we need to set the color to white, set the big font and using the print() function, we will print the string “Arduino TFT Tutorial” at the center of the screen and 10 pixels  down the Y – Axis of the screen. Next we will set the color to red and draw the red line below the text. After that we need to set the color back to white, and print the two other strings, “by HowToMechatronics.com” using the small font and “Select Example” using the big font.

Next is the distance sensor button. First we need to set the color and then using the fillRoundRect() function we will draw the rounded rectangle. Then we will set the color back to white and using the drawRoundRect() function we will draw another rounded rectangle on top of the previous one, but this one will be without a fill so the overall appearance of the button looks like it has a frame. On top of the button we will print the text using the big font and the same background color as the fill of the button. The same procedure goes for the two other buttons.

Now we need to make the buttons functional so that when we press them they would send us to the appropriate example. In the setup section we set the character ‘0’ to the currentPage variable, which will indicate that we are at the home screen. So if that’s true, and if we press on the screen this if statement would become true and using these lines here we will get the X and Y coordinates where the screen has been pressed. If that’s the area that covers the first button we will call the drawDistanceSensor() custom function which will activate the distance sensor example. Also we will set the character ‘1’ to the variable currentPage which will indicate that we are at the first example. The drawFrame() custom function is used for highlighting the button when it’s pressed. The same procedure goes for the two other buttons.

drawDistanceSensor(); // It is called only once, because in the next iteration of the loop, this above if statement will be false so this funtion won"t be called. This function will draw the graphics of the first example.

getDistance(); // Gets distance from the sensor and this function is repeatedly called while we are at the first example in order to print the lasest results from the distance sensor

So the drawDistanceSensor() custom function needs to be called only once when the button is pressed in order to draw all the graphics of this example in similar way as we described for the home screen. However, the getDistance() custom function needs to be called repeatedly in order to print the latest results of the distance measured by the sensor.

Here’s that function which uses the ultrasonic sensor to calculate the distance and print the values with SevenSegNum font in green color, either in centimeters or inches. If you need more details how the ultrasonic sensor works you can check my particular tutorialfor that. Back in the loop section we can see what happens when we press the select unit buttons as well as the back button.

Ok next is the RGB LED Control example. If we press the second button, the drawLedControl() custom function will be called only once for drawing the graphic of that example and the setLedColor() custom function will be repeatedly called. In this function we use the touch screen to set the values of the 3 sliders from 0 to 255. With the if statements we confine the area of each slider and get the X value of the slider. So the values of the X coordinate of each slider are from 38 to 310 pixels and we need to map these values into values from 0 to 255 which will be used as a PWM signal for lighting up the LED. If you need more details how the RGB LED works you can check my particular tutorialfor that. The rest of the code in this custom function is for drawing the sliders. Back in the loop section we only have the back button which also turns off the LED when pressed.

In order the code to work and compile you will have to include an addition “.c” file in the same directory with the Arduino sketch. This file is for the third game example and it’s a bitmap of the bird. For more details how this part of the code work  you can check my particular tutorial. Here you can download that file:

drawDistanceSensor(); // It is called only once, because in the next iteration of the loop, this above if statement will be false so this funtion won"t be called. This function will draw the graphics of the first example.

getDistance(); // Gets distance from the sensor and this function is repeatedly called while we are at the first example in order to print the lasest results from the distance sensor

using a tft lcd to move a servo made in china

The purpose of this utility model just be to provide a kind of have China"s independent intellectual property right, the structure configuration is fit to China"s advanced level concrete practical situation, that reach international like product, domestic top standard"s TFT-LCD glass substrate automatic production line.

Realize that goal of the invention technical scheme of the present utility model is: the utility model TFT-LCD glass substrate automatic production line, set gradually according to operation and to be divided into three work areas, be followed successively by the annealing furnace end region, the post-treatment district, the test package district, three work areas are connected formation whole piece TFT-LCD glass substrate production line successively, be made as to be interrupted and be connected by manually transporting equipment between annealing furnace end region and the post-treatment district, be made as directly by automatic conveying equipment between post-treatment district and the test package district and be connected; Wherein the annealing furnace end region comprise be disposed with transverse cutting unit, load units, supply unit, weighting unit, rip cutting unit, verification unit, go up the paper unit, packaging unit constitutes, the terminal workspace of annealing furnace constitutes a whole set of sealing working cycle system, each working cell is connected successively, its supply unit connects each working cell thereafter and is loop structure, and each equipment of annealing furnace end region is realized the united and coordinating running by the electrical apparatus control system of supporting setting; The post-treatment district comprises the load units that sets gradually, gets paper unit, supply unit, transposable element, scribing unit, breaks disconnected unit off with the fingers and thumb, grinding unit, cleaning unit constitute, each working cell is connected successively, its supply unit connects each working cell thereafter, and each equipment of post-treatment district is realized the united and coordinating running by the electrical apparatus control system of supporting setting; The test package district comprises that supply unit, temporary storage location, verification unit, the unloading unit that sets gradually, the finished product packing unit of finishing the finished product packing constitute, each working cell is connected successively, its supply unit connects each working cell thereafter, and each equipment of test package district is realized the united and coordinating running by the electrical apparatus control system of supporting setting.

The transverse cutting unit is mainly the standard equipment transverse cutting unit in the terminal workspace of annealing furnace described in the utility model; Load units is mainly standard equipment and loads the robot device; Supply unit is to be conventional equipment for the automated cycle transmission system; Weighting unit is mainly special-purpose vertical Weighing device automatically; The rip cutting unit mainly comprises the standard equipment slitter; Verification unit is mainly the work in-process automatic checking system; Last paper unit is mainly the special-purpose paper robot of going up; Packaging unit comprises the standard equipment unloading robot and the simple and easy base plate glass packed and transported case of supporting setting.The vertical weighing device concrete structure of above-mentioned special use is: comprise the bed frame of weighing, be provided in the vertical fastening bracket of the glass mechanism on the bed frame and the electronic balance of weighing from top to bottom successively, and the electric control system of the power system of supporting setting and each parts coordinate operation of control.Described vertical fastening bracket mechanism comprises that then the bracket base, Mobile Slide, clamping crossbeam, mobile scale, the clamp arm of weighing, the chuck of weighing, the lifting location that are assembled together lift mechanism.Described bracket base is fixedly installed on the carriage of the electronic balance of weighing, on bracket base, be equipped with the clamping crossbeam of pair of parallel by Mobile Slide, the slide block of Mobile Slide seesaws with clamping crossbeam, and the guide rail of Mobile Slide is fixed on the bracket base; Be provided with the clamp arm of weighing in a pair of clamping crossbeam two ends pairings, supportingly on the paired clamp arm of weighing in carriage mechanism two ends be provided with the paired chuck of weighing, the lifting location is lifted mechanism and fixedly is provided on the bracket base, is equipped with mobile scale at the clamping crossbeam; The electronic balance of weighing is fixed on the bed frame.The described chuck of weighing adopts the silicon rubber chuck that can realize flexible contact, and the lifting location lifts the mechanism top and the glass contact position is provided with the silicon rubber pad.Preferably set Moving caster and adjust lower margin in the bed frame bottom of weighing.In the above-mentioned special use at interval the robot of paper comprise robot body"s frame, robot VTOL (vertical take off and landing) transfer assembly, the horizontal transfer assembly of robot and robot arm and constitute that wherein robot VTOL (vertical take off and landing) transfer assembly is assemblied in and comprises the fixed support mechanism that is contained on the main frame on the main frame, is assemblied in vertical shifting transfer mechanism and the supporting vertical servomotor mechanism that is arranged on regulation and control vertical shifting transfer mechanism in the fixed support mechanism in the fixed support mechanism; The horizontal transfer assembly of robot is assemblied in robot VTOL (vertical take off and landing) transfer assembly upper end, comprises the fixed support mechanism that is assemblied on the vertical shifting transfer mechanism, is assemblied in the horizontal servo motor mechanism that moves horizontally transfer portion mechanism and supporting setting in the fixed support mechanism; Robot arm is assemblied in to move horizontally and comprises arm main body frame and the supporting paper adsorption unit on the arm main body frame and the drive unit of adsorption unit of being assemblied on the transfer portion mechanism.

In this zone, glass substrate will be finished transverse cutting, loads, weighs, rip cutting, cooling, check, the processing of going up operations such as paper, packing.The realization of each operation process, realize the linking of inter process by automatic conveying system, it is the glass substrate after the crosscut, the process load units is behind transfermatic, deliver to above-mentioned each operation by the control of transfermatic follow procedure, realize the processing of glass substrate work in-process, the production of process segment property before finishing changes the processing of storehouse or postorder over to.Its every equipment (system) all establishes one"s own system, and is an independent body, under native instructions, finishes the work.And the terminal automatic production line of whole annealing furnace is again a unified integral body, and it is under the PLC time variable control, and co-ordination realizes the whole process of this zone to product processing.

Load units is mainly standard equipment and loads the robot device in the post-treatment described in the utility model district; Get the paper unit and be mainly the automatic paper extraction unit of special glass substrate; It is conventional equipment that supply unit is mainly automatic transmission system; Transposable element is mainly the standard equipment transposition control device that is arranged on the transmission system; Scribing unit is that disconnected processing machine is broken in the standard equipment line off with the fingers and thumb with breaking disconnected unit off with the fingers and thumb, sets in addition after disconnected processing machine is broken in line off with the fingers and thumb and is equipped with the sampling observation travelling belt; Grinding unit is mainly the standard equipment edge polisher; The standard equipment prewetting machine and the cleaning machine that set gradually before and after cleaning unit comprises, and the input locating device of supporting setting and output locating device, supporting corresponding pipe arrangement and the blowdown system of being provided with of cleaning machine; Break off with the fingers and thumb to set in addition on the disconnected processing machine position in line and be equipped with the sampling observation travelling belt, and connect the manual checking platform, on the position of prewetting machine, set and include two sampling observation travelling belts, and connect the manual checking platform.The automatic paper extraction unit of above-mentioned special glass substrate comprises general frame, be assemblied in slide assemblies on the general frame, be located at the electric control system that the equipment of paper at interval accepted that ground is positioned at slide assemblies integral body below is deposited the power system of paper frame and supporting setting and controlled each parts coordinate operation; Described slide assemblies comprises the straight reciprocating motion unit that is assemblied on the framework, be assemblied in and cooperate the unitary servo drive unit of straight reciprocating motion on the framework, with the paper extraction unit unit that is arranged on the servo drive unit, between servo drive unit and paper extraction unit unit, be equipped with the pendulum device of stretching that the control paper extraction unit is realized upper and lower, transposition action.Wherein the straight reciprocating motion unit comprises reducing motor, driving pulley, driven pulley to described slide assemblies, band, belt wheel pressing plate, slide plate, cable protect chain synchronously, reducing motor as power output is arranged on framework one side, the output shaft of reducing motor is connected with driving pulley, driven pulley is assemblied in the framework opposite side, band is enclosed within on driving pulley and the driven pulley synchronously, band is made as with slide plate and fixedlys connected synchronously, and the slide plate two ends are connected with crossbeam by slide rail; Servo drive unit comprises rail brackets, servo line slideway, horizontal sliding seat, servomotor, ball-screw, a pair of servo line slideway is assemblied on the slide plate bottom by rail brackets, laterally on the sliding seat assembling pair of guide rails, ball-screw is made as with horizontal sliding seat and is threaded, the servomotor mount is in the slide plate bottom, and servomotor is connected with an end of ball-screw by shaft coupling; The paper extraction unit unit is made as vacuum absorption device and is arranged under the horizontal sliding seat, comprises suction pipe, spring plate, mounting blocks, and suction pipe is connected and fixed piece by spring plate, and fixed block is fastened on to be stretched under the pendulum device; Stretch pendulum device and be made as and stretch the pendulum pneumatics, comprise and stretch the pendulum cylinder, connect bent plate, stretch the pendulum cylinder and be connected under the horizontal sliding seat by connecting bent plate.

At post-treatment district production line is the work in-process glass that the annealing furnace end region is produced, and through loading, get paper, transposition, ruling, break off with the fingers and thumb operations such as disconnected, produces the product that meets the requirement of postorder edging.Judge through sampling observation and the line quality of glass to drop into edge polisher then, finish the edge grinding chamfering of glass substrate, and mill cuts out location chamfering and non-location chamfering, eliminate by what line broke that the limit causes off with the fingers and thumb and smallly fall sheet and fine crack, avoid the diffusion of crackle.Glass behind the edging enters prewetting machine, cleaning machine, finish the preceding processing cleaning course of inspection after construction, this is an operation important in the glass processing, and it is coordinated different processing unit unified commands together by the electrical control program, by signal transmission and exchange, realize processing purpose.

Post-treatment district automatic production line is realized by following process: at first, the packaging unit at the work in-process glass place of annealing furnace end region is realized the location in " loaded " position, getting the paper unit takes the glass holding paper away, the glass load units utilizes grabbing device, glass overturn in the packaging unit keep flat on the entrance conveyor, according to the placement direction of glass, can realize the transposition of 90 degree, realize adaptation to various glass loading conditions; Glass substrate enters line and breaks disconnected processing units off with the fingers and thumb under the conveying of travelling belt, and this is the critical process that guarantees glass physical dimension, breaks the glass cullet bar of having no progeny off with the fingers and thumb and enters the cullet catcher collection; The line breaking machine what be provided with later is the sampling observation travelling belt, it can realize to glass at X-ray inspection X, to the line of glass, break disconnected quality off with the fingers and thumb and detect the most timely; Break the glass that breaks after finishing off with the fingers and thumb and enter edge polisher, realize processing, enter prewetting machine, prepare matting through the edge polisher exit conveyor to the glass corner by clamp mechanism, edging wheel, conveying, circular grinding water by entrance conveyor; Include two sampling observation travelling belts on the position of prewetting machine, it can adapt to product and pass in and out production line because of the needs of check or cleaning again.The processing tasks of post-treatment section occupies an important position in whole section, and it accepts the processing tasks of the work in-process of annealing furnace end region to finished product on the one hand, and an other important task is to guarantee the effect of check and be cleaning packing preparatory condition.

To be mainly automatic transmission system be conventional equipment to supply unit in the test package described in the utility model district; Temporary storage location is mainly the temporary check-out console of standard equipment; Verification unit comprises the finished product automatic checking system that is located on the production line, is equipped with the sampling observation travelling belt at this station, and it is connected with the manual checking platform; Unloading unit is mainly standard equipment unloading robot; Thereafter final finished packaging unit comprises paper robot and special glass base plate seals packed and transported case in the special use of supporting setting.The glass substrate of above-mentioned special use packs carrying case, it comprises base member, is located at the glass substrate bearing platform on the base member, it is characterized in that: be provided with the glass substrate gripping unit in the plummer bottom, it is made of the supporting rigidity clamp frame on the plummer, the adjustable locking device of adjusting clamp frame and the banded locking strip that has certain tensile to regulate clamp frame of being arranged on; Also be provided with the position-limit mechanism of restriction glass both sides displacement in the both sides of glass plummer; On the glass plummer, also be equipped with the whole guard shield that blocks glass substrate; The scarp of glass substrate bearing platform d2 and vertical surface are provided with the backing plate of damping anti-electrostatic; This glass substrate bearing platform d2 has adopted closed structure; On described glass substrate gripping unit, be provided with cushion plate.

Test package district production line is positioned at the last of total production line, and its glass substrate after with cleaning-drying is transferred to stations such as self-verifying, manual checking, temporary, unloading successively by travelling belt, adopt A type frame to carry out the final finished packing to qualified product then.Though this operation belongs to the non-course of processing,, also play important effect to the control of glass outgoing.Test package district production line is realized by following process: the dried glass substrate of its self-stip is in the future delivered to temporary roll-over table successively by travelling belt, automatic checking system, realize glass at X-ray inspection X, afterwards through being sent to the manual checking platform, realizing off-line check, after the inner quality of glass and surface quality confirmed fully, enter multiple package position, can be to the packing of product according to the different packaging means of requirement employing of using the user.

Its beneficial effect was after the utility model adopted technique scheme: the course of processing that The present invention be directed to glass substrate, a kind of successive automatic production line is provided, it is the strict requirement according to the user, special process process in conjunction with processing, the modern production line that utilizes various processing unitss to form, it absorbs the technical experience of external similar technology and has designed a glass substrate successive automatic production line that has from family"s intellecture property in conjunction with the practical situation of China domestic enterprise, it has filled up the blank that China does not have liquid-crystalline glasses substrate production line, broken the situation of China to the complete dependence on import of needs of glass substrate, enlarged the scope of domestic flat-panel monitor industry upstream industry chain, blockade for the liquid crystal industry breaks through foreign technology of China, realize the supporting of domestic industry chain, make initiative work.The present invention has passed through actual pilot scale check, and its every index has reached the advanced level of international like product, domestic top standard.

using a tft lcd to move a servo made in china

Plug the device of signal cable line in lighting inspection of the present invention, as shown in Figure 1, this device comprises: PCB 11, stationary installation 12, controller 13, drive unit 14 and signal transmission module 15; Wherein,

Drive unit 14, under the control of controller 13, drive singal transport module 15 moves to connector 111 position, is connected with connector 111; And after lighting has checked, under the control of controller 13, drive singal transport module 15 disconnects the connection with connector 111;

Signal transmission module 15, one end is connected with the signal cable line being connected inspection machine body, and the other end contacts with connector 111, for connection signal transmission line.

Here, described secure component 121 can be specifically any one in the secure component of existing electrostatic prevention; Described cylinder 122 can adopt any one cylinder existing, can select as required;

Servo motor has the positional precision advantage very accurately of driving, is applied to by servo motor in device of the present invention, very accurately can move to connector position by drive singal transport module, be connected to make signal transmission module with connector.

The connected mode that signal transmission module 15 and the signal cable line being connected inspection machine body adopt can adopt the connected mode of existing signal cable line; Signal transmission module 15, as shown in Figure 4, comprises further: signal cable line 151 and signal pin array 152; Wherein,

Signal cable line 151 is connected with signal pin array 152, for by from connecting the Signal transmissions of signal cable line of inspection machine body to signal pin array 152;

Here, when practical application, be connected with connector 111 to make signal pin array 152, need to process an opening at the upper surface of the connector 111 contacted with signal pin array 152, expose the electrode in connector 111, as shown in Figure 5, so that signal pin array 152 is easy to be connected with the electrode in connector 111; When processing opening, the size of opening be the top surface area of connector 111 1/1 to two/3rd between comparatively suitable;

In addition, when practical application, in order to the TFT-LCD making the device plugging signal cable line in lighting inspection provided by the invention can be suitable for different model, and, because the electrode design in the connector of the PCB of the TFT-LCD of different model is not quite similar, therefore, can signal transmission module 15 be designed to dismountable, when lighting detects, select the signal transmission module 15 matched with the electrode design in the connector of the PCB of TFT-LCD, specifically, select the signal pin array 152 matched with the electrode design in the connector of the PCB of TFT-LCD, to make signal pin array 152 can with the electrode exact connect ion in the connector of PCB.

Described device can further include signal pin, is installed on shifting sledge 141, for the outside edge contacts of connector 111 after, report the position of contact point to controller 13;

Described controller 13, specifically for: after receiving the position of the contact point that signal pin reports, calculate the compensating value that signal transmission module 15 needs movement, and after calculating compensating value, control servo motor 142, drive singal transport module 15 moves to connector position.

Described controller 13, also for moving to default detecting position postpone when signal transmission module 15, eject signal pin, and behind the position receiving the contact point that signal pin reports, rebounds signal pin;

Here, occur in order to avoid described signal pin contacts with connector 111 situation causing described signal pin to be out of shape, in order to avoid affect follow-up use, require that the material of described signal pin is the material of strong hardness, the material of described strong hardness refers to that hardness is more than or equal to the material of the hardness of pin, such as: stainless steel etc.;

When lighting checks, impact to prevent the signal pin array 152 pairs of screen loading process being in position of readiness, described controller 13, also for before arriving connector position at signal transmission module 15, control signal pin array 152 is upwards perpendicular to connector 111, and after arrival connector position, control signal pin array 152 is rotated down 90 degree, is connected with the electrode of connector 111; Wherein, in actual application, the speed that described controller 13 control signal pin array 152 is rotated down can be set, such as: when being rotated down, be more than or equal to before 30 degree at signal pin array 152 and connector 111 angulation, arranging rotational speed can soon, after signal pin array 152 and connector 111 angulation are less than 30 degree, rotational speed is slow, in order to avoid due to inertia damage signal pin array 152.Here, the concrete processing procedure arranging the speed that described controller 13 control signal pin array 152 is rotated down is identical with existing processing procedure.

Based on said apparatus, present invention also offers a kind of method plugging signal cable line in lighting inspection, as shown in Figure 5, comprise the following steps:

Particularly, under the driving of cylinder, secure component fixes PCB; Wherein, described secure component is the secure component of electrostatic prevention.

Step 502: under the control of the controller, drive singal transport module moves to the connector position of described PCB, is connected with the connector of described PCB, connection signal transmission line;

Wherein, described signal transmission module is connected with the signal cable line being connected inspection machine body away from one end of signal pin array;

Particularly, under the control of the controller, drive singal pin and signal transmission module move from position of readiness to described connector position, when moving to the outside edge contacts of signal pin and described connector, controller calculates the compensating value that signal transmission module needs movement, afterwards according to the compensating value calculated, under the control of the controller, drive singal transport module moves to described connector position, afterwards the signal pin array of signal transmission module is rotated down 90 degree, connects the electrode of described connector;

Wherein, described position of readiness refers to the reference position at signal transmission module place, and reference position can be arranged arbitrarily as required, such as: in the position away from servo motor;

At drive singal pin and signal transmission module from position of readiness to described connector position moving process, the method can further include:

Wherein, described detection position can be arranged according to needs, so as signal pin continuation moving process in can with the outside edge contacts of described connector;

The distance of the center of the position of the contact point that controller reports according to signal pin and signal pin and signal transmission module, calculates the compensating value that signal transmission module needs movement;

Wherein, controller knows the distance of the center of signal pin and signal transmission module in advance, when practical application, can the distance of center of signalization pin and signal transmission module be fixed value, when causing signal transmission module to change with box lunch because the model of TFT-LCD changes, controller calculates signal transmission module to be needed or not to make any amendment during the compensating value of movement;

After this step is complete, technician is when carrying out lighting and checking, if find that the signal of inspection machine body is not transferred on the screen of TFT-LCD, then illustrate that signal transmission line is not connected, and now, can input lighting to controller and check completed instruction, after controller receives instruction, described signal pin array is rotated up 90 degree, afterwards under the control of the controller, drives described signal transmission module to move to position of readiness; Re-execute this step afterwards, that is: re-start the connection of signal transmission line.

Step 503: after lighting has checked, under the control of the controller, drives described signal transmission module to disconnect the connection with the connector of described PCB;

Particularly, described signal pin array is rotated up 90 degree; Afterwards under the control of the controller, described signal transmission module is driven to move to position of readiness;

Here, after lighting has checked, technician can input lighting to controller and check completed instruction, after controller receives instruction, by 90-degree rotation in described signal pin array lines.

Plug the process of signal cable line in lighting inspection provided by the invention, can carry out in the switching process of lighting-up equipment, not needing to reserve the independent time carries out plug signal cable line.

using a tft lcd to move a servo made in china

In this tutorial, we will be Interfacing a 7-inch DWIN HMI TFT LCD Display with Arduino Nano Board. Using this DWIN Display we can control various modules like Relay, Servo Motor, and RGB LED. We will also learn how to create the UI using the DGUS Software.

Before moving ahead, go through the DWIN Getting Started Guide to learn more about the DWIN Display and the method to upload the firmware. Since the DWIN Display has UART Interface, we can communicate with Arduino through Serial Communication. Let’s see how we can build this System.

DGUS(DWIN Graphic Utilized Software) is a cost-effective GUI software platform developed by DWIN Technology. Based on the K600+ Kernel hardware platform, GUI design, combined with a simple command interface, can be achieved quickly, eliminating the need for complicated programming and expensive development environments.

Download the DGUS Software from the above link and then extract the folder. Open the extracted folder and run the executable file called ‘DGUS_V7.642.exe‘. A DGUS Window will open. Initially, you need to change to the English language as the Chinese language is set by default.

The link for all the files including the DWIN_Set folder, images, ICL files, etc are inside the folder below. You can extract them and use them in your project.

Each and every module/units have a different Memory Address (assigned as VP). For example in the above UI, the memory address for Servo=5100, Red LED=5200, Green LED=5300, Blue LED=5400 & Relay=5500.

After creating the UI using the DGUS Software, download the firmware to DWIN LCD Display either using the T5L Download tool or using the SD Card. Follow the previous guide.

Before interfacing please check on the back of the DWIN Module whether the TTL Module is enabled or not. In case its not enabled, solder the terminals to enable the TTL Communication.

Connect the Servo Motor and Relay VCC & GND Pin to Arduino 5V & GND Pin. Also connect the Servo Motor to D3 of Arduino as Servo requires PWM Signal for operation. Connect the Relay output pin to D2 of Arduino. The RGB LED Module is connected to Pin D4, D5, and D6 of Arduino.

Coming to the DWIN LCD Display and Arduino part, UART Serial Communication is required. Therefore connect the TX2, and RX2 of DWIN Display to Arduino RX & TX Pin respectively. Supply the 5V to both Arduino and Display using their respective USB Cable. The GND connection should be common for both Arduino & Display.

If you don’t want to assemble the circuit on a breadboard and you want PCB for the project, then here is the PCB for you. I used EasyEDA to design the Schematic & PCB. The Schematic & PCB Board for DWIN LCD Arduino Interfacing looks something like the below.

You can now upload the Gerber File to the Website and place an order. The PCB quality is superb & high standard. That is why most of people trust NextPCB for PCB & PCBA Services.

This is the frame that display sends whenever any button is touched in the display UI. You can check this using by connecting USB-to-TTL Module to DWIN Display pins.

After the code is uploaded, you can start testing the entire system. The created UI looks like this and has the option to go into next page by clicking on Servo, LED and Relay.

Go back to the homepage and click on RGB LED to enter into the next page. You can slide the Red, Green, Blue Slider to control the brightness and intensity of RGB Light. You can also mix colors to generate different color lights.

Go back to the homepage again. Click on Servo Control option from the display. In this mode you can select ON/OFF option to turn on or off the Relay Module.

using a tft lcd to move a servo made in china

Trio Motion Technology, headquartered in Tewkesbury (UK) and founded in 1987, develops hardware and software for high-quality motion controllers for the control servo and stepper motors. Since 2001 Trio Motion Technology is an important partner and supplier ofATB Automation. In many solutions from ATB Automation and its customers, a Trio motion controller is the heart of the solution

Developer and producer of high-quality motion controllers for flexible and economical motion control solutions. Used worldwide for control of complex high dynamic automation and machine control in most industries.

As a result, within a few year Trio Motion Technology"s delivery program has grown into total solutions with servo controllers, servo motors and scara robots.

Trio Motion Technology is represented worldwide with offices in Tewkesbury (UK), Pittsburgh (US), Pune (India) and Shanghai (China) and through a network of more than 100 fully supported distributors.

Trio has its own research & development team that develops controls as solutions for customer applications. Trio has introduced many innovations to the market over the years. All products have been tested to international standards and the company has ISO9001: 2015 quality approval.

Trio Motion Technology Motion Coordinators, extension modules, I/O modules, EtherCAT controllers and HMIs are designed to control motion in industrial machines with a minimum of external components. In many applications, Trio"s hard and software products can be combined to build a control system for machines with multiple axes and peripherals.

With an extensive set of move functions for coordinating single or multiple axes, complex motion control applications become manageable. Functions include linear, circular and spherical interpolation as well as cam profiles and easy electronic coupling of axes. In addition, there are position registration functions with fast inputs and switching of outputs on a position range of one or more axes.

Motion profiles from CAD / CAM systems are made possible with the Look-Ahead functions in the Motion Coordinators. Polyline data is buffered and processed in an intelligent way to ensure constant speed for dispensing applications or angular speed control for cutting.

The MC4 / 5/6 series Motion Coordinators open up a new world of robotics and frame transformations. Delta systems of 2 or 3 axes are programmed in the familiar Cartesian coordinate system while the complex position transformation calculations are provided by the Motion Coordinator. Transformations for scara robots up to 4 axes and articulated arm robots up to 6 axes are also supported.

The Trio Motion Coordinators are extremely modular, so that the user can tailor them to their specific application. Systems can be used stand-alone, but also have the flexibility of communicating with external PCs or other overhead controls. In addition to the digital and analog IO expansion via CAN or EtherCAT, the most common factory communication protocols are available on the Motion Coordinators.

Motion Perfect is the development environment for the Trio Motion Coordinators range including the new Flex-6 Nano and MC6N-ECAT. It offers the user an easy-to-understand Windows-based interface for rapid application development, controller configuration and motion and controller function monitoring. In addition to the Trio MOTION-iX programming language, supported IEC languages and editor for HMI pages are available.

MotionPerfect also has an MC400 simulator and Uniplay HMI Simulator program for offline programming. And a 3D oscilloscope and 3D visualization tool to visualize the results.

Trio has developed a series of powerful software tools for use with every Motion Coordinator. These tools offer all the functions required for setting up, programming, generating Cam profiles, robot control and CAD position trajectory conversion with minimal development time.

PCMotion ActiveX can be used in any programming language that supports ActiveX (OCX) components, such as one of the Microsoft Visual languages (BASIC, C #, C ++, etc.), LabView, Delphi, etc.

With the help of the TextFileLoader (.txt) files can easily be loaded in the memory of the controller or the SD card (if present). For example, G code and HPGL files can be processed on the controller using sample programs available through ATB Automation.

The Trio servo systems are designed to work seamlessly with Trio"s EtherCAT controllers and be fully integrated into Trio’s application development tool, Motion Perfect allowing complete machine configuration from one tool; commissioning, diagnostics and programming.

An integrated solution with robot and machine control as one coordin