sainsmart tft lcd adjustable shield for arduino free sample

The SainSmart TFT LCD module works in 3.3V voltage level and you need to use cables to connect with Arduino Mega. And this shield can help you out of the bothers to use other cables. You just need to plug the module to Mega through this shield.

sainsmart tft lcd adjustable shield for arduino free sample

This is SainSmart MEGA2560  + 7 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts.It includes one pcs of SainSmart MEGA2560 , 7 inch TFT LCD display and a TFT LCD shield for Arduino MEGA2560.This kit helps you to avoid complicated wiring processes and save you much time to accomplish your goal. You can feel free to enjoy the touch function and SD card function by using our codes.We will provided you the whole document including the example project of the kit. We will supply you the technical support after your purchase.

This is the new MEGA2560 R3. In addition to all the features of the previous board, the MEGA now uses an ATMega16U2 instead of the ATMega8U2 chip. This allows for faster transfer rates and more memory. No drivers needed for Linux or Mac (inf file for Windows is needed and included in the Arduino IDE), and the ability to have the Uno show up as a keyboard, mouse, joystick, etc.

The MEGA2560 R3 also adds SDA and SCL pins next to the AREF. In addition, there are two new pins placed near the RESET pin. One is the IOREF that allow the shields to adapt to the voltage provided from the board. The other is a not connected and is reserved for future purposes. The MEGA2560 R3 works with all existing shields but can adapt to new shields which use these additional pins.

It is 100% compatible with the normal MCU like ARM AVR PIC and 8051,especially on Arduino family such as Arduino Due and Arduino MEGA2560(R3). The module uses the LCD controller Chip SSD1963 with 7 inch LCD including the touchscreen.

LCD-specificed intialization code is provided, so that you can save time to optimize power control register and gamma curves for best display performance. We have test the provided code, it gives the best display performanace

This is Sainsmart TFT LCD Extend shield for arduino due .Using this shield can help you out of the bothers to use other cables. You just need to plug the module to arduino due through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed.The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

This shiled is just for Arduno MEGA2560. If you need the LCD Extend shield for Arduino Due,you need a similar shield which is also provided from our store.

This shiled is just for 7 inch TFT LCD.If you need the LCD Extend shield for 3.2/3.5/...,you need a similar shield which is also provided from our store.

sainsmart tft lcd adjustable shield for arduino free sample

This is SainSmart 7 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts. It includes one pcs of 7 inch TFT LCD display and a TFT LCD shield for Arduino MEGA2560(R3). We will provided you the whole document including the example project of Arduino MEGA2560(R3) with the kit. We will supply you the technical support after your purchase.

It is 100% compatible with the normal MCU like ARM AVR PIC and 8051, especially on Arduino family such as Arduino Due and Arduino MEGA2560(R3).The module uses the LCD controller Chip SSD1963 with 5 inch LCD including the touchscreen.

LCD-specificed intialization code is provided, so that you can save time to optimize power control register and gamma curves for best display performance. We have test the provided code, it gives the best display performanace

This is SainSmart TFT LCD Extend shield for Arduino MEGA2560(R3). Using this shield can help you out of the bothers to use other cables. You just need to plug the module to Arduino MEGA2560(R3) through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed. The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

This shiled is just for Arduno MEGA2560(R3). If you need the LCD Extend shield for Arduino Due, you need a similar shield which is also provided from our webstore.

This shiled is just for 7 inch TFT LCD.If you need the LCD Extend shield for 3.2"" or 5"", you need a similar shield which is also provided from our store.

sainsmart tft lcd adjustable shield for arduino free sample

This is SainSmart 7 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts. It includes one pcs of 7 inch TFT LCD display and a TFT LCD shield for Arduino Due.We will provided you the whole document including the example project of Arduino Due with the kit. We will supply you the technical support after your purchase.

It is 100% compatible with the normal MCU like ARM AVR PIC and 8051, especially on Arduino family such as Arduino Due and Arduino MEGA2560(R3).The module uses the LCD controller Chip SSD1963 with 5 inch LCD including the touchscreen.

