3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post Reply
admin
Site Admin
Posts: 743
Joined: Sun Aug 05, 2012 4:02 pm

3.2" TFT Shield with resistive touch (HCARDU0109 & HCARDU0111)

Post by admin » Fri Feb 22, 2019 1:43 pm

Image




This 3.2" Colour TFT is an Arduino compatible shield that will plug directly into common types of Arduinos, including Uno, Leonardo, and Mega. It includes level shifters so no additional adaptor board is required for connecting to 5V Arduinos. The shield also includes a resistive touch screen sensor allowing your application to include touch screen controls. If using with the above Arduino devices we have also written an Arduino library (HCDisplay) to help you develop your project with minimum time and effort.

ImageImage


Specification:

Product code: HCARDU0108 (HX8352B) / HCARDU0111 (ILI9327)
Display size: 3.2 inch
Resolution: 240X400
Colours: 65535
Display controller: HX8352B (HCARDU0108) or ILI9327 (HCARDU0111)
Operating voltage: 5V
Operating current: 150mA (max)
Touch screen type: resistive touchscreen
On board Micro SD slot, supports Micro SD / TF Card
Compatibility: As the SD card is connected to SPI pins of ICSP interface it is compatible with Arduino UNO R3 / Arduino Mega2560 / Arduino Leonardo
Touch Pen: length 9cm







  1. /* FILE:    HCDisplay_Hello_World
  2.    DATE:    22/02/19
  3.    VERSION: 0.1
  4.    AUTHOR:  Andrew Davies
  5.    
  6. 20/12/18 version 0.1: Original version
  7.  
  8. A simple hello world sketch to demonstrate the minimum amount of code needed to
  9. display some text to the screen.
  10.  
  11. Open-Smart 2.4 Inch TFT shield (SKU: HCARDU0108)
  12. Open-Smart 3.2 Inch TFT shield with ILI9325 controller (SKU: HCARDU0109)
  13. Open-Smart 3.2 Inch TFT shield with ILI9327 controller (SKU: HCARDU0111)
  14.  
  15. NOTE: TO USE THIS SKETCH YOU MUST FIRST SELECT THE VERSION OF DISPLAY YOU HAVE BY
  16. UNCOMMENTING THE APPROPRIATE LINE IN THE OPTIONS.H FILE WHICH CAN BE FOUND IN THE
  17. HCDISPLAY LIBRARY FOLDER. For windows users avoid using the Windows Notepad editor
  18. as it doesn't format things properly.  
  19.  
  20. More information about this library can be found in the software section of our support
  21. forum here:
  22.  
  23. http://forum.hobbycomponents.com/software
  24.  
  25.  
  26. You may copy, alter and reuse this code in any way you like, but please leave
  27. reference to HobbyComponents.com in your comments if you redistribute this code.
  28. This software may not be used directly for the purpose of selling products that
  29. directly compete with Hobby Components Ltd's own range of products.
  30. THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
  31. EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  32. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
  33. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
  34. INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
  35. REASON WHATSOEVER. */
  36.  
  37.  
  38. #include "HCDisplay.h"
  39.  
  40. HCDisplay HCDisplay;    //Creates an instance of the HCDisplay library
  41.  
  42.  
  43. void setup()
  44. {
  45.   HCDisplay.Init();   //Initialise the display
  46.  
  47.   HCDisplay.Pos((HCDisplay.ResX() / 2) - 48, HCDisplay.ResY() / 2);
  48.   HCDisplay.Print("Hello World!");
  49. }
  50.  
  51.  
  52.  
  53. void loop()
  54. {
  55.  
  56. }



Image


The HCDisplay library for the above sketch can be downloaded from the software section of our support forum here:

http://forum.hobbycomponents.com/viewto ... =58&t=2827

TFT Shield 3.2inch 8352B Schematic_HCARDU0109.pdf



Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.
You do not have the required permissions to view the files attached to this post.

Post Reply