This is a simple demonstration of the uCAM-III. This project enables capturing raw images and setup configuration of the uCAM. The captured images can be viewed on the display of the gen4-uLCD-35DT module. The capture mode can be single capture or continuous capture.
uCAM-III is interfaced with gen4 HMI module through serial communication.
Components- 30 way FFC Cable
- uSD Card
- Micro USB Cable
- Connecting Wires
- Connect uCAM-II to gen4-uLCD-32-DT as shown in the schematic below.
- Connect the display to the PC as shown in the image below to program the module.
- Download the file here.
- Open the Visi Project File with Workshop4 IDE.
- You can modify the properties of each widget.
- After that, Click “Paste Code”. This will copy the code of each object to your 4DGL program. Functions for each object can now be added.
- Click on the “Build Copy/Load” button.
Note: This step could be skipped. However, compiling is essential for debugging purposes.
Step 4: Upload- Make sure that you are connected to the right port. Red Button indicates that the device is not connected. Blue Button indicates that the device is connected to the right port.
- Now click on the “(Build) Copy/Load” button.
- Workshop 4 will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.
- The module will prompt you to insert the uSD card.
- Properly unmount the uSD Card from the PC and insert it to the uSD Card slot of the display module. The image below must appear on your display after completing the steps above.
- First, Sync the uCAM-III to the gen4-uLCD-35DT by pressing the button SYNC.
- The uCAM-III will now try to sync with the display, if the sync is not successful, the image below will appear. Re-sync the uCAM-III again or reset the display. Also, check the connection like the one shown above.
- If the sync is successful, the image below will show up on the screen. Wait until the status monitor will display Ready.
- To capture image, choose SINGLE button for single capture and CONT button for continuous capture.
- To change format type, choose RGB button for 565 colour and Gray Scale button for gray scale format.
- To set resolution, choose Set Resolution button. The default resolution is 80x60. It can be set to 128x96, 128x128, and 160x120.
- To set baud rate, choose Set Baud Rate button. The default baud rate is 9600 bps, and it can be set to 57600, 115200, 153600, 230400, and 460800 bps.
- To go to other setup, choose the small image/icon on the top right side on the screen. It will show to setup the contrast, brightness, exposure, light frequency and reset. The default setup for contrast and brightness are normal. For exposure, the default is 0, and for light exposure the default is 50 Hz. The reset will give you option to re-sync and reset the display.
Comments
Please log in or sign up to comment.