LCD-specificed intialization code is provided, so that you can save time to optimize power control register and gamma curves for best display performance. We have test the provided code, it gives the best display performanace

This is SainSmart TFT LCD Extend shield for Arduino Due .Using this shield can help you out of the bothers to use other cables. You just need to plug the module to Arduino Due through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed. The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

This shiled is just for Arduno Due. If you need the LCD Extend shield for Arduino MEGA2560(R3), you need a similar shield which is also provided from our webstore.

This shiled is just for 7 inch TFT LCD.If you need the LCD Extend shield for 3.2"" or 5"", you need a similar shield which is also provided from our store.

sainsmart tft lcd adjustable shield for arduino free sample

In addition to all the features of the previous board, the MEGA now uses an ATMega16U2 instead of the ATMega8U2 chip. This allows for faster transfer rates and more memory. No drivers needed for Linux or Mac (inf file for Windows is needed and included in the Arduino IDE), and the ability to have the Uno show up as a keyboard, mouse, joystick, etc.

1.0 pinout: added SDA and SCL pins that are near to the AREF pin and two other new pins placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board. In future, shields will be compatible both with the board that use the AVR, which operate with 5V and with the Arduino Due that operate with 3.3V. The second one is a not connected pin, that is reserved for future purposes.

SainSmart 3.2" TFT LCD Display is a LCD touch screen module. It is a powerful and multifunctional module for your project. The Screen include a controller SSD1289, it"s a support 8/16bit data interface, easy to drive by many MCU like STM32, AVR and 8051. It is designed with a touch controller in it. The touch IC is ADS7843, and touch interface is included in the 40 pins breakout. It is the version of product only with touch screen and touch controller.

This TFT LCD Screen Module, 40pins interface, not just a LCD screen but include the Touch, SD card and Flash design. So it’s a powerful extension module for your project.

SainSmart TFT LCD adjustable shield is 100% compatible for the Mega2560 to expend more Pins and make the connection between the Mega 2560 and 3.2" LCD display easier.

SainSmart 3.2 TFT LCD module works in 3.3V voltage level and you need to use cables to connect with SainSmart Mega. And this shield can help you out of the bothers to use other cables. You just need to plug the module to Mega through this shield.

This shield supports both 16 bit modes. And Mega board has enough pins for using SD card and touch function at the same time. It also has an adjustable button for contrast of the LCD display.

sainsmart tft lcd adjustable shield for arduino free sample

1.SainSmart 3.2" TFT LCD Display is a LCD touch screen module. It is a powerful and multifunctional module for your project. The Screen include a controller SSD1289, it"s a support 8/16bit data interface, easy to drive by many MCU like STM32, AVR and 8051. It is designed with a touch controller in it. The touch IC isXPT2046

7. This TFT LCD Screen Module, 40pins interface, not just a LCD screen but include the Touch, SD card and Flash design. So it’s a powerful extension module for your project.

1.     SainSmart TFT LCD adjustable shield is 100% compatible for the Mega2560 to expend more Pins and make the connection between the Mega 2560 and 3.2"LCD display easier.

2.     SainSmart 3.2 TFT LCD module works in 3.3V voltage level and you need to use cables to connect with SainSmart Mega. And this shield can help you out of the bothers to use other cables. You just need to plug the module to Mega through this shield.

3.     This shield supports both 16 bit modes. And Mega board has enough pins for using SD card and touch function at the same time. It also has an adjustable button for contrast of the LCD display.

sainsmart tft lcd adjustable shield for arduino free sample

This is Sainsmart Due + 4.3 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts.It includes one pcs of Sainsmart Due , 4.3 inch TFT LCD display and a TFT LCD shield for arduino due.This kit helps you to avoid complicated wiring processes and save you much time to accomplish your goal. You can feel free to enjoy the touch function and SD card function by using our codes.We will provided you the whole document including the example project of the kit. We will supply you the technical support after your purchase.

