Difference between revisions of "1280x800 7" LVDS LCD with Capacitive Touch for pcDuino3"
Qian.zhang (talk | contribs) (→Usage) |
(→Resources) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 34: | Line 34: | ||
==Usage== | ==Usage== | ||
− | + | ===Step 1: Update kernel=== | |
− | 1 | + | *1.Download the kernel of pcDuino3 :[http://cnlearn.linksprite.com/wp-content/uploads/2014/09/kernel.zip kernel.zip] |
− | 2 | + | *2.Unzip the "kernel.zip",you will get a folder "kernel", then copy the folder to a USB flash disk. |
− | + | *3.Plug the USB flash disk on your pcDuino3, and put in following command: | |
+ | |||
$ sudo su | $ sudo su | ||
− | # mount /dev/nanda /mnt/ | + | # mount /dev/nanda /mnt/ |
− | # ls /mnt/ | + | # ls /mnt/ |
− | # rm /mnt/uImage /mnt/script.bin | + | # rm /mnt/uImage /mnt/script.bin |
− | # ls /media/ | + | # ls /media/ (This command is to check the name of your USB flash disk) |
− | # cp /media/40C3-AE90/kernel/* /mnt/ | + | # cp /media/40C3-AE90/kernel/* /mnt/ ("40C3-AE90" is the name of your USB flash disk) |
− | # sync | + | # sync |
+ | [[File:Start-input.jpg]] | ||
+ | |||
+ | Then reboot your pcDuino3, you will find the lvds screen is start up. | ||
+ | |||
+ | [[File:screen start.jpg]] | ||
+ | |||
+ | ===Step 2: Add the driver of touch screen=== | ||
+ | *1.Download the driver of touch screen gslx680: [http://cnlearn.linksprite.com/wp-content/uploads/2014/09/gslx680.zip gslx680.zip] | ||
+ | *2.Unzip "gslx680.zip" to get a file "gslx680.ko", put "gslx680.ko" in this path: /lib/modules/3.4.79+/kernel/drivers/input/touchscreen | ||
+ | (Note:open the folder as Root) | ||
+ | |||
+ | [[File:touchscreen path.jpg]] | ||
+ | |||
+ | *3.Input driver command: | ||
+ | |||
+ | $ sudo insmod /lib/modules/3.4.79+/kernel/drivers/input/touchscreen/gslx680.ko | ||
+ | |||
+ | You can touch control the screen. | ||
+ | |||
+ | *4.But you may find you can not touch control after you reboot your pcDuino. Then please do this: | ||
+ | Find the file "modules" in this path: /etc/modules | ||
+ | (Note:open the folder as Root) | ||
+ | |||
+ | [[File:modules path.jpg]] | ||
+ | |||
+ | Open it in Leafpad, add an row "gslx680": | ||
+ | |||
+ | [[File:leafpad modify.jpg]] | ||
+ | Save and exit. | ||
− | + | Then you can touch the screen even if you reboot or power off pcDuino. | |
== Resources == | == Resources == | ||
− | *[ | + | *[https://s3.amazonaws.com/pcduino/Hardware/lvdslcd/1280x800_LVDS_LCD.zip Source files of the PCB and schematic of LVDS LCD converter] |
+ | *[https://s3.amazonaws.com/pcduino/Hardware/lvdslcd/SCH_1280x800_LvdsLCD.pdf PDF version of the schematic of LCD converter] |
Latest revision as of 14:02, 24 January 2015
Contents
Introduction
This is a 7" LVDS LCD with capacitive touch for pcDuino3. It has a resolution of 1280x800.
Items Included:
- 1 x LVDS screen
- 1 x Driver board
- 3 x Ribbon cable
- 6 x Male to female jumper wires
Wire connection
We need to hook up the 6 pins headers using the male to female jumper wires in the following way:
- gnd of the LCD driver breakout board —> GND of pcDuino
- scl of the LCD driver breakout board —> SCL of pcDuino
- sda of the LCD driver breakout board –> SDA of pcDuino
- rst of the LCD driver breakout board –> D10 of pcDuino
- int of the LCD driver breakout board –> D9 of pcDuino
- wale of the LCD driver breakout board –> D8 of pcDuino
And make sure that the FPC ribbon is installed correctly.
Usage
Step 1: Update kernel
- 1.Download the kernel of pcDuino3 :kernel.zip
- 2.Unzip the "kernel.zip",you will get a folder "kernel", then copy the folder to a USB flash disk.
- 3.Plug the USB flash disk on your pcDuino3, and put in following command:
$ sudo su
# mount /dev/nanda /mnt/ # ls /mnt/ # rm /mnt/uImage /mnt/script.bin # ls /media/ (This command is to check the name of your USB flash disk) # cp /media/40C3-AE90/kernel/* /mnt/ ("40C3-AE90" is the name of your USB flash disk) # sync
Then reboot your pcDuino3, you will find the lvds screen is start up.
Step 2: Add the driver of touch screen
- 1.Download the driver of touch screen gslx680: gslx680.zip
- 2.Unzip "gslx680.zip" to get a file "gslx680.ko", put "gslx680.ko" in this path: /lib/modules/3.4.79+/kernel/drivers/input/touchscreen
(Note:open the folder as Root)
- 3.Input driver command:
$ sudo insmod /lib/modules/3.4.79+/kernel/drivers/input/touchscreen/gslx680.ko
You can touch control the screen.
- 4.But you may find you can not touch control after you reboot your pcDuino. Then please do this:
Find the file "modules" in this path: /etc/modules (Note:open the folder as Root)
Open it in Leafpad, add an row "gslx680":
Save and exit.
Then you can touch the screen even if you reboot or power off pcDuino.