กลับไปหน้ารวมไฟล์
arduino-24-inch-tft-lcd-resistor-value-finder-by-color-code-85820f-en.md

Steps to use this project

After uploading the code, calibrate the touch screen for each button of colors in the program.

If any trouble contact me in facebook messenger. Teach Me Something

TFTLCDDescription:

The 2.4 inch TFT touch Screen LCD Module For Arduino is a beautiful large touchscreen display shield with built in microSD card connection. The LCD has excellent vivid color contrast. This TFT display is big (2.4″ diagonal) bright (4 white-LED backlight) and colorful (18-bit 262, 000 different shades). 240×320 pixels with individual pixel control. It has way more resolution than a black and white 128×64 display. As a bonus, this display has a resistive touchscreen attached to it already, so you can detect finger presses anywhere on the screen.

Features:

  • 2.4 inch LCD TFT display
  • Bright, 4 white-LED backlight, on by default but you can connect the transistor to a digital pin for backlight control
  • Colorful, 18-bit 262, 000 different shades
  • 4-wire resistive touchscreen
  • 240 x 320 resolution
  • Spfd5408 controller with built in video RAM buffer
  • 8 bit digital interface, plus 4 control lines
  • Uses digital pins 5-13 and analog 0-3. That means you can use digital pins 2, 3 and analog 4 and 5. Pin 12 is available if not using the micro SD
  • 5V compatible, use with 3.3V or 5V logic
  • Size: 71 x 52 x 7mm

How To Use: As with all Arduino Shields, connecting to the Arduino is simply a matter of plugging the shield in. Take care to align the pins correctly, and ensure the bottom of the shield does not make contact with the Arduino USB port.

EXPANDED TECHNICAL DETAILS

Hardware Interface

The 2.4" TFT Shield typically uses the SPFD5408 or ILI9341 controller. It communicates via an 8-bit parallel interface (D0-D7) and 5 control pins (RS, WR, RD, CS, RESET). The resistive touch layer is accessed via two analog pins and two digital pins, shared with the LCD data lines, requiring careful pin management in the firmware.

Calculation Logic

The firmware maps the touch coordinates to specific color buttons (Black, Brown, Red, Orange, Yellow, Green, Blue, Violet, Grey, White, Gold, Silver). For a standard 4-band resistor:

  1. Band 1 (Digit 1): First number.
  2. Band 2 (Digit 2): Second number.
  3. Band 3 (Multiplier): Power of 10.
  4. Band 4 (Tolerance): Percentage deviation. The code calculates the Resistance = (Band1 * 10 + Band2) * (10 ^ Band3) and displays it on the screen with the appropriate unit (Ω, kΩ, MΩ).

Calibration

Since this is a resistive touch screen, coordinates may vary between screens. The expansion includes a calibration step where users can define the touch pressure points to match the UI buttons drawn by the Adafruit GFX and TouchScreen libraries.

ข้อมูล Frontmatter ดั้งเดิม

title: "Arduino 2.4 inch TFT LCD Resistor Value finder by Color code"
description: "I made this project to calculate the resistor value by using entering the color code in TFT LCD (Arduino TFT LCD Project)"
author: "teachmesomething"
category: ""
tags:
  - "tft lcd project"
  - "resistor value finder"
  - "arduino tft lcd"
views: 5421
likes: 0
price: 2450
difficulty: "Intermediate"
components:
  - "1x 2.4 inch TFT LCD Shield touch screen"
  - "1x Arduino UNO"
  - "1x USB-A to B Cable"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "d08b5a0434f4dbb3e1bb04dacd66bcae76ade20892b63a9ba37a565b8bc55ff7"
encryptedPayload: "U2FsdGVkX1+x2NYzdC6VbPgrrjQd/OPNW6MKru2wImcc3x7CiwTXoxT47yPyr+5A37WcH+J5wFHUf+Ej7LUcPx9KtJiFfcxDHCVUsUk4t8o="
seoDescription: "Arduino 2.4 inch TFT LCD project to calculate Resistor value by entering Color code. Simple and accurate tool for electronics hobbyists."
videoLinks:
  - "https://www.youtube.com/embed/Dholb_hUAC4"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-24-inch-tft-lcd-resistor-value-finder-by-color-code-85820f_cover.jpg"
lang: "en"