The SainSmart Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU (Datasheet). It is the first Arduino board based on a 32-bit ARM core microcontroller. It has 54 digital input/output pins (of which 12 can be used as PWM outputs), 12 analog inputs, 4 UARTs (hardware serial ports), a 84 MHz clock, an USB OTG capable connection, 2 DAC (digital to analog), 2 TWI, a power jack, an SPI header, a JTAG header, a reset button and an erase button.

It is 100% compatible with the normal MCU like ARM AVR PIC and 8051,especially on arduino family such as arduino due and arduino mega2560(R3).The module uses the LCD controller Chip SSD1963 with 5 inch LCD including the touchscreen.

LCD-specificed intialization code is provided, so that you can save time to optimize power control register and gamma curves for best display performance. We have test the provided code, it gives the best display performanace

This is Sainsmart TFT LCD Extend shield for arduino due .Using this shield can help you out of the bothers to use other cables. You just need to plug the module to arduino due through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed.The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

This shiled is just for arduno due.If you need the LCD Extend shield for arduino mega2560(R3),you need a similar shield which is also provided from our store.

This shiled is just for 4.3 inch TFT LCD.If you need the LCD Extend shield for 3.2/3.5/...,you need a similar shield which is also provided from our store.

sainsmart tft lcd adjustable shield for arduino free sample

This is SainSmart MEGA2560  + 7 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts.It includes one pcs of SainSmart MEGA2560 , 7 inch TFT LCD display and a TFT LCD shield for Arduino MEGA2560.This kit helps you to avoid complicated wiring processes and save you much time to accomplish your goal. You can feel free to enjoy the touch function and SD card function by using our codes.We will provided you the whole document including the example project of the kit. We will supply you the technical support after your purchase.

It is 100% compatible with the normal MCU like ARM AVR PIC and 8051,especially on Arduino family such as Arduino Due and Arduino MEGA2560(R3). The module uses the LCD controller Chip SSD1963 with 7 inch LCD including the touchscreen.

LCD-specificed intialization code is provided, so that you can save time to optimize power control register and gamma curves for best display performance. We have test the provided code, it gives the best display performanace

This is Sainsmart TFT LCD Extend shield for arduino due .Using this shield can help you out of the bothers to use other cables. You just need to plug the module to arduino due through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed.The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

This shiled is just for Arduno MEGA2560. If you need the LCD Extend shield for Arduino Due,you need a similar shield which is also provided from our store.

This shiled is just for 7 inch TFT LCD.If you need the LCD Extend shield for 3.2/3.5/...,you need a similar shield which is also provided from our store.

sainsmart tft lcd adjustable shield for arduino free sample

This is Sainsmart Due + 7 inch TFT LCD module with the TFT LCD shield kit For arduino enthusiasts.It includes one pcs of Sainsmart Due , 7 inch TFT LCD display and a TFT LCD shield for arduino due.This kit helps you to avoid complicated wiring processes and save you much time to accomplish your goal. You can feel free to enjoy the touch function and SD card function by using our codes.We will provided you the whole document including the example project of the kit. We will supply you the technical support after your purchase.

The SainSmart Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU (Datasheet). It is the first Arduino board based on a 32-bit ARM core microcontroller. It has 54 digital input/output pins (of which 12 can be used as PWM outputs), 12 analog inputs, 4 UARTs (hardware serial ports), a 84 MHz clock, an USB OTG capable connection, 2 DAC (digital to analog), 2 TWI, a power jack, an SPI header, a JTAG header, a reset button and an erase button.

It is 100% compatible with the normal MCU like ARM AVR PIC and 8051,especially on arduino family such as arduino due and arduino mega2560(R3).The module uses the LCD controller Chip SSD1963 with 5 inch LCD including the touchscreen.

LCD-specificed intialization code is provided, so that you can save time to optimize power control register and gamma curves for best display performance. We have test the provided code, it gives the best display performanace

This is Sainsmart TFT LCD Extend shield for arduino due .Using this shield can help you out of the bothers to use other cables. You just need to plug the module to arduino due through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed.The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

This shiled is just for arduno due.If you need the LCD Extend shield for arduino mega2560(R3),you need a similar shield which is also provided from our store.

