Architecture ..................7 2.1 Layout and Components ....................7 2.2 Block Diagram of the VEEK-MT2 ................8 2.3 What‟s Difference Between VEEK-MT2 and VEEK-MT .......... 9 Chapter 3 Using VEEK-MT2 ................10 3.1 Configuring the Cyclone IV E FPGA ............... 10 3.2 Bus Controller ......................
Page 3
4.6 Camera Application ....................34 4.7 Video and Image Processing for Camera ..............38 4.8 Digital Accelerometer Demonstration ............... 40 4.9 E-Compass Demonstration ..................43 Chapter 5 Application Selector ............... 48 5.1 Ready to Run SD Card Demos .................. 48 5.2 Running the Application Selector ................
LCD touch panel, you can evaluate numerous processor system designs. The all-in-one embedded solution offered on the VEEK-MT2, in combination of the LCD touch panel and digital image module, provides embedded developers the ideal platform for multimedia applications with unparallel processing performance.
Page 5
Configurable I/O standards (voltage levels: 3.3/2.5/1.8/1.5V) USB Type A and B o Provides host and device controller compliant with USB 2.0 o Supports data transfer at full-speed and low-speed o PC driver available www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 6
Module composed of LED backlight Support 24-bit parallel RGB interface Converting the X/Y coordination of touch point to its corresponding digital data via the Touch controller. Five-point touch support Gesture support www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 7
Programmable interrupt function with user-defined upper and lower threshold setting 16-bit digital output with I2C fast-mode at 400 kHz Programmable analog gain and integration time 50/60-Hz lighting ripple rejection www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 8
Self-test function with internal magnetic source to confirm magnetic sensor operation on end products Note: for more detailed information of the LCD touch panel and CMOS sensor module, please refer to their datasheets respectively. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
The kit contains all users needed to run the demonstrations and develop custom designs, as shown in Figure 1-2. The system CD contains technical documents of the VEEK-MT2 which includes component datasheets, demonstrations, schematic, and user manual. Figure 1-2 VEEK-MT2 kit package contents 1.2 Getting Help...
Chapter 2 Architecture This chapter describes the architecture of the VEEK-MT2 including block diagram and components. 2.1 Layout and Components The picture of the VEEK-MT2 is shown in Figure 2-1 Figure 2-2. It depicts the layout of the board and indicates the locations of the connectors and key components.
2.2 Block Diagram of the VEEK-MT2 Figure 2-3 gives the block diagram of the VEEK-MT2 board. To provide maximum flexibility for the user, all connections are made through the Cyclone IV E FPGA device. Thus, the user can configure the FPGA to implement any system design.
2.3 What’s Difference Between VEEK-MT2 and VEEK-MT Table 2-1 gives the difference between VEEK-MT2 and VEEK-MT. Table 2-1 Difference between VEEK-MT2 and VEEK-MT Signal Name VEEK-MT2 VEEK-MT LCD Touch Point 5 Point Touch 2 Point Touchs 。8-Mega Pixel 。Auto Focus...
Altera EPCS64 serial configuration device. It provides non-volatile storage of the bit stream, so that the information is retained even when the power supply to the VEEK-MT2 is turned off. When the board‟s power is turned on, the configuration data in the EPCS64 device is automatically loaded into the Cyclone IV E FPGA.
Page 14
Figure 3-4) Connect the supplied USB cable to the USB-Blaster port on the VEEK-MT2 The FPGA can now be programmed by using the Quartus II Programmer module to select a configuration bit stream file with the .sof filename extension www.terasic.com...
Page 15
EPCS64 serial configuration device, perform the following steps: Ensure that power is applied to the VEEK-MT2 Connect the supplied USB cable to the USB-Blaster port on the VEEK-MT2 Configure the JTAG programming circuit by setting the RUN/PROG slide switch (SW19) to the PROG position ...
Figure 3-5 The AS Configuration Scheme 3.2 Bus Controller The VEEK-MT2 comes with a bus controller using the Max II EPM240 that allows user to access the touch screen module through the HSMC connector. This section describes its structure in block diagram-form and its capabilities.
(800x480) to provide users the best display quality for developing applications. The LCD panel supports 24-bit parallel RGB data interface. The VEEK-MT2 is also equipped with a Touch controller touch controller, which can read the coordinates of the touch points through the serial port interface of Touch controller...
2.5V 3.4 Using 8-megapixel Digital Image Sensor Terasic VEEK-MT2 board equips with an 8M pixel MIPI camera module named OV8865 (See Figure 3-7). The OV8865 color image sensor is a high performance, 8 megapixel RAW image sensor that www.terasic.com...
Page 19
VCM to move its lens to the desired position for getting a sharp image and realizing the Auto Focus (AF) feature. Terasic also provides an AF demonstration and IP in the System CD, see section 4.6 for details. The datasheet of this VMC driver IC named VM149C VCM Driver IC.pdf also can be found in the System CD.
Page 20
FPGA also can read/write MIPI Decoder through a I2C bus (MIPI_I2C_SDA / MIPI_I2C_SCL ; I2C device address is 0x1C), which is different from the camera module I2C bus. On the VEEK-MT2 board, MIPI Decoder can output clocks to the MIPI camera and FPGA board. So in the demonstrations, most of them show how to control IC PLL parameters as well as others.
Page 21
I2C Data for bridge MIPI_I2C_SDA device 2.5V Power Down signal of CAMERA_PWDN_n MIPI camera 2.5V I2C Clock for MIPI CAMERA_I2C_SCL camera 2.5V I2C Data for MIPI CAMERA_I2C_SDA camera 2.5V MIPI camera system MIPI_MCLK clock (Reserve) 2.5V www.terasic.com VEEK-MT2 User Manual July 4, 2016...
3.5 Using the Gyroscope, Accelerometer and Magnetometer The VEEK-MT2 is equipped with a Motion-Tracking device named MPU-9250. The MPU-9250 is a 9-axis Motion-Tracking device that combines a 3-axis gyroscope, 3-axis accelerometer and 3-axis magnetometer. Detail features of these sensors are listed below: ...
Serial Data 2.5V 3.7 Using Terasic Multi-touch IP 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.v, which is located in System CD \IP folder.
Page 24
IP. When the oREADY rises, it indicates touch activity, and the associated information can be collected from the oREG_X1~ oREG_X5, oREG_Y1~ oREG_Y5, oREG_TOUCH_COUNT, and oREG_GESTURE pins. Figure 3-9 Signaltap II Waveform for Multi-Touch IP www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 25
Zoom In 0x48 Zoom Out 0x49 No Gesture 0x00 Note: The Terasic IP Multi-touch IP can also be found under the \IP folder in the system CD, as well as the reference designs. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
To run and recompile the demonstrations, you should: For demonstration of VEEK-MT2, please install Altera Quartus II 15.0 and NIOS II EDS 15.0 or later edition on the host computer. Users need to download Quartus II 15.0 from Altera's website.
VIP Video Out is used to display the display content. The display content is filled by NIOS II processor according to users‟ input. For multi-touch processing, a I2C interface IP is used for accessing touch resolution and gestures, additionally, a PIO IP used for accessing interrupt signal. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 28
Demonstration Batch File Demo Batch File Folder: Painter \demo_batch The demo batch file includes the following files: Batch File: test.bat, test.sh FPGA Configure File: Painter.sof Nios II Program: Painter.elf www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 29
Figure 4-4 shows the photo when users paint in the canvas area. Figure 4-5 shows the photo when zoom-in gesture is detected. Figure 4-3 GUI of Painter Demo Figure 4-4 Five Point Touch Painting www.terasic.com VEEK-MT2 User Manual July 4, 2016...
JPEG images stored on SD Card and displays them on the LCD. The Nios II CPU decodes the images and fills the raw result data into frame buffers in SDRAM. The VEEK-MT2 will show the image the buffer being displayed points to. When users touch the LCD Touch Panel, it will proceed to display the next buffered image or last buffered image.
Page 31
Nios II Workspace: Picture_Viewer\Software Demonstration Batch File Demo Batch File Folder: Picture_Viewer\demo_batch The demo batch file includes the following files: Batch File: test.bat, test.sh FPGA Configure File: Picture_Viewer.sof Nios II Program: Picture_Viewer.elf www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 32
Place the jpg image files to the \jpg subdirectory of the SD Card. For best display result, the image should have a resolution of 800x480 or the multiple of that. Insert the SD card to the SD card slot on the VEEK-MT2. Load the bit stream into the FPGA on the VEEK-MT2.
MegaCore® functions that are available in the Video and Image Processing Suite. Available functions are listed in Table 4-1. This demonstration needs the Quartus II license file includes the VIP suite feature. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 34
Avalon-ST video and vice versa. These functions allow you to fully integrate common video functions with video interfaces, processors, and external memory controllers. The example design uses an Altera Cyclone® IV E EP4CE115F29 featured VEEK-MT2. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 35
A video source is input through an analog composite port on VEEK-MT2 which generates a digital output in ITU BT656 format. A number of common video functions are performed on this input stream in the FPGA. These functions include clipping, chroma resampling, motion adaptive deinterlacing, color space conversion, picture-in-picture mixing, and polyphase scaling.
Page 36
FPGA Configure File: VIP.sof Nios II Program: VIP.elf Demonstration Setup Connect the VGA output of the VEEK-MT2 to a VGA monitor (both LCD and CRT type of monitors should work) Load the bit stream into FPGA (note*) ...
This demonstration shows a digital camera reference design using the 8-Megapixel CMOS sensor and LCD modules on the VEEK-MT2. The CMOS sensor module sends the raw image data to FPGA on the DE2-115 board, the FPGA on the board handles image processing part and converts the data to RGB format to display on the LCD module.
Page 38
RAW2RGB_J: This module is to convert RAW data to RGB data. VGA_Controller: the LCD signal timing generator, can generate signal timing which the resolution is 800x480. FOCUS_ADJ: This module provides two main functions. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 39
Using “ZOOM OUI” gesture on the LCD screen will clear the yellow box. Table 4-2 summarizes the functional keys and details of each LED status. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 40
ZOOM Out Gesture Whole Area Focus Mode HEX[1:0] Frames Per Second(FPS) Figure 4-12 Screen shot of the VEEK-MT2 camera demonstration Figure 4-13 Area Focus Mode of the VEEK-MT2 camera demonstration Note: Executing the test.bat under Camera\demo_batch will automatically download the .sof file. www.terasic.com...
The example design uses an Altera Cyclone® IV E EP4CE115F29 featured on the VEEK-MT2. A video source is input through the CMOS sensor on VEEK-MT2 which generates a digital output in RGB format. A number of common video functions are performed on this input stream in the FPGA.
Page 42
Nios II Workspace: VIP_Camera \Software Demonstration Batch File Demo Batch File Folder: VIP_Camera\demo_batch The demo batch file includes the following files: Batch File: test.bat, test.sh FPGA Configure File: VIP_Camera.sof Nios II Program: VIP_Camera.elf www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Light Photo Sensor. The demonstration using the gravity information retrieved from the MPU9250 to implement a bubble level on the LCD panel. When tilting the VEEK-MT2, the NIOS II program reads the acceleration of gravity from the MPU9250. Based on the gravity information, the NIOS II program can compute the change of angle in the x-axis and y-axis, and shows the angle data in the LCD display.
Page 44
Light_GetID is designed to get the chip ID of APDS-9300. Function Light_Get_ADCData0 and Light_Get_ADCData1 are designed to get the two ADC values in APDS-9300 Demonstration Source Code Project directory: G_sensor Bit stream used: VEEK_MT2.sof Nios II Workspace: G_sensor\Software www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 45
Execute the test.bat to configure FPGA and launch the NIOS II program (Note*). Tilt the VEEK-MT2 to all directions, and you will find that the angle of the g-sensor and value of light sensor will change. When turning the board from -80º to -10º and from 10º to 80º in Y-axis, or from 10ºto 80º...
LCD panel. The video steaming is: Nios II Processor SDRAM VIP: Frame Reader VIP: Clocked Video Output LCD Panel. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 47
= my*soc(roll) + mz*size(roll) Where mx/my/mz are the measured valued by the magnetometer in the MPU9250. The pitch and roll can be calculated by the gravity valued measured by the accelerometer in the MPU9250. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 48
X are the maximal and minimal value of X/Y/Z values reported by magnetometer in the MPU9250 while the VEEK-MT2 is rotated in its X/Y/Z axes as shown in Figure 4-20. Figure 4-20 Rotate VEEK-MT2 around each of its 3 aces www.terasic.com...
Page 49
LCD. If the value is valid, please touch Yes button to apply the calibration result. Keep the VEEK-MT2 on as flat a surface as possible by watching the bubble level on the LCD. The e-compass will show the accuracy North direction on the LCD.
Page 50
Figure 4-21 Hint for rotate VEEK-MT2 Figure 4-22 Magnetic Calibration Information Note: Execute E_Compass \demo_batch\test.bat to download .sof and .elf files. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Also, you can easily convert your own applications to be loadable by the application selector. For more information see “Creating Your Own Loadable Applications” in section 5.3. If you have lost the contained files in the SD card, you could find them on the VEEK-MT2 System CD under the Factory_Recovery folder.
5.2 Running the Application Selector Connect power to the VEEK-MT2 Insert the SD card with applications into the SD card socket of VEEK-MT2 Switch on the power (SW18) Scroll to select the demonstration to load using the side-bar ...
Page 53
Flash memory under the System Library Properties (Nios II IDE) page or through BSP Editor (Nios II SBT for Eclipse) utility (2*) Once you have your working .SOF and .ELF file pair, perform the following steps to convert them to a loadable application selector compatible application. www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Page 54
“Application_Selector”. The directory structure on the SD Card should look like this: Application_Selector\<Name of Application>\{<elf_name>_SW.bin;<sof_name>_HW.bin} Place the SD card in the VEEK-MT2, and switch on the power. The Application Selector will start up, and you will now see your application appear as one of the selections Note: (1).
Copy Selector project into a local directory of your choice. The Selector project is placed in Demonstrations\Selector Power on the VEEK-MT2, with the USB cable connected to the USB Blaster port Download the Selector.sof to the board by using either JTAG or AS programming ...
Page 56
Note: You can also use „Selector_batch‟ to generate selector.bin and restore the original binary file by executing the Selector.bat under the Factory_Recovery\Selector_batch folder. Figure 5-2 Programming Flash settings www.terasic.com VEEK-MT2 User Manual July 4, 2016...
Need help?
Do you have a question about the VEEK-MT2 and is the answer not in the manual?
Questions and answers