德源科技 
德源科技德源科技
公司簡介訂購方式匯款確認檔案下載 聯絡我們保固說明訂單查詢討論區
電子郵件:

密碼:

忘記密碼
加入會員
  首頁 | 原廠 Arduino® | 特殊服務設計 | 轉接座及轉接板/麵包板 | 開發板/燒錄器/模擬器 | 相容 For Arudino® 週邊及配件 | OKdo系列 | Saleae 系列 | Adafruit 系列 | ArduCam 系列 | Camera 攝像頭 | ROCK 系列 | Debix系列開發板 | Raspberry Pi 樹莓派 | Banana Pi 香蕉派 | BeagleBone 狗骨頭 | M5Stack系列 | Micro:bit (BBC)系列 | NVIDIA Jetson Nano系列 | Pololu 系列 | Pycom 系列 | Seeed 系列 | Sparkfun 系列 | WeMos 系列 | 傳感器 | Cubieboard/CubieTruck系列 | Firefly 系列 | Microduino系列 | Orange Pi 香橙派 | PCB板 | PLC 系列 | Robot 機器人 | UDOO 系列 | RedBearLab 系列 | LattePanda系列 | LittleBits 系列 | Libelium 系列 | Luxonis 相機系列 | PCduino | RobotElectronics 系列 | MageDok 顯示屏 | LCD/LCM/TFT/LVDC | Dimension Engineer 系列 | 通訊模組 | 影音器材(含轉換器) | 線材/連結器/轉換器 | 測量儀器 | 馬達/馬逹控制器/電源模組 | 其他 | 焊接/維修工具 | IC零件 | LED燈-裝飾燈 | 工作站迷你電腦 mini PC | 擴大器 | 雕刻機 | 電池 | 電腦周邊 | 檢定考套件 | 停售商品
  首頁 » 商品目錄 » PCduino » 03325773
商品搜尋 進階
 |  購物車內容  |  結帳   
商品分類
  配件
Arduino
Pololu
Seeed
Sparkfun
robot-electronics
dimensionengineering
libelium
adafruit
udoo
redbearlab
Arducam
goembed
Saleae
okdo
服務台
公司簡介
退換貨服務
訂購方式
聯絡我們
匯款確認
[<< 前一頁]  瀏覽相同分類產品 2 / 4  [下一頁 >>]
Linksprite原廠pcDuino TFT LCD 觸摸屏模組 Touch LCD Shield
NT$1,150
運費NT$50
條碼03325773
產品說明0

資料下載http://linksprite.com/wiki/index.php5?title=Touch_LCD_Shield

 

Linksprite原廠Touch LCD Shield

Introduction

This is a multifunctional Arduino/Arduino Mega compatible resistive touch screen. It can be used as display device or sketch pad. With a SD card module integrated also on this shield, this shield reserves great room for other expansions to your project.

TFT1.jpg

TFT2.jpg

Features

  • Big screen for easy and comfortable experience
  • Backlight controllable via programming
  • 65535 rich colors display
  • SPI pin-saving communication method
  • Full screen touch active range

Specification

ItemMinTypicalMaxUnitVoltageCurrentLCD Panel SizeView angleResolutionLCD colorBacklight TypeLCD driver ICInterface TypeTouch ScreenActive areaESD contact dischargeESD air dischargeDimensionWeight

4.5 5 5.5 VDC
/ / 250 mA
2.8 inch
60~120 Deg
320x240 /
65k /
LED /
ILI9341 /
SPI /
4-Wire resistive touch screen /
43.2*57.3 mm
±4 KV
±8 KV
72.5x54.7x18 mm
24±2 g

Cautions

  • Don’t press too hard on the screen which might cause display distortion. 
  • Be careful to deposit the fragile screen.

Pins usage on Arduino


Pins Used for TFT Screen Control:
D4: TF_CS, SD card select input pin

D5: TFT_CS, TFT chip select input pin

D6: TFT_D/C, TFT Data/Command control pin

D7: BACKLIGHT, TFT backlight control pin