This shiled is just for 7 inch TFT LCD.If you need the LCD Extend shield for 3.2/3.5/...,you need a similar shield which is also provided from our store.

sainsmart tft lcd adjustable shield for arduino free sample

SainSmart 3.2" 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 multifunctional module for your project. The Screen include a controller SSD1289, it"s a support 8/16bit data interface , easy to drive by many MCU like STM32 ,AVR and 8051. It is designed with a touch controller in it . The touch IC is ADS7843 , and touch interface is included in the 40 pins breakout. It is the version of product only with touch screen and touch controller.

SainSmart 3.2 TFT LCD shield works in 3.3V voltage level and you need to use cables to connect with Arduino Mega. And this shield can help you out of the bothers to use other cables. You just need to plug the module to Mega through this shield.

sainsmart tft lcd adjustable shield for arduino free sample

This is SainSmart TFT LCD Extend shield for Arduino Due. Using this shield can help you out of the bothers to use other cables. You just need to plug the module to Arduino Due through this shield.

The shield defines that all the the data transmit ports are PC1-PC8 and PC12-PC19,the controll pins are PD0-PD3.The perfect design could realize that the data transmits in high speed.The SPI interface is designed in the ISP header of arduino due so that the SPI transfer with DMA could be achieved in high speed with no drag.

sainsmart tft lcd adjustable shield for arduino free sample

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.

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:

sainsmart tft lcd adjustable shield for arduino free sample

Hi all, have searched for help in the forum and found none on this combination. I"m using the UTFT libraries and the 320x240 example in the library. Using the 1.5.8 IDE. The code compiles fine, uploads fine, displays a white screen. I have set the pins for the Due with this shield as directed as shown here:

That is a select line for the SD card? Surely that doesn"t prevent the screen from displaying video. Where is it set? Have not found it in any of the files.

You have correctly updated HW_ARM_defines.h, the UTFT initialiser is correct "UTFT myGLCD(ITDB32S,25,26,27,28);" assuming your display is the part "TFT_320QVT" and you are sure your Sainsmart shield is CTE compatible.

Yes, all brand new. I have run sketches with the serial monitor so the Due seems to be working. The CTE shield and TFT display are of course unknowns. I do have 2 of the displays and they both react the same, lights up with white screen and no video. The back of the displays have TFT_320QVT by the SD slot and the SainSmart website by the pins.

Let us assume also your shield is ok (based on the fact it is new??), did you edit the UTFT/memorysaver.h file? Check the line #define DISABLE_SSD1289 IS commented! eg :-

You appear to have done everything to resolve this issue yourself, so I am thinking you have 3 choices, bite the bullet and order a CTE shield, send the shield and display back to Sainsmart or get out your multimeter and check out the shield manually.

Yes the SSD1289 line is commented. I guess using jumper wires to go direct to the Due would be one way to eliminate the shield and prove it is or is not bad. If it were bad, one would think only the 4 lines defined at the top of the sketch would be the issue of white screen.

Thank you Graham! I found the both pairs of 3,3v and 5v jumpers were jumped. That mistake resulted in a system voltage of 4.1v. Removing the 5v jumpers corrected the voltage to 3.3 but the result is the same. I have returned both the display and the CTE shield for refund. Based on my InSain experience I will be looking for another vendor.

BTW, I did hook up my 4x20 LCD display just to be sure the Due wasn"t damaged and works beyond "Hello World." The example LCD code in UTFT works fine once I commented out the code that has not been ported for Due.

Thats an interesting point you make! I understood there were problems with UTFT library when IDE 1.5.7 was released, and Henning issued an update to his libraries to deal with those problems, but I was not aware of any differences between 1.5.7 and 1.5.8. Can you confirm which version of UTFT you are using?

Maybe you should upgrade your version of UTFT? Based on the fact the compatibility issues I mentioned were already resolved in a later version than yours.....

So I checked and the uno was working, the LCD was working but the combo UNO, shield and LCD was not working. I noticed that the LCD is getting very hot.

