Arduino Mega HMI touch screen

(Last Updated On: October 1, 2019)

HMI TOUCH SCREEN

Description:

In this tutorial, you will learn how to make an Arduino or Mega based HMI system using TFT LCD Touch Screen. This is an Introductory tutorial, in which we will be controlling an led and display the On the time of controller in seconds.

While in my Upcoming tutorials I will use this HMI touch screen for

  1. To display sensors data on this screen,
  2. I will interface this with the Neo 6M GPS module for making a real-time map tracking system.
  3. For controlling multiple loads
  4. I will also use this touch screen with the RFID for displaying the images.

we will also be using this with a fingerprint module for making a voting system. and so on.I will be using this touch screen in so many other projects. so Subscribe right now to my website and YouTube channel, so that you never miss any of my upcoming tutorials.



The HMI Touch screens are nowadays most commonly used in industries for control and monitoring. It eliminates the need for the hardware switches. Moreover, the HMI touch screen is easy to use. New functions can be added, the interface application can be modified at any time. Different pages can be designed for the control and monitoring of electrical machines and sensors.

In Industries the HMI touch screens are used with PLC’S and such HMIC touch screens are really expensive. So the purpose of this tutorial is to help you guys, how you can make your own HMI control system for the Arduino Mega using a 5 inch TFT touch screen. For the complete explanation, you can watch a video available at the end of this Article.


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno: https://amzn.to/2tVz1vu
Mega 2560: https://amzn.to/2ze1kdu
ITDB02 Arduino mega shield 2.1: https://amzn.to/2o1uJ2l
7 Inch TFT LCD Touch Screen: https://amzn.to/2nWP1Ka
12v 10A SPDT relay: https://amzn.to/2MThQBK
2n2222 npn transistors: https://amzn.to/2EmXsIb
10k Resistor: https://amzn.to/2KTd6OW
lm7805 Voltage Regulator: https://amzn.to/2IZEl5x
330-ohm resistors pack: https://amzn.to/2NtlAeh
female DC power jack socket: https://amzn.to/2KEo1gt
470 uf capacitors: https://amzn.to/2xDCOzf
5×7 cm vero board: https://amzn.to/2OHGbvn
female headers: https://amzn.to/2zqmtiJ
connection wires: https://amzn.to/2DpBuW7
Super Starter kit for Beginners: https://amzn.to/2KJvmKG
Jumper Wires: https://amzn.to/2KMoVXs
Bread Board: https://amzn.to/2MS4q8X
12v Adaptor: https://amzn.to/2Ntr6h1
PCB plate: https://amzn.to/2IUwpCt
Variable Supply: https://amzn.to/2MT4Qfj
Digital Multimeter: https://amzn.to/2Nvft9i
Vero Board / strip board: https://amzn.to/2MTf9jD
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2zfoNuJ
Solder wire: https://amzn.to/2ufUMWf
Wire Stripper: https://amzn.to/2KOqxfU
wire cutter: https://amzn.to/2ucIq14
PCB small portable drill machine: https://amzn.to/2Nu62XF

HMI Touch screen Breakout board soldering:

Breakout board for the touch screen

HMI TOUCH SCREEN

As you can see currently this module cannot be used with the output devices like for example relays, led’s, etc, for the external hardware interfacing we will need to make some changes, we will Solder some wires with the desired pins so that it can pass digital signals to the controlling circuit.


HMI TOUCH SCREEN

I started by soldering some jumper wires with the ground and other pins 13,12,11 and 10.  After the Solder is has done then perform the short circuit test and make sure there is no solder bridge, also make sure you check the continuity of the jumper wires, sometimes the jumpers wires are broken inside. I am saying this from my practical experience because this has happened to me so many times.


HMI TOUCH SCREEN

This breakout board will be used with Mega. As you can see all the pin’s of the mega are occupied by the breakout board, so that’s why we had to solder jumper wires with the breakout. Now any sensor you want to use you will need to solder wires with the breakout board. So, for now, our HMI touch screen setup is completed.

Numbers images:

The following are the number of images that I used for displaying the numbers.

HMI TOUCH SCREEN

HMI TOUCH SCREEN


HMI TOUCH SCREEN

HMI TOUCH SCREEN

HMI TOUCH SCREEN

HMI TOUCH SCREEN

HMI TOUCH SCREEN


HMI TOUCH SCREEN

HMI TOUCH SCREEN

HMI TOUCH SCREEN

Programming:

Before you start the programming first of all make sure that you download all the necessary libraries. The functions used in this program are explained in the pdf files which you can download by clicking on the links given below.

Download: UTFT

Download: UTFT_Buttons

Download: UTouch

Watch Vid

eo Tutorial:

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

2 Comments

  1. I think other site proprietors should take this web site as an model, very clean and fantastic user genial style and design, as well as the content. You’re an expert in this topic!

  2. One more thing I would like to state is that as an alternative to trying to suit all your online degree training on days that you complete work (considering that people are fatigued when they return home), try to obtain most of your classes on the week-ends and only a couple courses in weekdays, even if it means a little time off your end of the week. This is fantastic because on the weekends, you will be extra rested as well as concentrated upon school work. Many thanks for the different guidelines I have learned from your site.

Leave a Reply

Close