sainsmart 2.4 tft lcd display i manufacturer

I recently purchased a 2.4" TFT + touch screen from http://www.dx.com and have had nothing but problems. Was wondering if anyone would be able to help?

At the bottom of the page the chipset is listed as ili9325, but after a bit of searching found that the board is actually from http://www.elecfreaks.com/store/24-tft- ... p-110.html and that between V1.3 - V2 they changed chipset to S6D1121.

Tried using Norto"s "Master" and "Builtin" builds of wheezy raspbian aswell as installing the kernel via REPO_URI to the original wheezy-raspbian build from http://www.raspberrypi.org/downloads/ but still no luck. reasonably new to the linux environment still so iv wrote out my steps, can anyone see am i doing something wrong?

Sudo modprobe flexfb width=240 height=320 regwidth=16 setaddrwin=1 init=-1,0x0013,0xCC00,-1,0x0011,0x2004,-1,0x0015,0x2600,-1,0x0014,0x252A,-1,0x0012,0x0033,-1,0x0013,0xCC04,-2,5,-1,0x0013,0xCC06,-2,5,-1,0x0013,0xCC4F,-2,5,-1,0x0013,0x674F,-1,0x0011,0x2003,-2,5,-1,0x0030,0x2609,-1,0x0031,0x242C,-1,0x0032,0x1F23,-1,0x0033,0x2425,-1,0x0034,0x2226,-1,0x0035,0x2523,-1,0x0036,0x1C1A,-1,0x0037,0x131D,-1,0x0038,0x0B11,-1,0x0039,0x1210,-1,0x003A,0x1315,-1,0x003B,0x3619,-1,0x003C,0x0D00,-1,0x003D,0x000D,-1,0x0016,0x0007,-1,0x0002,0x0013,-1,0x0003,0x0003,-1,0x0001,0x0127,-2,5,-1,0x0008,0x0303,-1,0x000A,0x000B,-1,0x000B,0x0003,-1,0x000C,0x0000,-1,0x0041,0x0000,-1,0x0050,0x0000,-1,0x0060,0x0005,-1,0x0070,0x000B,-1,0x0071,0x0000,-1,0x0078,0x0000,-1,0x007A,0x0000,-1,0x0079,0x0007,-1,0x0007,0x0051,-2,5,-1,0x0007,0x0053,-1,0x0079,0x0000,-3

sudo modprobe flexfb width=240 height=320 regwidth=16 setaddrwin=1 init=-1,0x0013,0xCC00,-1,0x0011,0x2004,-1,0x0015,0x2600,-1,0x0014,0x252A,-1,0x0012,0x0033,-1,0x0013,0xCC04,-2,5,-1,0x0013,0xCC06,-2,5,-1,0x0013,0xCC4F,-2,5,-1,0x0013,0x674F,-1,0x0011,0x2003,-2,5,-1,0x0030,0x2609,-1,0x0031,0x242C,-1,0x0032,0x1F23,-1,0x0033,0x2425,-1,0x0034,0x2226,-1,0x0035,0x2523,-1,0x0036,0x1C1A,-1,0x0037,0x131D,-1,0x0038,0x0B11,-1,0x0039,0x1210,-1,0x003A,0x1315,-1,0x003B,0x3619,-1,0x003C,0x0D00,-1,0x003D,0x000D,-1,0x0016,0x0007,-1,0x0002,0x0013,-1,0x0003,0x0009,-1,0x0001,0x0127,-2,5,-1,0x0008,0x0303,-1,0x000A,0x000B,-1,0x000B,0x0003,-1,0x000C,0x0000,-1,0x0041,0x0000,-1,0x0050,0x0000,-1,0x0060,0x0005,-1,0x0070,0x000B,-1,0x0071,0x0000,-1,0x0078,0x0000,-1,0x007A,0x0000,-1,0x0079,0x0007,-1,0x0007,0x0051,-2,5,-1,0x0007,0x0053,-1,0x0079,0x0000,-3

sainsmart 2.4 tft lcd display i manufacturer

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

sainsmart 2.4 tft lcd display i manufacturer

This is SainSmart 2.4 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts.It includes one pcs of 2.4 inch TFT LCD display and a TFT LCD shield for arduino UNO(R3) and the Arduino UNO R3

2.4" TFT LCD Display is a LCD touch screen module. It has 40pins interface and SD card and Flash reader design. It is a powerful and mutilfunctional module for your project.The Screen include a controller ILI9325, it"s a support 8/16bit data interface , easy to drive by many MCU like arduino familiesSTM32 ,AVR and 8051. It is designed with a touch controller in it . The touch IC is XPT2046 , and touch interface is included in the 40 pins breakout. It is the version of product only with touch screen and touch controller.

