Encomendado em dias úteis antes das 14:00 = enviado no mesmo dia e, em 98% dos casos, entregue no dia seguinte. Devolução gratuita 30 dias para refletir 1 ano de garantia

Esquema de ligação e exemplo de código

Como ligar o Shield TFT com ecrã tátil de 3.5 polegadas para Arduino UNO e Mega a um Arduino UNO ou ESP32, com um sketch de exemplo que podes carregar já.

3.5 Inch TFT LCD Shield SD Card Reader Demo

This project demonstrates the onboard MicroSD card interface of the 3.5-inch TFT LCD Shield mounted directly onto an Arduino Uno. The sketch initializes the SD card via SPI (using CS pin 10), writes a timestamped log file, and reads the content back to the Serial Monitor at 115200 baud.

Esquema de ligação: Shield TFT com ecrã tátil de 3.5 polegadas para Arduino UNO e Mega num Arduino UNO
Esquema de ligação · Clique para ampliar
Tabela de ligação: Shield TFT com ecrã tátil de 3.5 polegadas para Arduino UNO e Mega num Arduino UNO
Tabela de ligação · Clique para ampliar
3_5_Inch_TFT_LCD_Shield_SD_Card_Reader_D.ino · compilado e testado
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : 3.5 Inch TFT LCD Shield SD Card Reader Demo
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : 3.5 inch TFT LCD Shield
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <SPI.h>
#include <SD.h>

const int chipSelect = 10;

void setup() {
  Serial.begin(115200);
  while (!Serial) {
    ; // Wait for serial port to connect
  }

  Serial.println(F("--- 3.5\" TFT Shield SD Card Demo ---"));
  Serial.print(F("Initializing SD card on pin 10..."));

  if (!SD.begin(chipSelect)) {
    Serial.println(F(" FAILED!"));
    Serial.println(F("Please check that a FAT16/FAT32 formatted microSD card is inserted."));
    return;
  }
  Serial.println(F(" OK!"));

  // Write sample data to test.txt
  File myFile = SD.open("test.txt", FILE_WRITE);
  if (myFile) {
    Serial.println(F("Writing to test.txt..."));
    myFile.println(F("Hello from Arduino Uno and 3.5 inch TFT Shield!"));
    myFile.println(F("MicroSD storage test successful."));
    myFile.close();
    Serial.println(F("Done writing."));
  } else {
    Serial.println(F("Error opening test.txt for writing."));
  }

  // Read back the data
  myFile = SD.open("test.txt");
  if (myFile) {
    Serial.println(F("--- File contents:"));
    while (myFile.available()) {
      Serial.write(myFile.read());
    }
    myFile.close();
    Serial.println(F("--- End of file"));
  } else {
    Serial.println(F("Error opening test.txt for reading."));
  }
}

void loop() {
  // Nothing to do in loop
  delay(1000);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

ESP32 3.5" TFT LCD Shield Color Demo

This project connects a 3.5-inch parallel TFT LCD shield to the ESP32 and cycles through background colors. It uses direct 8-bit parallel GPIO communication to reset, initialize, and paint color frames to the display.

Esquema de ligação: Shield TFT com ecrã tátil de 3.5 polegadas para Arduino UNO e Mega num ESP32 DevKit V1
Esquema de ligação · Clique para ampliar
Tabela de ligação: Shield TFT com ecrã tátil de 3.5 polegadas para Arduino UNO e Mega num ESP32 DevKit V1
Tabela de ligação · Clique para ampliar
ESP32_3_5_TFT_LCD_Shield_Color_Demo.ino · compilado e testado
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : ESP32 3.5" TFT LCD Shield Color Demo
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : 3.5 inch TFT LCD Shield
 *  Libraries : none (built-in)
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

// 3.5 inch TFT LCD 8-bit Parallel Demo for ESP32

const int PIN_RST = 13;
const int PIN_CS  = 5;
const int PIN_RS  = 4;
const int PIN_WR  = 2;

// 8-bit data bus pins D0 to D7
const int DATA_PINS[8] = {14, 27, 26, 25, 33, 32, 21, 22};

void writeBus(uint8_t val) {
  for (int i = 0; i < 8; i++) {
    digitalWrite(DATA_PINS[i], (val >> i) & 0x01);
  }
  digitalWrite(PIN_WR, LOW);
  digitalWrite(PIN_WR, HIGH);
}

void writeCommand(uint8_t cmd) {
  digitalWrite(PIN_RS, LOW);
  writeBus(cmd);
}

void writeData(uint8_t data) {
  digitalWrite(PIN_RS, HIGH);
  writeBus(data);
}

void setWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1) {
  writeCommand(0x2A); // Column addr
  writeData(x0 >> 8);
  writeData(x0 & 0xFF);
  writeData(x1 >> 8);
  writeData(x1 & 0xFF);

  writeCommand(0x2B); // Row addr
  writeData(y0 >> 8);
  writeData(y0 & 0xFF);
  writeData(y1 >> 8);
  writeData(y1 & 0xFF);

  writeCommand(0x2C); // Memory write
}

