Cheapest Price Household Appliances LCD Display to Cambodia Manufacturers
Sinda Display Technology Co., Ltd. is one of the best China LCD display manufacturers and suppliers. We can custom LCD display exactly according to your request. Now we are provide customs display for instrument like digital panel meter,multimunction meter,elevator, POS machines, LGP Dispenser, Fuel Dispenser, Oil Dispenser, Gas Dispenser, Flow Meter, KWH Meter, Energy Meter, Water Meter, Gas Meter, Smart Meter, Clock & Watch, Telecommunications device, Home Appliance, Industrial Contro...
Cheapest Price Household Appliances LCD Display to Cambodia Manufacturers Detail:
Sinda Display Technology Co., Ltd. is one of the best China LCD display manufacturers and suppliers. We can custom LCD display exactly according to your request. Now we are provide customs display for instrument like digital panel meter,multimunction meter,elevator, POS machines, LGP Dispenser, Fuel Dispenser, Oil Dispenser, Gas Dispenser, Flow Meter, KWH Meter, Energy Meter, Water Meter, Gas Meter, Smart Meter, Clock & Watch, Telecommunications device, Home Appliance, Industrial Controller, Car Audio, Color Display Systems and the other industries, Measurement device, UPS, Solar Inverter.
Product detail pictures:
Related Product Guide:
Cheapest Price Household Appliances LCD Display to Cambodia Manufacturers, The product will supply to all over the world, such as: , , ,
Having a Graphical User Interface (GUI) on a touch screen makes controlling your Raspberry Pi so much easier. With Python and TkInter one can develop his own GUI very easily. In this video we are going to see how to achieve that.
The project we are building today is very simple but very useful. As you can see I am using an application that I have developed to turn on or off the LED simply by touching an on screen button. In this video we are going to see how to develop an application like this, and as you are going to find out, it is extremely easy!
The hardware setup of today’s project is this. I am using a Raspberry Pi A+ but you can use any Raspberry Pi you want that has 40 GPIO pins. I am also using a 5 Inch touch display from Waveshare. I have prepared a detailed tutorial on that display few weeks ago, you can check it out. If you don’t have a touch display, the Graphical User Interface we are developing will work fine with a mouse as well.
WHERE TO BUY
1. Raspberry Pi A+: https://goo.gl/8E9JNM
2. 5” TFT Display: https://bit.ly/5TouchDisplayB
3. Small Wi-Fi Dongle: https://goo.gl/pXxyJx
4. Small Breadboard: https://bit.ly/SmallBreadboard
5. LED: https://bit.ly/375LEDS
6. Wires: https://bit.ly/WiresArduino
7. Resistor: https://bit.ly/ResistorsB
Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!
I have connected the positive leg of the LED via a 100Ω resistor to GPIO pin 40 of the Raspberry Pi. The other leg of the resistor is connected to GPIO pin 39 which is GND. The pins of the Raspberry Pi use 3.3V logic levels unlike Arduino which uses 5V, have that in mind. Then I connect the screen and we boot Raspberry Pi up. All we have to do is to run this simple Python program I have developed using the TkInter library. The program file is located at the desktop so I run the following commands in order to run it.
sudo python gui.py
That’s it, the Graphical User Interface has appeared and when I press the button the LED lights up, when I press it again it goes off. When I press the exit button, the application quits. Now that we know how to run the application let’s see the code of it.
In order to develop this Graphical User Interface we are going to use the TkInter library. It is the most commonly used library for Python to develop Graphical Interfaces. It is already included in your Raspberry Pi distribution so you don’t have to download anything at all. As you can see the code of the project is simple and small. We only need 37 lines of code. At first I configure pin 40 to act as an output and I set it to LOW. Next I create our main Window. The next command creates a font for the text that we are going to use. After that there are two functions that I am going to explain later. With these two commands, we set the title of the main window that we created and the dimensions on the screen. With the next two commands we create the exit button and we declare that when it is pressed we want to execute the exitProgram function. With the same technique we create the LED button which when pressed executes the ledOn function. The ledOn function checks the state of PIN40 of the Raspberry Pi board. If it is HIGH it makes it LOW, else if it is LOW it makes it HIGH. The exitProgram function when executed it simply exits the program.
CODE OF THE PROJECT
QUIZ OF KNOWLEDGE ANDROID GAME
You can download my latest Android Game which is called Quiz of knowledge here:
Arduino Datalogger: https://www.youtube.com/watch?v=oei3Y6tOhVI
Arduino SD card tutorial: https://www.youtube.com/watch?v=sS_oW81NweI
Arduino Weather Station Project: https://www.youtube.com/watch?v=9jN-3DtS1RI
Arduino Nokia 5110 LCD Display: https://www.youtube.com/watch?v=aDwrMeu4k9Y
Arduino OLED display tutorial: https://www.youtube.com/watch?v=A9EwJ7M7OsI
DIY Arduino: https://www.youtube.com/watch?v=npc3uzEVvc0
Educ8s.tv is a Youtube channel and website which is dedicated in developing high quality videos about DIY hardware and software projects. In this channel we develop projects with Arduino, Raspberry Pi, we build robots and simple electronic circuits. Check out our website as well for more information: https://www.educ8s.tv
SUBSCRIBE ON YOUTUBE
Never miss a video: Never miss a video: https://www.youtube.com/subscription_center?add_user=educ8s
My review of 4.3 in lcd
By from -
By from -