yes it is possible, but you need to do several things first. Look at your schematic and identify the PWM pin for the back display. Make sure this pin is compatible with your display, and not being used. If it is available and compatiblewith your display, you will need to do the following.

sainsmart tft lcd adjustable shield for arduino free sample

Buy 3.2 inch Touchscreen LCD Screen Shield for Arduino Mega on sale online. Sydney Australia stock and Warranty with Fast Free Shipping from our Sydney Warehouse. Buy Now and Pay Later with ZipMoney. Now on Sale, Check our range online.

Mega Development Board with USB cable for Arduino. Best Cheap Arduino Mega Microcontroller on sale online. Sydney Australia stock and Warranty with Fast Free Shipping from our Sydney Warehouse. Buy Now and Pay Later with ZipMoney. Now on Sale, Check...

sainsmart tft lcd adjustable shield for arduino free sample

Hi all. I have an odd problem. I have two versions of Linux installed on my PC (Ubuntu 18.something, and Mint 17.3), and Win 10. I"ve been playing with Arduino on Linux Mint for quite a while, and recently got a Due with a shield and 320x240 touch screen (Sainsmart). I installed the UTFT library and other associated libraries (UTFT_Buttons, URTourch) and tried many of the examples, but nothing worked. Then one day I happened to be using Ubuntu, and tried one of the examples on that. Success! Well, sort of. The screen displayed what the program was trying to display, but none of the touch functionality worked. I swapped back to Mint and tried the exact same sketch there, with the exact same libraries, and nothing, just a blank screen. Swapped back to Ubuntu, and it works. Out of curiosity I tried it under Windows 10. Again it didn"t work. I even tried it using Visual Studio and the Visual Micro plugin, but again it didn"t display anything. It seems the only place it works is in Ubuntu.

I have done a lot of mucking around with Arduino under Linux Mint, including trying things like Ardublocks, linking it to CodeBlocks, and a few other weird and wonderful things I"ve discovered in my travels (all in an attempt to find a better IDE than the default Arduino one. I would particularly like to be able to "step" through the code to see it executing one line at a time, which the default IDE doesn"t do.) So I did a complete removal of Arduino IDE according so some instructions I found (three libraries had to be deleted), and did a clean install of the Arduino IDE. Imported all the libraries again and tried the example sketch again. It still didn"t work.

This is the screen I have [Discontinued] 3.2" TFT LCD Display + Shield Board for Arduino Mega 25 – SainSmart.com. The example I have been trying to load is UTFT, Examples, Arduino (ARM) + Teensy, UTFT_Demo_320x240.

sainsmart tft lcd adjustable shield for arduino free sample

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

New electronic items fulfilled by Amazon AU can be returned for change of mind, for a replacement or a full refund of the purchase cost of the item within 30 days of receipt of delivery.For information about returning faulty electronics please see Returning Faulty Items.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy If fulfilled by Amazon AU, this item is non-returnable due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Amazon AU does not accept returns for items sold and fulfilled by third-party sellers. To determine whether items sold and fulfilled by a third-party seller can be returned, check the returns policy set by that seller.

Returns Policy You may return most new, unopened baby items fulfilled by Amazon AU within 90 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds. Change of mind returns of baby items fulfilled by Amazon AU will qualify for Free Returns shipping if the item detail page includes "Free Returns" messaging. Otherwise original shipping fees for change of mind returns are not refunded.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You may return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds. Amazon AU offers free returns shipping for change of mind returns on eligible items. Look for the "Free Returns" messaging on the detail page of an item to confirm if it is eligible for free returns. Please also see About Free Returns. Otherwise, original shipping fees for change of mind returns are not refunded.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You may return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds. Amazon AU offers free returns shipping for change of mind returns on eligible items. Look for the "Free Returns" messaging on the detail page of an item to confirm if it is eligible for free returns. Please also see About Free Returns. Otherwise, original shipping fees for change of mind returns are not refunded.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You may return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds. Amazon AU offers free returns shipping for change of mind returns on eligible items. Look for the "Free Returns" messaging on the detail page of an item to confirm if it is eligible for free returns. Please also see About Free Returns. Otherwise, original shipping fees for change of mind returns are not refunded.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