Pins Used for SPI Interface:
D10: SPI chip select
D11: SPI MOSI pin

D12: SPI MISO pin

D13: SPI serial clock pin

Pins Used for Touch Function:
A0 - Touch Screen Y- input pin.

A1 - Touch Screen X- input pin.

A2 - Touch Screen Y+ input pin.

A3 - Touch Screen X+ input pin.

TFT Programming

The TFT library provides the following Application Programming Interfaces(API). The library makes use of direct access to PORT registers instead of Arduino APIs. This is to increase the speed of communication between MCU and TFT. At present, the library supports Arduino, Arduino Mega (1280 or 2560) and Seeeduino ADK Main Board compatible boards. In Mega the 8bit data port of TFT is distributed to different pins belonging to different ports. This decreases the speed of graphics drawing when compared to Arduino. The choice of port pins are purely based on Arduino / Mega port pin arrangement.

General Functions

 


 

setXY(unsigned int poX, unsigned int poY)

Sets the cursor position to (poX,poY). This function is internally used by other graphics APIs.

setPixel(unsigned int poX, unsigned int poY,unsigned int color)

Sets the (poX,poY) pixel to color color. This function is internally used by other graphics APIs.

Lines

drawLine(unsigned int x0,unsigned int y0,unsigned int x1,unsigned int y1,unsigned int color)

Draws a line from pixel (x0,y0) to pixel (x1,y1) with color color.

drawVerticalLine(unsigned int poX, unsigned int poY,unsigned int length,unsigned int color)

Draws a Horizontal Line of length length with color color starting from pixel (poX,poY).

drawHorizontalLine(unsigned int poX, unsigned int poY,unsigned int length,unsigned int color)

Draws a Vertical Line of length length with color color starting from pixel (poX,poY).

Rectangle

drawRectangle(unsigned int poX, unsigned int poY, unsigned int length,unsigned int width,unsigned int color)

Draws a rectangle starting from (poX,poY) of length length, width width and color color.

fillRectangle(unsigned int poX, unsigned int poY, unsigned int length, unsigned int width, unsigned int color)

Draws a filled rectangle starting from pixel (poX,poY) of length length, width width and color color.

Circle

drawCircle(int poX, int poY, int r,unsigned int color)

Draws a circle at (poX,poY) of radius radius and color color.

fillCircle(int poX, int poY, int r,unsigned int color)

Draws a filled circle at (poX,poY) of radius radius and color color.

Text

drawChar(unsigned char ascii,unsigned int poX, unsigned int poY,unsigned int size, unsigned int fgcolor)

Draws a character starting from (poX,poY) using inbuilt font of size size and with color fgcolor. This function is used by drawString() function.

drawString(char *string,unsigned int poX, unsigned int poY,unsigned int size,unsigned int fgcolor)

Draws a string of text starting from (poX,poY) using inbuilt font of size size and with color fgcolor.

TouchScreen Programming

TFT Touch Shield uses the Adafruit Touch Screen Library. In short, a 4-wire resistive touch screen provides two voltage divider each for X and Y axis. By applying proper voltages for each axis and scanning the ADC values the position of the touch can be detected. These values are always prone to noise. Hence a digital filter is used.

  • To use the TouchScreen Library first create a TouchScreen object by
TouchScreen ts=TouchScreen(XP,YP,XM,YM,300);

Where XP, YP, XM and YM are ADC port pins connected to XPlus, YPlus, XMinus and YMinus pins of Touch Screen. 300 is the resistance across X plates.

  • Read the Raw ADC value using
Point p=ts.getPoint();
  • The Raw ADC value has to be converted to Pixel Co-ordinates. This is done with map function. This mapping changes for v0.9 and v1.0. The demo applications already takes care of this mapping.
p.x=map(p.x,TS_MINX,TS_MAXX,240,0);p.y=map(p.y,TS_MINY,TS_MAXY,320,0);
  • The following sketch demonstrates use of TouchScreen Library. This can also be used to calibrate the touch screen co-ordinates.
  • Compile and upload the sketch.
  • Open serial port monitor and touch the points displayed on the screen.
  • See if the displayed X and Y values are correct. If not, we have to re-calibrate the touch screen coordinates.

