Getting Help ............................7 CHAPTER 2 ARCHITECTURE ........................8 2.1 Layout and Components ..........................8 2.2 Block Diagram of the VEEK-MT-SoCKit ....................9 CHAPTER 3 USING VEEK-MT-SOCKIT ......................11 3.1 Using the SoCKit Main Board ......................... 11 3.2 Using the 7” LCD Capacitive Touch Screen .................... 11 3.3 Using 5-megapixel Digital Image Sensor ....................
Chapter 1 Introduction The Video and Embedded Evaluation Kit - Multi-touch on SoCKit (VEEK-MT-SoCKit) is a comprehensive design platform with everything embedded developers need to create processing-based systems. VEEK-MT-SoCKit delivers an integrated system that includes hardware, design tools, intellectual property (IP) and reference designs for developing embedded software and hardware in a wide range of applications.
Figure 1-1 The VEEK-MT-SoCKit board The key features are listed below: SoCKit Main Board Cyclone V SX SoC—5CSXFC6D6F31C6N o Dual-core ARM Cortex-A9 (HPS) o 110K LEs, 41509 ALMs o 5,140 M10K memory blocks o 224 18x18 Multiplier o 6 FPGA PLLs and 3 HPS PLLs.
Page 5
8 User LEDs (FPGA x4 ; HPS x 4) o 2 HPS Reset Buttons (HPS_RSET_n and HPS_WARM_RST_n) Sensor o G-sensor for HPS o Temperature Sensor for FPGA Power o 12V DC Input www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 6
Column and row binning modes to improve image quality when resizing Simple two-wire serial interface Programmable controls: gain, frame rate, frame size, exposure Table 1-2 shows the key parameters of the CMOS sensor (Note*). www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 7
Programmable analog gain and integration time o 50/60-Hz lighting ripple rejection Note: For more detailed information about the LCD touch panel and CMOS sensor module, please refer to their datasheets in the CD. www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
To utilize the multi-touch panel in a Quartus II project, a Terasic Multi-Touch IP is required. After the license file for Quartus II is installed, there is one more license file needed to implement Terasic’s Multi-touch IP. Error messages will be displayed if the license file is not added before compiling projects using Terasic Multi-touch IP.
The VEEK-MT-SoCKit System CD containing documentations and supporting materials, including the User Manual, reference designs, touch-screen IP and its license, and device datasheets. Users can download this System CD form the link: http://cd-veek-mt-sockit.terasic.com. Table 1-3 shows the content of System CD.
Chapter 2 Architecture This chapter describes the architecture of the VEEK-MT-SoCKit including block diagram and components. The picture of the VEEK-MT-SoCKit is shown in Figure 2-1 Figure 2-2. It depicts the layout of the board and indicates the locations of connectors and key components.
Figure 2-2 VEEK-MT-SoCKit PCB and component diagram (bottom view) Figure 2-3 gives the block diagram of the VEEK-MT-SoCKit board. VEEK-MT-SoCKit is a combination of Cyclone V GX SoC development board and a Multi-touch LCD Camera Card (MTLC) connected via the HSMC connector. MTLC module is not only equipped with a 7"LCD screen, it also equips a 5-Megapixel digital image sensor module, G-sensor and Light sensor.
Page 12
Figure 2-3 Block diagram of VEEK-MT-SoCKit www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
800x480 to provide users the best display quality for developing applications. The LCD panel supports 24-bit parallel RGB data interface. The VEEK-MT-SoCKit is also equipped with a Touch controller, which can read the coordinates of the touch points through the serial port interface of the Touch controller.
Page 14
LCD blue data bus bit 7 2.5V LCD_DCLK LCD Clock 2.5V LCD_DE Data Enable signal 2.5V LCD_DIM LCD backlight enable 2.5V LCD_DITH Dithering setting 2.5V LCD_G0 LCD green data bus bit 0 2.5V www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
2.5V The VEEK-MT-SoCKit is equipped with a 5-megapixel digital image sensor that provide an active imaging array of 2,592H x 1,944V. It features low-noise CMOS imaging technology that achieve CCD image quality. In addition, it incorporates sophisticated camera functions on-chip such as windowing, column and row skip mode, and snapshot mode.
External input clock 2.5V The VEEK-MT-SoCKit is equipped with a digital accelerometer sensor module. The ADXL345 is a small, thin, and ultralow-power-consumption 3-axis accelerometer with high resolution measurement. Digitalized output is formatted as 16-bit in two’s complement and could be accessed either using SPI interface or I2C interface.
Serial Data 2.5V Terasic Multi-touch IP is provided for developers to retrieve user inputs, including multi-touch gestures and single-touch. The file name of this IP is i2c_touch_config and it is encrypted. To compile projects with the IP, users need to install the IP license first. For license installation, please refer to section 1.2 Setup License for Terasic Multi-touch IP...
Page 18
ID defined in Table 3-7. If it is not a gesture, it means a single-touch is occurred and the relative X/Y coordinates can be derived from oREG_X1 and oREG_Y1. Table 3-6 Interface Definitions of Terasic Multi-touch IP Pin Name Direction Description iCLK...
Page 19
South 0x38 South-West 0x3A West 0x3C North-West 0x3E Click 0x40 Zoom In 0x48 Zoom Out 0x49 Note: The Terasic Multi-touch IP can also be found under the “IP” folder from the system CD.. www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Install Altera Quartus II v13.0 and Nios II EDS v13.0 or later edition on the host computer Install the USB-Blaster II driver. Copy the entire folder with demonstrations from the VEEK-MT-SoCKit system CD to the host computer.
Page 21
CD should be installed before compiling any Quartus II project. For more information about this IP, please refer to the section 3.6 Using Terasic Multi-touch IP in this document. Figure 4-1 Block diagram of the Painter demonstration Demonstration Source Code ...
Page 22
Figure 4-4 shows the photo when counter-clockwise rotation gesture is detected. Figure 4-5 shows the photo when zoom-in gesture is detected. Figure 4-2 GUI of the Painter demo www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 23
Figure 4-3 Single touch painting Figure 4-4 Counter-clockwise rotation gesture www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
This demonstration shows a digital camera reference design using the 5-Megapixel CMOS sensor and 7-inch LCD module on the VEEK-MT-SoCKit. The CMOS sensor module sends raw image data to the FPGA, which handles image processing and converts the data to RGB format to display on the LCD module.
Page 25
CMOS controller chip. Figure 4-6 Block diagram of the digital camera design Demonstration Source Code Project directory: System-CD\Demonstrations\FPGA\SoCKit_Camera Bit stream: SoCKit_Camera.sof www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 26
Set the new exposure time (use with SW0 ) KEY2 Stop Run KEY3 Switch to Free Run mode Off: Extend the exposure time On: Shorten the exposure time Mirror image (use with KEY0) www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Light Photo Sensor. The LCD displays the interface of our game. When tilting the VEEK-MT-SoCKit, the ADXL345 measures the static acceleration of gravity. In our Nios II software, we compute the change of angle in the x-axis and y-axis, and show the angle data on the LCD display.
Page 28
Batch file: G_sensor.bat, test_bashrc FPGA configuration file: SoCKit_G_sensor.sof Nios II program: G_sensor.elf Demonstration Setup Configure the FPGA by executing the demo batch file “test.bat” from the batch file folder “SoCKit_Painter\demo_batch” (Note*) www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
“its ADXL345’s ID = e5”. Tilt the VEEK-MT-SoCKit to all directions, and you will find the angle of G-sensor and the value of light sensor change accordingly. When turning the board from -80º to -10º and from 10º...
Page 30
In addition, video data is transmitted between the Video and Image Processing Suite functions using the Avalon-ST Video protocol, which facilitates building run-time controllable systems and error recovery. Figure 4-9 shows the block diagram of Video and Image Processing. www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 31
Demonstration Source Code Project directory: System-CD\Demonstrations\FPGA\SoCKit_VIP_Camera Bit stream used: SoCKit _VIP_Camera.sof Nios II workspace: VEEK_VIP_Camera \software Demonstration Batch File Demo batch file directory: System-CD\Demonstrations\FPGA\SoCKit_VIP_Camera\demo_batch The folder includes the following files: www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 32
(1) Execute SoCKit_VIP_Camera\demo_batch\VIP_Camera.bat will download .sof and .elf files. (2) You may need additional Altera VIP suite Megacore license features to recompile the project. Figure 4-10 Setup for the VEEK VIP camera demonstration www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Page 33
Figure 4-11 Screenshot of the VIP camera demonstration www.terasic.com VEEK-MT-SoCKit User Manual March 17, 2014...
Need help?
Do you have a question about the VEEK-MT-SoCKit and is the answer not in the manual?
Questions and answers