uCAM-III Demo

by 4D Makers
uCAM-III Demo

About this Project

Nov 29, 2017

by 4D Makers

Platform : 4D Systems

License : None

Category : HMI Display

Difficulty Level : Intermediate

Downloads :

   
Add to Collections

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. 

How it Works

Components

HARDWARE COMPONENTS

 

SOFTWARE COMPONENTS

Implementation

Step 1: Build

  • Connect uCAM-II to gen4-uLCD-32-DT as shown in the schematic below.

 

Ucam ii to gen4 ulcd 32 dt blqfnmuw0f

 

  • Connect the display to the PC as shown in the image below to program the module.

Step 2: Program

  • Download the file here.
  • Open the Visi Project File with Workshop 4 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.

 

Step 3: Compile

  • 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 IDE will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.

Step 5: Mount uSD Card

  • 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.

 

Demonstration


Controlling the uCAM-III

  • 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.

 

Video

HARDWARE COMPONENTS

 

SOFTWARE COMPONENTS

Step 1: Build

  • Connect uCAM-II to gen4-uLCD-32-DT as shown in the schematic below.

 

Ucam ii to gen4 ulcd 32 dt blqfnmuw0f

 

  • Connect the display to the PC as shown in the image below to program the module.

Step 2: Program

  • Download the file here.
  • Open the Visi Project File with Workshop 4 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.

 

Step 3: Compile

  • 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 IDE will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.

Step 5: Mount uSD Card

  • 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.

 


Controlling the uCAM-III

  • 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.

 

Related Projects

Comments

Please log in or sign up to post a comment.

MAKE, SHARE and CONNECT