How to calibrate the touch screen ?

    • The parameters TS_MINX, TS_MAXX, TS_MINY and TS_MAXY actually decides the extreme ends of the touch screen and actually forms the calibration parameters.
    • The values assigned to these variables are measured ADC values (i.e Raw X, Raw Y) when we touch the extreme diagonal ends of touch screen.
    • Touch points (0,0) and (239,319) and note down Raw X and Raw Y values. For better accuracy, try out many times and find the right value.
      • TS_MINX corresponds to ADC value when X = 0 ;
      • TS_MINY corresponds to ADC value when Y = 0 ;
      • TS_MAXX corresponds to ADC value when X = 240 -1 i.e 239 ;
      • TS_MAXY corresponds to ADC value when Y = 320 -1 i.e 319 ;
    • Change these parameters in the sketch, recompile and upload to Arduino.
    • Repeat the above steps if you still do not get accurate values.

Touch Screen Demo Sketch

#include <stdint.h>#include <TouchScreen.h>#include <TFT.h> //Measured ADC values for (0,0) and (240-1,320-1)//TS_MINX corresponds to ADC value when X = 0//TS_MINY corresponds to ADC value when Y = 0//TS_MAXX corresponds to ADC value when X = 240 -1//TS_MAXY corresponds to ADC value when Y = 320 -1 staticunsignedintTS_MINX,TS_MAXX,TS_MINY,TS_MAXY; //Touch Screen Co-ordinate mapping registerstaticunsignedintMapX1,MapX2,MapY1,MapY2; // For better pressure precision, we need to know the resistance// between X+ and X- Use any multimeter to read it// The 2.8" TFT Touch shield has 300 ohms across the X plate /* Usage: TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
Where, XP = X plus, YP = Y plus, XM = X minus and YM = Y minus */
//init TouchScreen port pins. This would be reinitialized in setup() based on the hardware detected.TouchScreen ts=TouchScreen(17,A2,A1,14,300); voidsetup(void){Tft.init();//init TFTinitTouchScreenParameters();//initializes Touch Screen parameters based on the detected TFT Touch Schield hardware //LinesTft.drawLine(0,0,50,50,RED);//draw a 45degree red line point(0,0) to point(50,50)Tft.drawVerticalLine(25,0,50,GREEN);//draw a vertical green line point(25,0) to point(25,50)Tft.drawHorizontalLine(0,25,50,BLUE);//draw a horizontal blue line point(0,25) to point(50,25) //RectangleTft.drawRectangle(50,0,80,50,WHITE);//draw a white rectangle, length=80(X-AXIS), width=50(Y-AXIS)Tft.fillRectangle(0,50,50,80,CYAN);//fill a cyan rectangle, length=50(X-AXIS), width=80(Y-AXIS) //CircleTft.drawCircle(75,75,25,RED);//draw a red circle, circle centre(75,75) radius=25Tft.fillCircle(150,100,50,GREEN);//fill a green circle, circle centre(150,100) radius=50 //TextTft.drawChar('S',0,150,2,RED);//draw a char, start from point(0,150) font size 2(16*16)Tft.drawString("Seeed Studio",8,166,2,GREEN);//draw a char, start from point(8,166) font size 2(16*16)} voidloop(void){// a point object holds x y and z coordinatesPoint p=ts.getPoint(); 
p.x=map(p.x,TS_MINX,TS_MAXX,MapX1,MapX2);p.y=map(p.y,TS_MINY,TS_MAXY,MapY1,MapY2); // we have some minimum pressure we consider 'valid'// pressure of 0 means no pressing!if(p.z>ts.pressureThreshhold){//p.x;//p.y;//p.z;Tft.fillCircle(p.x,p.y,2,GREEN);}} voidinitTouchScreenParameters(){//This function initializes Touch Screen parameters based on the detected TFT Touch Schield hardware if(Tft.IC_CODE==0x5408)//SPFD5408A TFT driver based Touchscreen hardware detected{#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)ts=TouchScreen(54,A1,A2,57,300);//init TouchScreen port pins#elsets=TouchScreen(14,A1,A2,17,300);//init TouchScreen port pins#endif//Touchscreen parameters for this hardwareTS_MINX=120;TS_MAXX=910;TS_MINY=120;TS_MAXY=950; 
MapX1=239;MapX2=0;MapY1=0;MapY2=319;}else//ST7781R TFT driver based Touchscreen hardware detected{#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)ts=TouchScreen(57,A2,A1,54,300);//init TouchScreen port pins#elsets=TouchScreen(17,A2,A1,14,300);//init TouchScreen port pins#endif //Touchscreen parameters for this hardwareTS_MINX=140;TS_MAXX=900;TS_MINY=120;TS_MAXY=940; 
MapX1=239;MapX2=0;MapY1=319;MapY2=0;}}
問與答