Returns Policy You can return most new, unopened items fulfilled by Amazon AU within 30 days of receipt of delivery for a replacement or full refund of the price you paid for the item if you change your mind - see About Replacements and About Refunds.

In some cases, the nature of the item means that it is non-returnable, for example, due to hygiene/health and personal care/wellness/consumable nature of the product. In some circumstances, these items may be eligible for a refund or a replacement (for example, if you receive the wrong item due to an Amazon AU error or if the item is faulty). Please Contact Us and see About Items That Can’t Be Returned.

Unless otherwise stated, original shipping fees for change of mind returns are not refunded. This change of mind return policy is in addition to, and does not affect your rights under the Australian Consumer Law including any rights you may have in respect of faulty items.

For items ordered on Amazon.com.au from a seller that fulfils and ships its own inventory (also called a third party seller), any returns will be in accordance with the returns policy set by that seller (not the Amazon AU returns policies). Please see About Marketplace Returns & Refunds for details on Seller returns policies.

sainsmart tft lcd adjustable shield for arduino free sample

Adafruit_ST7735 is the library we need to pair with the graphics library for hardware specific functions of the ST7735 TFT Display/SD-Card controller.

In the file dialog select the downloaded ZIP file and your library will be installed automatically. This will automatically install the library for you (requires Arduino 1.0.5 or newer). Restarting your Arduino software is recommended as it will make the examples visible in the examples menu.

The easiest way to remedy this is by extracting the GitHub ZIP file. Place the files in a directory with the proper library name (Adafruit_GFX, Adafruit_ST7735 or SD) and zip the folder (Adafruit_GFX, Adafruit_ST7735.zip, SD.zip). Now the Arduino software can read and install the library automatically for you.

Basically, besides the obvious backlight, we tell the controller first what we are talking to with the CS pins. CS(TFT) selects data to be for the Display, and CS(SD) to set data for the SD-Card. Data is written to the selected device through SDA (display) or MOSI (SD-Card). Data is read from the SD-Card through MISO.

So when using both display and SD-Card, and utilizing the Adafruit libraries with a SainSmart display, you will need to connect SDA to MOSI, and SCL to SCLK.

As mentioned before, the display has a SLOW and a FAST mode, each serving it’s own purpose. Do some experiments with both speeds to determine which one works for your application. Of course, the need of particular Arduino pins plays a role in this decision as well …

Note: Adafruit displays can have different colored tabs on the transparent label on your display. You might need to adapt your code if your display shows a little odd shift. I noticed that my SainSmart display (gree tab) behaves best with the code for the black tab – try them out to see which one works best for yours.

Low Speed display is about 1/5 of the speed of High Speed display, which makes it only suitable for particular purposes, but at least the SPI pins of the Arduino are available.

After connecting the display in Low Speed configuration, you can load the first example from the Arduino Software (“File” “Example” “Adafruit_ST7735” –  recommend starting with the “graphictest“).

Below the code parts for a LOW SPEED display (pay attention to the highlighted lines) – keep in mind that the names of the pins in the code are based on the Adafruit display:

#define sclk 4 // SainSmart: SCL#define mosi 5 // SainSmart: SDA#define cs 6 // SainSmart: CS#define dc 7 // SainSmart: RS/DC#define rst 8 // SainSmart: RES

#define sclk 13 // SainSmart: SCL#define mosi 11 // SainSmart: SDA#define cs 10 // SainSmart: CS#define dc 9 // SainSmart: RS/DC#define rst 8 // SainSmart: RES

The SD-Card needs to be FAT-16 or FAT-32 formatted, single partition, and the BMP file needs to be placed in the root (ie. not in a directory or anything like that).

You can name your BMP file “parrot.bmp” or modify the Sketch to have the proper filename (in “spitftbitmap” line 70, and in “soft_spitftbitmap” line 74).

#define SD_CS 4 // Chip select line for SD card#define TFT_CS 10 // Chip select line for TFT display#define TFT_DC 9 // Data/command line for TFT#define TFT_RST 8 // Reset line for TFT (or connect to +5V)

