This Mini Home Automation project uses gen4-uLCD-32DT to control the lights in different the This Mini Home Automation project uses gen4-uLCD-32DT to control the lights in different parts of the model house. This demonstrates how to use the GPIO pins of a certain programmable module or board as an output. Different parts of the mini house can be controlled by using the graphical user interface of the gHMI module.
How It WorksThe resistive touch of gen4-uLCD-32DT displays the graphical user interface which can be pressed. Upon pressing each winbuttons, the processor will send a high signal to the respective GPIO pins to turn on the LED. The winbuttons also toggle the state of their respective GPIO pins.
ImplementationStep 1: Build- Build the circuit as shown in the diagram below.
- Connect the gen4-PA and the micro USB Cable as shown below.
- Download the project code here.
- Open this project using Workshop 4. This project uses the Visi Environment
- You can modify the properties of each widget.
- Click on the “Build Copy/Load” button.
Note: This step could be skipped. However, compiling is essential for debugging purposes.
Step 4: Comp’n Load- Connect the display to the PC using uUSB-PA5 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 display 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.
An acrylic cut of a mini house model is used to showcase the function of this project.
Comments