Voltage type: 5v or 3v voltage input voltage???input is selectable. Because TFT can only work under 3.3 V voltage, so when the input voltage VIN is 5V, need through the 3.3 V voltage regulator IC step down to 3.3V , when the input voltage of 3.3 V, you need to use the zero resistance make J2 short , is equivalent to not through the voltage regulator IC for module and power supply directly.

sainsmart 2.4 tft lcd display i manufacturer

DS024BOE39N-002 is a 2.4inch normally black, it applies to 2.4" color TFT-LCD panel. The 2.4inch color TFT-LCD panel is designed for translator, smart home, GPS, camcorder, digital camera application, industrial equipment device and other electronic products which require high quality flat panel displays, excellent visual effect. This module follows RoHS.

DISEN is a professional TFT(Thin Film Transistor) module manufacturer. There are different models of our TFT active matrix display with various features. Whether you need TFT display with control board, high brightness, wide viewing angle, monochrome, bar type, we have some options for you to choose from. We also offer customization service of backlight and FPC. The available diagonal sizes of our standard TFT display modules are 0.96", 1.77" 2.4", 2.8", 3.5", 3.9", 3.97", 4.3", 5", 5.6", 5.7", 6.2", 7", 8", 8.9", 9", 10.1", 10.4", 11.6”,12.1”, 12.3”, 13.3”, 14”, 15” and 15.6”.

Yes, for the highly customize products, we will have tooling charge per set, but the tooling charge can be refund to our customer if their placing orders up to 30K or 50K.

Yes, Disen will have the plan to attend the exhibition each year, such as embedded world Exhibition & Conference, CES, ISE, CROCUS-EXPO, electronica, EletroExpo ICEEB and so on.

sainsmart 2.4 tft lcd display i manufacturer

I struggled with a SainSmart 3.2 LCD and adapter card and then realized I had the libraries and examples in the wrong folders as well as the wrong model number. Using Sain Smart download (link below) or Henning"s code I had the same problems - because I was making the same mistakes. Here was my solution:

So, the new auto import puts libraries where they need to be. Using IDE Arduino 1.5.2 you can import the zip file ( Sketch|> Import Library|> Add Library...) the 32lcd.zip file from Sain Smart document needs to be renamed because it starts with a number so rename the zip to something like SS32lcd.zip. The automatic import of arduino 1.5.2 IDE will put the UTFT library files in the right place. You will still need to copy the example folder over to the example folder in the ....\arduino-1.5.2 IDE installed folder for them to show up in the File|>Examples|> menu. You can save your changes into your sketchbook and your customization will be preserved there.

Once you see how the auto library import install sets up the folders using the zip file you could use Henning"s rar files extracted and moved to the same places - I haven"t figured how to get the arduino import to accept a RAR file

Once you get all the linked libraries installed in the right folders you can open sketches from other locations BUT if the linked libraries have changes the IDE will still see the old versions you put in using the import feature.

Libraries with the same names in different folders could lead to using a different library than the one you have just downloaded or are expecting or the one you just modified but is in a different folder- be careful to watch directory structure and use new names

sainsmart 2.4 tft lcd display i manufacturer

desertcart is the best online shopping platform where you can buy SainSmart TFT LCD Screen Kit for Arduino UNO R3 (2.8" LCD, With Shield + UNO R3) from renowned brand(s). desertcart delivers the most unique and largest selection of products from across the world especially from the US, UK and India at best prices and the fastest delivery time.

desertcart ships the SainSmart TFT LCD Screen Kit for Arduino UNO R3 (2.8" LCD, With Shield + UNO R3) to and more cities in Lithuania. Get unlimited free shipping in 164+ countries with desertcart Plus membership. We can deliver the SainSmart TFT LCD Screen Kit for Arduino UNO R3 (2.8" LCD, With Shield + UNO R3) speedily without the hassle of shipping, customs or duties.

desertcart buys SainSmart TFT LCD Screen Kit for Arduino UNO R3 (2.8" LCD, With Shield + UNO R3) directly from the authorized agents and verifies the authenticity of all the products. We have a dedicated team who specialize in quality control and efficient delivery. We also provide a free 14 days return policy along with 24/7 customer support experience.

Yes, it is absolutely safe to buy SainSmart TFT LCD Screen Kit for Arduino UNO R3 (2.8" LCD, With Shield + UNO R3) from desertcart, which is a 100% legitimate site operating in 164 countries. Since 2014, desertcart has been delivering a wide range of products to customers and fulfilling their desires. You will find several positive reviews by desertcart customers on portals like Trustpilot, etc. The website uses an HTTPS system to safeguard all customers and protect financial details and transactions done online. The company uses the latest upgraded technologies and software systems to ensure a fair and safe shopping experience for all customers. Your details are highly secure and guarded by the company using encryption and other latest softwares and technologies.