Difference between revisions of "ESP32 TFT LCD with Camera(3.5'')"

From MakerFabsWiki
Jump to: navigation, search
 
Line 33: Line 33:
 
==Usage==
 
==Usage==
 
Warning: Don't operate when in power supply on<br>
 
Warning: Don't operate when in power supply on<br>
'''[https://github.com/Makerfabs/Makepython-ESP32 Github:Project_Touch_Screen_Camera]'''
+
'''[https://github.com/Makerfabs/Project_Touch-Screen-Camera Github:Project_Touch_Screen_Camera]'''
  
 
===Software setup===
 
===Software setup===

Latest revision as of 01:50, 30 September 2020

Introduction

The 3.5” 320x480 TFT LCD driver is ILI9488, it uses SPI for communication with ESP32, the SPI main clock could be up to 60M~80M, make the display smooth enough for videos; and the camera OV2640 with pixel 2M, with this camera, you can make applications such as remote photography, face recognition…. While the camera not used, you can freely use all these pins with the breakout connectors, to connect the ESP32 display with sensors/ actuators, suitable for IoT applications.

Model: ESP32 3.5" TFT Touch(Resistive) with Camera
Model: ESP32 3.5" TFT Touch(Capacitive) with Camera
ESP32 TFT LCD with Camera A02.jpg

Features

  • Integrated ESP32 Wrover 2.4G WiFi and Bluetooth
  • Wi-Fi Protocols: 802.11b/g/n(802.11n up to 150Mbps),A-MPDU and A-MSDU aggregation and 0.4us guard interval support
  • Wi-Fi Frequency range: 2.402GHz - 2.483Ghz
  • Bluetooth Protocols: Bluetooth v4.2 BR/EDR and BLE specification
  • Bluetooth Radio: NZIF receiver with-97 dBm sensitivity, Class-1/class-2 and class-3 transmitter, AFH
  • Bluetooth Audio: CVSD and SBC
  • Arduino Compatible: You can play it with Arduino IDE
  • OV2640: A 1/4inch CMOS UXGA (1632*1232) image sensor manufactured by OmniVision
  • OV2640 supports output images up to 2 million pixels
  • LCD 3.5 inch Amorphous-TFT-LCD (Thin Film Transistor Liquid Crystal Display) for mobile-phone or handy electrical equipment
  • LCD Driver: ILI9488
  • LCD Resolution: 320*480
  • NS2009: A 4-wire resistive touch screen control circuit with I2C interface, which contains A 12-bit resolution A/D converter
  • FT6236 Series ICs are single-chip capacitive touch panel controller IC with a built-in 16 bit enhanced Micro-controller unit (MCU)
  • Power supply: 5V, Type-C USB
  • Micro SD card slot on the board
  • Board size: 66mm * 85mm


Diagram

ESP32 TFT LCD with Camera 9.JPG

Usage

Warning: Don't operate when in power supply on
Github:Project_Touch_Screen_Camera

Software setup

1.Install the ESP32 boards supporting

  • Note After Arduino IDE installed, there is no package to support ESP32, we need to install the ESP32 package in Arduino IDE to continue.
  • Select “File>Preferences>settings>Additional Boards Manager URLs” to fill the link: [1]

ESP32 TFT LCD with Camera 11.PNG

  • Click “Tools>Board>Boards Manager” to search for and install the ESP32 library:
     

ESP32 TFT LCD with Camera 12.PNG
2.Select and setting the parameter in the Tools menu, as the picture
ESP32 TFT LCD with Camera 13.PNG
3.Install Adafruit GFX library
Click “Tools> Manager Libraries” to search for and install Adafruit GFX library.
ESP32 TFT LCD with Camera 14.PNG

Draw on LCD

1. You can get the code from here: Core
2. Open the file “\Project_Touch-Screen-Camera-master\touch_draw_v2\touch_draw_v2.ino”. Select the screen type used and comment out the ones that are not used.

//Choice your touch IC
#define ESP32_SDA 26
#define ESP32_SCL 27

//#define NS2009_TOUCH   //Resistive screen driver
#define FT6236_TOUCH    //Capacitive screen driver

3. Verify it and upload.
ESP32 TFT LCD with Camera 15.PNG
If failed to upload the code as the picture, please upload again and try to press the Flash switch when the code is uploading.
ESP32 TFT LCD with Camera 16.PNG
4. Reset the ESP32 and you will get the drawing board.
ESP32 TFT LCD with Camera 17.GIF

Display the picture

1. You can get the code from here:Core
2. Open the file “\Project_Touch-Screen-Camera-master\SD2TFT\SD2TFT.ino”. Choose the screen type and modify the code.
3. Verify and upload the code, you will get a digital photo frame.
ESP32 TFT LCD with Camera 18.GIF

Camera

1. You can get the code from here: Core
2. Open the file “\Project_Touch-Screen-Camera-master\Camera_v2\Camera_v2.ino”. Choose the screen type and modify the code.
3. Verify and upload the code, you will get a camera.
ESP32 TFT LCD with Camera 20.JPG


FAQ

You can list your question here or contact support@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.

Resources