3.2" Colour TFT Module With Resistive Touch (HCMODU0132)

LCD, TFT, OLED, LED modules
Post Reply
admin
Site Admin
Posts: 865
Joined: Sun Aug 05, 2012 4:02 pm

3.2" Colour TFT Module With Resistive Touch (HCMODU0132)

Post by admin » Tue Feb 26, 2019 10:41 am

Image





A 3.2" colour TFT display module compatible with 3.3V microcontrollers such as the Arduino Due, 3.3V Pro mini, 3.3V Pro micro, ESP8266, ESP32 etc. The module uses a standard serial SPI interface for communication. Besides featuring a 65K colour display the module also includes a resistive touch sensor allowing your application to include touch input. Additionally the module features an SD card socket to add the option of storing image data on SD card.

ImageImage

If using this module with the Arduino board such as the *Uno, *Leonardo, *Pro Mini, *Pro Micro or Due we have also written an Arduino library (HCDisplay) which will allow you develop your project with the minimum of effort.

*Note if using with 5V microcontrollers this module will require level shifters.


SPECIFICATION:

Product code: HCMODU0132
Display size: 3.2 inch
Resolution: 240X320
Display controller: ILI9341
Touch screen controller: TSC2046
Colours: 65535
Operating voltage: 5V
Touch screen type: resistive touchscreen
On board SD slot
Touch Pen: length 9cm







ARDUINO SKETCH:
  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. 3.2 inch TFT LCD Module with Touch Panel ILI9341 240 x 320 (SKU: HCMODU0132)
  12.  
  13. NOTE: TO USE THIS SKETCH YOU MUST FIRST SELECT THE VERSION OF DISPLAY YOU HAVE BY
  14. UNCOMMENTING THE APPROPRIATE LINE IN THE OPTIONS.H FILE WHICH CAN BE FOUND IN THE
  15. HCDISPLAY LIBRARY FOLDER. For windows users, avoid using the Windows Notepad editor
  16. as it doesn't format things properly.  
  17.  
  18. More information about this library can be found in the software section of our support
  19. forum here:
  20.  
  21. http://forum.hobbycomponents.com/software
  22.  
  23.  
  24. You may copy, alter and reuse this code in any way you like, but please leave
  25. reference to HobbyComponents.com in your comments if you redistribute this code.
  26. This software may not be used directly for the purpose of selling products that
  27. directly compete with Hobby Components Ltd's own range of products.
  28. THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
  29. EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  30. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
  31. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
  32. INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
  33. REASON WHATSOEVER. */
  34.  
  35.  
  36. /* Arduino pins used to connect to the display and displays touch sensor */
  37. #define DC_PIN  9         //Displays/Data Command pin
  38. #define CS_PIN  10        //Displays Chip Select pin
  39. #define RST_PIN 8         //Displays Reset Pin
  40.  
  41.  
  42. #include "HCDisplay.h"
  43.  
  44. HCDisplay HCDisplay;    //Creates an instance of the HCDisplay library
  45.  
  46.  
  47. void setup()
  48. {
  49.   HCDisplay.Init(DC_PIN, CS_PIN, RST_PIN);   //Initialise the display
  50.  
  51.   HCDisplay.Pos((HCDisplay.ResX() / 2) - 48, HCDisplay.ResY() / 2);
  52.   HCDisplay.Print("Hello World!");
  53. }
  54.  
  55.  
  56. void loop()
  57. {
  58.  
  59. }



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




3.2inch_SPI_Module_ILI9341_HCMODU0132_Specification.pdf
3.2inch_SPI_Module_ILI9341_HCMODU0132_Schematic.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

Return to “Display”