#define SD_CS 4 // Chip select line for SD card#define TFT_CS 10 // Chip select line for TFT display#define TFT_DC 9 // Data/command line for TFT#define TFT_RST 8 // Reset line for TFT (or connect to +5V)

As you have seen before the Adafruit_GFX library (supported by the Adafruit_ST7735 library) makes this easy for us – More information can be found at the GFX Reference page.

To use this in your Arduino Sketch: The first 2 characters represent RED, the second set of two characters is for GREEN and the last 2 characters represent BLUE. Add ‘0x’ in front of each of these hex values when using them (‘0x’ designates a hexadecimal value).

Based on these functions, I did create a little demo to show what these functions do. Either download the file or just copy the code and paste it into an empty Arduino Sketch.

tft.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere. ");

sainsmart tft lcd adjustable shield for arduino free sample

If you are looking to get into Arduino development or are wanting to expand your existing collection, this is the perfect item for you. You get a great value for your money:SainSmart Mega 2560 board (Arduino clone) ($33)SainSmart TFTP display with touch screen and full sized SD card slot ($25)SainSmart TFTP Display adaptor ($15)Short USB cableI spent $46 for this setup, so the value is obvious.The Mega 2560 clone worked perfectly, the display worked perfectly and the adapter board mated them properly. I had purchased a Seeed 3.2" display at Radio Shack for $49. It had many issues and I returned it and used the money to buy this setup. This display is much faster than the Seeed display and the drivers were very easy to locate and install. Just google "UTFT drivers henningkarlsen" and get all of the UTFT drivers. Henning has several more drivers on his site, go ahead and get them all. They are very easy to use and configure. To use the drivers with this particular board (they are "universal drivers") use this setting for the board type:UTFT myGLCD(ITDB32S,38,39,40,41); // the ITB32s and correct pins for Mega shieldSo in summary:Pros:1. Great value for the money2. Everything worked greatCons:1. Not a "real" Arduino. You"ll have to decide for yourself how important this is to you.The nice thing about SainSmart is that they admit that they are cloning the Arduino boards. Most of the boards available on Amazon are counterfeits and the sellers are not particularly upfront about this. These counterfeit boards exactly copy the Arduino boards, definitely graying the area between legitimacy and piracy. SainSmart clearly marks their boards as clones. I appreciate this honesty in a company, especially when there"s more money to be made by tricking buyers into purchasing counterfeit boards.I highly recommend this package for anyone wanting to get into Arduino development or wanting a touchscreen. The value is great. Now, I guess I need to hunt down a 7" TFTP display to continue this adventure.[9/19/13] Update:After digging into the touch screen, I found that the UTouch lib had some serious accuracy problems, even after trying to use the calibration utility provided with the library. I re-wrote the lib and now I find that the accuracy of the screen is very good. To re-write the lib, you need to take these factors into account:1. The reading of the x values for the screen at the extreme left and right edges.2. The reading of the y values for the screen at the extreme top and bottom edges.This is confused a bit by the fact that the screen is natively in portrait mode. Which is to say that the long side is the y-axis and the short-side is the x-axis. I wanted a landscape mode, so I swapped the coordinates in my driver.Once you know the x and y extremes for the touch screen, simply use the map function to map them to the actual screen coordinates. This gives you a pretty accurate x and y for the display.The other issue I had was with how the touch screen was sampled. The library code polls the touch screen several times per read and averages the results to get a more accurate reading. In the case of "EXTREME" accuracy, it polls 10 times. The problem with this is that if you lift your stylus during the polling, the last few reads are bogus and throw the entire read off. You can see this happening in the SainSmart demo video that they posted for this device. The symptoms are that pixels get set on the sample paint program way far away from where the stylus is. Not cool! The fix is to only sample the screen if the screen is detecting the stylus as being pressed. You can do this by checking the dataAvailable() before each read in the poll. If there is no data available, don"t do the read.I wish I had a more effective method of sharing this information with the Arduino community.