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

ชื่อโปรเจกต์: Arduino 2.4 inch TFT LCD Resistor Value finder by Color code

ขั้นตอนการใช้งานโปรเจกต์นี้

หลังจากอัปโหลดโค้ดแล้ว ให้ calibrate หน้าจอสัมผัสสำหรับปุ่มสีแต่ละปุ่มในโปรแกรม

หากมีปัญหาใดๆ โปรดติดต่อฉันทาง facebook messenger. Teach Me Something

TFTLCDDescription:

โมดูล LCD แบบ TFT touch Screen ขนาด 2.4 นิ้วสำหรับ Arduino เป็นจอแสดงผลแบบ touchscreen shield ขนาดใหญ่ที่สวยงาม พร้อมการเชื่อมต่อ microSD card ในตัว จอ LCD มีคอนทราสต์สีที่สดใสและยอดเยี่ยม จอ TFT นี้มีขนาดใหญ่ (แนวทแยง 2.4 นิ้ว) สว่าง (ไฟ backlight แบบ 4 white-LED) และมีสีสัน (18-bit, 262,000 เฉดสีที่แตกต่างกัน) ความละเอียด 240x320 pixels พร้อมการควบคุมแต่ละ pixel มีความละเอียดสูงกว่าจอแสดงผลขาวดำขนาด 128x64 มาก และเป็นโบนัส จอแสดงผลนี้มี resistive touchscreen ติดมาให้แล้ว คุณจึงสามารถตรวจจับการสัมผัสด้วยนิ้วได้ทุกที่บนหน้าจอ

คุณสมบัติ:

  • จอแสดงผล LCD TFT ขนาด 2.4 นิ้ว
  • สว่าง, ไฟ backlight แบบ 4 white-LED, เปิดใช้งานโดยค่าเริ่มต้น แต่คุณสามารถเชื่อมต่อ transistor เข้ากับ digital pin เพื่อควบคุม backlight ได้
  • มีสีสัน, 18-bit, 262,000 เฉดสีที่แตกต่างกัน
  • resistive touchscreen แบบ 4-wire
  • ความละเอียด 240 x 320
  • controller SPFD5408 พร้อม video RAM buffer ในตัว
  • interface แบบ 8 bit digital พร้อม control line อีก 4 เส้น
  • ใช้ digital pin 5-13 และ analog 0-3 ซึ่งหมายความว่าคุณสามารถใช้ digital pin 2, 3 และ analog 4 และ 5 ได้ Pin 12 จะว่างหากไม่ได้ใช้ micro SD
  • รองรับ 5V, ใช้ได้กับ logic 3.3V หรือ 5V
  • ขนาด: 71 x 52 x 7 มม.

How To Use: เช่นเดียวกับ Arduino Shield อื่นๆ การเชื่อมต่อกับ Arduino ทำได้ง่ายๆ เพียงแค่เสียบ shield เข้าไป ระมัดระวังในการจัดแนว pin ให้ถูกต้อง และตรวจสอบให้แน่ใจว่าด้านล่างของ shield ไม่ได้สัมผัสกับพอร์ต Arduino USB

รายละเอียดทางเทคนิคเพิ่มเติม

Hardware Interface

2.4" TFT Shield โดยทั่วไปใช้ SPFD5408 หรือ ILI9341 controller โดยสื่อสารผ่าน 8-bit parallel interface (D0-D7) และ control pin 5 จุด (RS, WR, RD, CS, RESET) ส่วน resistive touch layer จะเข้าถึงได้ผ่าน analog pin สองจุดและ digital pin สองจุด ซึ่งใช้ร่วมกับ LCD data line จึงต้องมีการจัดการ pin อย่างรอบคอบใน firmware

Logic การคำนวณ

firmware จะแมปพิกัดการสัมผัสกับปุ่มสีที่เฉพาะเจาะจง (Black, Brown, Red, Orange, Yellow, Green, Blue, Violet, Grey, White, Gold, Silver) สำหรับ resistor แบบ 4 แถบสี มาตรฐาน:

  1. แถบที่ 1 (Digit 1): ตัวเลขแรก
  2. แถบที่ 2 (Digit 2): ตัวเลขที่สอง
  3. แถบที่ 3 (Multiplier): ตัวคูณ (กำลังของ 10)
  4. แถบที่ 4 (Tolerance): ค่าเบี่ยงเบนเป็นเปอร์เซ็นต์ โค้ดจะคำนวณ Resistance = (Band1 * 10 + Band2) * (10 ^ Band3) และแสดงผลบนหน้าจอพร้อมหน่วยที่เหมาะสม (Ω, kΩ, MΩ)

การ Calibration

เนื่องจากเป็น resistive touch screen พิกัดอาจแตกต่างกันไปในแต่ละหน้าจอ ส่วนขยายนี้มีขั้นตอนการ calibration ซึ่งผู้ใช้สามารถกำหนดจุดสัมผัสเพื่อจับคู่กับปุ่ม UI ที่วาดโดย Adafruit GFX และ 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: "th"