The Grab-a-card project is a simple demonstration of the controlling servo motors using the gen4 HMI display modules. Three servo motors were used and assembled with a box. A gripper and arm which will accept the user’s business card and put them inside the box.
ImplementationStep 1: Build- Connect the components as shown in this diagram:
- Download the project here.
- Open the project using Workshop 4. This project uses the Visi Environment.
- You can modify the properties of each widget.
- After that, Click “Paste Code”. This will copy the code for the object to your 4DGL program allowing the programmer to modify the functionality of each objects as desired.
- The program itself is coded for you, in case you want to modify some function and properties, you are free to do so.
- Click on the “Build Copy/Load” button.
Note: This step could be skipped. However, compiling is essential for debugging purposes.
Step 4: Upload- Connect the display to the PC using Gen4 Interface Board and a mini USB cable. 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.
Demonstration
Now, attach the components to your acrylic box. you can modify this project to suit your design.









Comments