void fillScreen(uint16_t color) {
  setWindow(0, 0, 319, 479);
  digitalWrite(PIN_RS, HIGH);
  uint8_t hi = color >> 8;
  uint8_t lo = color & 0xFF;
  for (uint32_t i = 0; i < (320UL * 480UL); i++) {
    writeBus(hi);
    writeBus(lo);
  }
}

void initLCD() {
  digitalWrite(PIN_CS, LOW);
  digitalWrite(PIN_RST, HIGH);
  delay(10);
  digitalWrite(PIN_RST, LOW);
  delay(20);
  digitalWrite(PIN_RST, HIGH);
  delay(120);

  writeCommand(0x11); // Sleep OUT
  delay(120);
  writeCommand(0x3A); // Pixel format
  writeData(0x55);   // 16-bit color
  writeCommand(0x29); // Display ON
  delay(50);
}

void setup() {
  Serial.begin(115200);
  Serial.println("Starting 3.5-inch TFT LCD demo...");

  pinMode(PIN_RST, OUTPUT);
  pinMode(PIN_CS, OUTPUT);
  pinMode(PIN_RS, OUTPUT);
  pinMode(PIN_WR, OUTPUT);

  digitalWrite(PIN_CS, HIGH);
  digitalWrite(PIN_WR, HIGH);
  digitalWrite(PIN_RS, HIGH);

  for (int i = 0; i < 8; i++) {
    pinMode(DATA_PINS[i], OUTPUT);
  }

  initLCD();
  Serial.println("Display initialized!");
}

void loop() {
  Serial.println("Color: RED");
  fillScreen(0xF800);
  delay(1000);

  Serial.println("Color: GREEN");
  fillScreen(0x07E0);
  delay(1000);

  Serial.println("Color: BLUE");
  fillScreen(0x001F);
  delay(1000);

  Serial.println("Color: WHITE");
  fillScreen(0xFFFF);
  delay(1000);
}

Wiring diagram and example code generated by Codey.online — https://www.codey.online

Shield TFT com ecrã tátil de 3.5 polegadas para Arduino UNO e Mega

Este shield com ecrã tátil de 3,5 polegadas pode ser ligado diretamente ao Arduino UNO e ao Arduino Mega 2560 e funciona com base na biblioteca ili9486.

Resolução: 480x320
Ecrã tátil: Sim
Leitor de cartões MicrosSD: Sim

Descarregue os sketches de exemplo para começar imediatamente com este shield TFT com ecrã tátil no seu UNO ou MEGA.

Descarregar sketches de exemplo e bibliotecas para Arduino

Dimensões
Comprimento: 8,5cm
Largura: 5,5cm
Altura: 0,7cm

  • 3,5 inch scherm
  • ili9486 library
  • Direct aangesloten
  • Compact formaat
Ao reproduzir, o vídeo do YouTube é carregado.

Por que escolher este produto?

  • Direct aansluiten – Werkt meteen op Arduino UNO en Mega 2560.
  • Touchscreen aanwezig – Bediening via het ingebouwde touchscreen.
  • MicroSD-kaartlezer – Voorzien van een microsD-kaartlezer.
  • Voorbeeld sketches – Downloads helpen je direct te starten.
Especificações
Largura5,5 cm
Resolução480 x 320
Adequado paraArduino UNO™
Comprimento8,5cm
Altura0,7 cm

Frequentemente comprados juntos

Total: € 39,45

Avaliações

★★★★★ 5,0/5 2 avaliações
  • ★★★★★Ger BischoffCompra verificada

    Funciona bem. Funciona de forma mais fácil e fiável sem todos aqueles cabos e uma breadboard. E o preço não é de todo demasiado alto.

  • ★★★★★Eric Debels

    Já comprei cerca de 8, por enquanto 3 em uso, funcionando perfeitamente.

Escrever uma avaliação
A tua avaliação

Envio & devoluções

Envio

  • Pacote com Track & Trace€ 6,20Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
  • Pacote com Track & Trace€ 7,35Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
  • Pacote com Track & Trace€ 8,50Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
  • Pacote com Track & Trace€ 9,15Alemanha 1-3, França 2-3, Espanha/Itália 2-4, outros países 3-5 dias úteis
Tudo sobre envios

Devoluções

Não ficas satisfeito? Tens 30 dias após a receção para devolver o produto.

Tudo sobre devoluções

Vistos recentemente

Microcontrolador ATMEGA328P-PU

Microcontrolador ATMEGA328P-PU

€ 10,85
Módulo Ethernet SPI W5500

Módulo Ethernet SPI W5500

€ 7,65
Servo S3003 180 graus

Servo S3003 180 graus

€ 5,70