目前沒有任何商品問答!
本商品上架日期:2013-04-26.
評價
建議購買的商品清單!可以參考看看喔
$阿波羅 STM32F767IGT6 開發板核心板,STM32F7 原子M7(可單獨 接螢幕LCD屏)
$阿波羅 STM32F767IGT6 開發板核心板,STM32F7 原子M7(可單獨 接螢幕LCD屏)
叉車超速報警器(SF-102)專用:油門控制器(機械油控)
叉車超速報警器(SF-102)專用:油門控制器(機械油控)
▽●(特價,現貨)pcDuino開發實戰(首本針對全球流行的創客殺器,pcDui/正版書籍)
▽●(特價,現貨)pcDuino開發實戰(首本針對全球流行的創客殺器,pcDui/正版書籍)
購物車 更多
1 x Seeed 原廠 Welle - A Smart Interface Controller (109990326)
1 x ATTINY13V-10PI
1 x Mach3 usb cnc 雕刻機控制卡 運動控制卡-5代 MK4-V(4軸控制器)
1 x Addressable RGB 30-LED Strip, 5V, 1m (WS2812B)
1 x HUAWEI MU509 3G 開發板
1 x WeMos D1 mini 配件 / WS2812B RGB 擴展板
1 x Pico-8SEG-LED,Raspberry Pi Pico 配件:4位8段數碼管 擴展板
1 x #Raspberry Pi 樹莓派專用無線網卡Mini USB 802.11n 150Mbps 150M迷你網卡
1 x GAL22V10
1 x ●四口 usb分線器 USB擴展口 usb集線器多接口 hub2.0轉換器 含電源
1 x *#樹莓派 CM4 IO套件(配件包C/不含核心板):Compute Module 4 PoE Board (藍板)
1 x 樹莓派【A-Z套餐/數字1-49套餐/其他套餐】總覽
1 x ●PiCAN2 Duo CAN-Bus 模組,Pi 4 專用 with 3A SMPS(RSP-PICANDUOSMPS3A)
1 x &LattePanda V1 (4G/64GB)最強大拿鐵熊貓Mini PC開發板(DFR470)(win10企業版激活,帶授
1 x e-Paper ESP32 Driver Board 電子墨水屏無線網路驅動板
1 x 香橙派 OrangePi Zero2 (全志H616芯片/1GB),安卓 linux 開發板 香橙派編程 (單板)
1 x 型號:B0066,Arducam原廠 1/4 Inch 500百萬像素 OV5647攝像頭 300mm長 樹莓派
1 x (聖誕限時優惠5%折扣)reComputer J2012-Edge AI (16G),NVIDIAJetsonXavierNX
1 x iPazz Port 2.4G 無線鍵盤 智能電視電腦遙控器可支持樂視盒子遙控(KP-810-10A)無線版
1 x ATMEGA32-16PI
1 x 2016新品 BPI-R1香蕉派Banana PI R1 智能路由器4路千兆SATA接口
1 x CH8八位計米計數計時線速轉速頻率表數字智能型表
1 x #&●樹莓派 Raspberry Pi Model A+ 開發板 1代 A+ Plus
1 x ●(現貨) 傳感器專用線材:4 Pin 轉 1 Pin 裸線頭 (2.54間距) 電子線 連接線 端子線 4Pin 杜邦線
1 x ▼Sparkfun原廠 LIDAR-Lite v3HP Arduino 雷射測距模組 5cm to 40m(SEN-14599)
1 x $樹莓派 Raspberry Pi Compute module 4 (標準2GB RAM+ 8G eMMC) CM4
1 x >(停產)M5Stack PuppyC,可編程舵機驅動四足機器人底座,STM32F030F4
1 x &最新 Raspberry Pi 4 B (是新版Pi4B) 8GB RAM內存 type-C (送贈品)
1 x &●樹莓派 Raspberry Pi Zero 不帶無線功能(單主板,不帶排針)
1 x &LattePanda V1(4G/64GB),強大的Mini PC電腦開發板 (DFR419) Win10(未激活/不帶授權)
1 x &OKdo【ROCK 4 C+】Starter Kit(4GB RAM)4C+電腦套件,RK3399-T A72+A53
1 x USB Cable and Charger Tester Advanced version - qualMeter X
1 x 89C52RC
1 x >(停產)Discover Electronics Kit - 2.0(ada487)
1 x GMV2 手持蓋革計數器/大理石放射/個人劑量/核輻射檢測/採礦石/測量儀
1 x $(預購)樹莓派 Pi Compute module 4 (標準2GB RAM+無eMMC) CM4 Lite 簡易版
1 x ●1.27MM FC-14P雙頭線 14pin針 JTAG連接線 AVR下載線 IDC灰排線 (10CM) 2X7Pin
1 x *SanDisk 32G C10 microSD卡 不帶轉卡 (不帶資料,單卡) RPI SD
1 x Raspberry Pi 樹莓派 B+ 適用(WPC-632)Web Based Programmable Controller
1 x M5Stack StickT2,紅外熱成像儀,6軸IMU非接觸式 FLIR Lepton3.0
1 x &*(現貨)SPF原廠 FLIR Radiometric Lepton Dev Kit 開發套件V1.4 (KIT-14654)
1 x #&●(現貨)樹莓派 Raspberry Pi Zero W / Zero 無線版
1 x 12V2.1聲道 汽車 機車 電腦功放 獨立純低音 宏興2.1功放機 音質超勁
1 x 2.13inch NFC e-Paper Eval Kit(套件),2.13寸 無源NFC電子墨水屏 評估套件
1 x ●4inch Resistive Touch LCD / 4寸 彩色IPS顯示屏 電阻觸摸 480x800
1 x &●*智慧開關(Smart Relay)學習套件 For Arduino® Raspberry Pi
1 x Jetson Nano Developer Kit (配件包 A),AI人工智能開發板 基礎配件:64G、電源
1 x Raspberry Pi 樹莓派專用配件 直型GPIO Cobbler Plus 空板 (不含座和排針)
1 x 專案規劃(電子商品開發與設計)
1 x IC代燒服務(量多,急件)
1 x IMX258 13MP OIS USB Camera (A) USB攝像頭模塊 1300萬像素 光學防抖
1 x ●Raspberry 樹莓派 FT232RL USB轉串口模塊 USB轉TTL下載線(FT232升級版)帶殼
1 x Sinewinder R/C lighting system(DE021)
1 x 樹莓派 Raspberry Pi Compute module 3+ 16GB 模塊 CM3+
1 x ●SparkFun原廠 Qwiic pHAT Extension (DEV-17512),樹莓派 Pi 400 擴展板
1 x 18A 交流接觸器 CJX2-1210 CJX2-1201 220V 380V
1 x 原裝 Beaglebone Blue 藍色狗骨頭 無人飛行器、機器人、藍牙WiFi,DC供電
1 x 樹莓派4 M.2 NVME SATA SSD 超薄NAS儲存擴充板(X876)支援UASP
2 x #&●2017年 樹莓派Pi3B 英國版UK Raspberry Pi 3B Model B (pi2B 升級版)(4代)
1 x ▽●(現貨/特價*)原廠 Particle Photon (Headers)WRL-13774/Ada2721/11499028
1 x 海備思 HAGiBiS Type-C轉HDMI連接線 (三代 供電款4K*60Hz 1.8米) 高清 轉換器 電視同屏線
1 x M5Stack Core2 for AWS,物聯網開發學習套件,觸摸屏ATECC608A加密芯片
1 x 七口 usb分線器 USB擴展口 usb集線器多接口 hub2.0轉換器 含電源
1 x $原廠 PocketBeagle 開發版 (DEV-14919)
1 x 遙控坦克船 充電動水陸兩棲坦克遙控車玩具汽車(噴水型24883A/C.升級雙砲台+3電池套餐)
1 x *SanDisk 128G C10 microSD卡 不帶轉卡 (不帶資料,單卡) RPI SD
1 x ▼●PiRacer AI Kit 配件包(不含Pi4B、16G卡),AI人工智能小車 DonkeyCar 自動駕駛深度學習
1 x ●帶底板SX1278 LORA模塊安信可LORA RA-02 LORA
1 x LED WS2812B 全彩幻彩30燈 防水燈條 5050內置IC 5V燈帶 1米【黑板(裸版),不防水燈帶】IP30
1 x Adafruit原廠 5050 LED breakout PCB 空板 - 10 pack (ada1762)
1 x PIC 16F73
1 x 10x15cm 洞洞板(單面錫),10*15CM 厚1.5mm 萬能板 厚1.5 焊接 實驗板 PCB電路板 線路板
1 x Seeed原廠 RaspiRobot Board v3 樹莓派 擴展板 擴充板 (114990293)
1 x 150W 多功能電壓電流恆流負載 USB可調 恆流電子負載電瓶電池容量檢測試儀表老化放電器 20A
1 x Raspberry Pi 樹莓派 WPC-632系列加購品:12CM排線 / 適用 WPC-632-EB Bus cable
1 x CF轉SATA / 2.5寸硬盤轉接卡/台式機用CF讀卡器帶PCIe擋板 (送SATA線)
1 x DisplayPort DP 轉 HDMI 轉接線 1.8米 大DP
1 x *創見Transcend 16G C10 microSD卡 (帶 樹莓派NOOBS資料) RPi SD
1 x pcDuino WiFi實時視頻監控 智能小車 視頻小車
1 x SCSI-50P CN槽式180度 端子台
1 x (缺貨)SyRen 50 單路 50A直流電機驅動器 PWM 無線電控制 機器人控制器 DRI026
1 x (缺貨)Sabertooth 2x60 雙路60A直流電機驅動(DE003)
1 x 香橙派 Orange Pi PC 開發板 (全志 H3芯片),1GB內存、開源創客、編程單片機
1 x Delock進口 樹莓派Raspberry Pi 攝像頭USB 2.0 Module 1.92 Megapixel 120° F
1 x ●(特價*/現貨) Wi-Fi Micro 開發板,RedBearLab 原廠(台灣獨家代理) CC3200 Wi-Fi Mic
1 x ●1.27MM FC-20P雙頭線,20pin針 JTAG連接線、AVR下載線、IDC灰排線 (20CM) 2 X 10Pin
1 x ●Raspberry Pi Pico IO擴展板 ,1號擴展板 - 簡易擴展板
1 x 香橙派 Orange Pi Zero 256MB開發板(全志H2升級H3) 安卓、Linux 編譯
1 x 四口 usb分線器 USB擴展口 usb集線器多接口 hub2.0轉換器 不含電源
1 x &OKdo x Radxa【ROCK 3A】 (2GB RAM)單板電腦, RK3568 Cortex-A55
NT$110,661,862
查詢訂單狀態
 
請輸入您的訂單編號
商品通知狀態 更多
通知Linksprite原廠pcDuino TFT LCD 觸摸屏模組 Touch LCD Shield
更新時通知我
推薦給朋友
 
推薦這個商品給朋友

聯絡方式:手機:0933807110 或 0968222607
E-mail:[email protected](主要信箱) & [email protected](次要) & [email protected] & [email protected] & [email protected]