Παραγγελία έως τις 14:00 τις εργάσιμες = αποστολή την ίδια ημέρα 30 ημέρες δικαίωμα υπαναχώρησης Εγγύηση 1 έτους
← Πίσω στην επισκόπηση

Με την αναπαραγωγή φορτώνεται το βίντεο από το YouTube.

Διάγραμμα σύνδεσης και παράδειγμα κώδικα

Έτσι συνδέεις το 3.5 inch Touch screen TFT shield για Arduino UNO και Mega σε ένα Arduino UNO ή ESP32, με ένα παράδειγμα sketch που μπορείς να ανεβάσεις αμέσως.

Demo αναγνώστη κάρτας SD του 3.5 Inch TFT LCD Shield

Αυτό το έργο παρουσιάζει το ενσωματωμένο περιβάλλον MicroSD του 3.5-inch TFT LCD Shield, τοποθετημένου απευθείας πάνω σε ένα Arduino Uno. Το sketch αρχικοποιεί την κάρτα SD μέσω SPI (χρησιμοποιώντας το CS pin 10), γράφει ένα αρχείο καταγραφής με χρονική σήμανση και διαβάζει το περιεχόμενό του στο Serial Monitor στα 115200 baud.

Διάγραμμα σύνδεσης: 3.5 inch Touch screen TFT shield για Arduino UNO και Mega σε ένα Arduino UNO
Διάγραμμα σύνδεσης · Κάνε κλικ για μεγέθυνση
Πίνακας σύνδεσης: 3.5 inch Touch screen TFT shield για Arduino UNO και Mega σε ένα Arduino UNO
Πίνακας σύνδεσης · Κάνε κλικ για μεγέθυνση
3_5_Inch_TFT_LCD_Shield_SD_Card_Reader_D.ino · μεταγλωττισμένο και δοκιμασμένο
/*
 * ==================================================================
 *  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 με TFT LCD Shield 3,5"

Αυτό το έργο συνδέει ένα παράλληλο TFT LCD shield 3,5 ιντσών με το ESP32 και εναλλάσσει χρώματα φόντου. Χρησιμοποιεί απευθείας παράλληλη επικοινωνία GPIO 8 bit για επαναφορά, αρχικοποίηση και σχεδίαση χρωματικών πεδίων στην οθόνη.

Διάγραμμα σύνδεσης: 3.5 inch Touch screen TFT shield για Arduino UNO και Mega σε ένα ESP32 DevKit V1
Διάγραμμα σύνδεσης · Κάνε κλικ για μεγέθυνση
Πίνακας σύνδεσης: 3.5 inch Touch screen TFT shield για Arduino UNO και Mega σε ένα ESP32 DevKit V1
Πίνακας σύνδεσης · Κάνε κλικ για μεγέθυνση
ESP32_3_5_TFT_LCD_Shield_Color_Demo.ino · μεταγλωττισμένο και δοκιμασμένο
/*
 * ==================================================================
 *  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

Πρόσφατα προβεβλημένα

Nano V3 USB-C Arduino Συμβατό CH340

Nano V3 USB-C Arduino Συμβατό CH340

€ 5,00
40 Pins header Male 2.54mm Μπλε

40 Pins header Male 2.54mm Μπλε

€ 0,65
10x αντίσταση 10 Ohm1/4 Watt 5%

10x αντίσταση 10 Ohm1/4 Watt 5%

€ 1,25
Μετατροπέας 12V-20V AC σε 12V DC 3A

Μετατροπέας 12V-20V AC σε 12V DC 3A

€ 19,10
Προβολή
Θήκη μπαταρίας 18650 με Φορτιστή και module step-up 12V (USB-C)

Θήκη μπαταρίας 18650 με Φορτιστή και module step-up 12V (USB-C)

€ 7,65
Μίνι τετράπλευρο κλειδί καρυδιών M2.5, M3, M4

Μίνι τετράπλευρο κλειδί καρυδιών M2.5, M3, M4

€ 1,80
Μονάδα Peltier 12v 60w 40x40mm TEC1-12706

Μονάδα Peltier 12v 60w 40x40mm TEC1-12706

€ 4,15
Πλαστικό Περίβλημα - Μαύρο 130 x 70 x 45mm

Πλαστικό Περίβλημα - Μαύρο 130 x 70 x 45mm

€ 6,99
Προβολή
3-πιν πλακέ περιστροφικό κουμπί 2,54 mm

3-πιν πλακέ περιστροφικό κουμπί 2,54 mm

€ 0,90
Φορτιστής μπαταρίας Lithium 18650 με Micro Usb 5V 1A  TP4056

Φορτιστής μπαταρίας Lithium 18650 με Micro Usb 5V 1A TP4056

€ 2,25