4D SYSTEMS uLCD-144-G2 1.44 Inch Intelligent Display Module User Guide
- June 4, 2024
- 4D SYSTEMS
Table of Contents
- What’s In The Box
- Introduction
- System Requirements
- Software
- Connecting The Display Module To The Pc
- Connection Options
- Let WS4 Identify the Display Module
- Getting Started With A Simple Project
- inherit “4DGL_16bitColours.fnc”
- inherit “VisualConst.inc”
- inherit ” LedDigitsGaugeConst.inc”
- inherit “LedDigitsDisplayGoldelox.inc”
- Application Notes
- Reference Documents
- GLOSSARY
- References
- Read User Manual Online (PDF format)
- Download This Manual (PDF format)
uLCD-144-G2 1.44 Inch Intelligent Display Module
**User Guide
**
uLCD SERIES
uLCD-144-G2
1.44” Intelligent Display Module
uLCD Series
This user guide will help you start using the LCD-144-G2 module along with the WorkShop4 IDE. It also includes a list of essential project examples and application notes.
What’s In The Box
Supporting documents, datasheet, CAD step models and application notes are available at www.4dsystems.com.au
Introduction
This User Guide is an introduction to the LCD-144-G2 and the WorkShop4
software IDE associated with it. This manual should be treated only as a
useful starting point and not as a comprehensive reference document. Refer to
Application Notes for a list of all the detailed reference documents.
In this User Guide, we will briefly focus on the following topics:
- Hardware and Software Requirements
- Connecting the Display Module to your PC
- Getting Started with Simple Projects
- Application Notes
- Reference Documents
The uLCD-144-G2 is designed and manufactured by 4D Systems. It is a
compact and visually stunning display module using the latest TFT-LCD
technology with an embedded GOLDELOX graphics processor that can deliver
`stand-alone’ functionality to any project.
Intelligent display modules are embedded solutions used in various
applications in manufacturing automotive, medical, home automation, consumer
electronics, and other various industries. In fact, there are very few
embedded designs on the market today that do not have a display. Even many
consumer white goods and kitchen appliances incorporate some form of display.
Buttons, rotary selectors, switches, and other input devices are being
replaced by more colorful and easier-to-use touch screen displays in
industrial machines, thermostats, drink dispensers, 3D printers, commercial
applications – virtually any electronic application.
For users to be able to design a user interface for their applications that
will run on 4D intelligent display modules, 4D Systems provides a free and
user-friendly software IDE (Integrated Development Environment) called
“Workshop4” or “WS4”. This software IDE is discussed in more detail in the
section “System Requirements”.
System Requirements
The following sub-sections discuss the hardware and software requirements for
this manual.
Hardware
1.1 Intelligent Display Module
The uLCD-144-G2 intelligent display module and its accessories (5-way cable
and malemale adaptor) are included in the box, delivered to you after your
purchase from our website or through one of our distributors. Please refer to
the section “What’s in the Box” for images of the display module and its
accessories.
1.2 4D Programming Module
The programming module is a separate device required to connect the display
module to a Windows PC. 4D Systems offer the following programming module:
- 4D Programming Cable
- uUSB-PA5-II Programming Adaptor
- 4D-UPA
To use any of the programming modules, the corresponding driver must first be
installed in the PC. You may refer to the product page of the given module for
more information and detailed instruction.
1.3 microSD Card
Workshop4 has built-in widgets that can be used to design your display UI. In
order to use these widgets, they should be saved first into the microSD Card
along with the other graphic files during the compilation step.
NOTE: The microSD Card is optional and is only needed with projects that
are utilizing graphical files. Please note as well that not all cards on the
market are SPI compatible, and therefore not all cards can be used in 4D
Systems products. Buy with confidence, choose the cards recommended by 4D
Systems.
1.4 Windows PC
Workshop4 only runs on Windows operating system. It is recommended to be used
on Windows 7 up to Windows 10 but should still work with Windows XP. Some
older OS’s such as ME and Vista has not been tested for quite some time,
however, the software should still work.
If you want to run the Workshop4 on other operating systems like Mac or Linux,
it is recommended to set up a virtual machine (VM) on your PC.
Software
2.1 Workshop4 IDE
Workshop4 is a comprehensive software IDE for Microsoft Windows that provides
an integrated software development platform for all of the 4D family of
processors and modules. The IDE combines the Editor, Compiler, Linker and
Downloader to develop a complete 4DGL application code. All user application
code is developed within the Workshop4 IDE.
Workshop4 includes three development environments, for the user to choose from
based on application requirements or even user skill level- Designer, ViSi and
Serial.
Workshop4 Environments
Designer
This environment enables the user to write 4DGL code in its natural form to
program the display module.
ViSi
A visual programming experience that enables drag-and-drop type placement of
objects to assist with 4DGL code generation and allows the user to visualize
how the display will look while being developed.
Serial
This environment is also provided to transform the display module into a
slave serial display module, allowing the user to control the display from any
host microcontroller or device with a serial port.
2.2 Install Workshop4
Download links for the WS4 installer and installation guide can be found on
the Workshop4 product page.
Connecting The Display Module To The Pc
This section shows the steps for connecting the display to the PC. Please refer to the images below for the complete instructions.
Connection Options
Option A Using the 4D Programming Cable
Connect the Programming cable to the display. Please refer to the image below
for proper insertion. Pin1 corresponds to 5V input.
Let WS4 Identify the Display Module
After following the appropriate set of instructions in the previous section, you now need to configure and set up Workshop4 to make sure that it identifies and connects to the correct display module.
-
Open Workshop4 IDE and create a new project.
-
Select the display module you’re using from the list.
-
Select your desired orientation for your project.
-
Click next
-
Choose a WS4 Programming Environment. Only the compatible programming environment for the display module will be enabled.
-
Click on the COMMS tab, and select the COM port the display module is connected to from the dropdown list.
-
Click on the RED Dot to start scanning for the display module. A YELLOW dot will show while scanning. Make sure that your module is connected properly.
-
Lastly, a successful detection will give you a BLUE Dot with the name of the display module shown alongside it.
-
Click on the Home tab to start creating your project.
Getting Started With A Simple Project
After successfully connecting the display module to the PC using your
programming module, you can now start developing a basic application. This
section shows you how to design a simple user interface using the ViSi
environment and utilizing the LEDDIGITS and GAUGE widgets.
The resulting project consists of LEDDIGITS and GAUGE widgets. The value of
the two widgets shall continuously change randomly, thus the shown digit and
level shall change correspondingly.
NOTE: This sample project can be found in Workshop4 upon installation.
Click on Files > Samples > Goldelox ViSi > LEDDIGITS GAUGE.
Create a New ViSi Project
You can create a ViSi project by opening Workshop4 and choosing the display
type and the environment that you want to work with. This project will be
using the ViSi environment.
- Open Workshop4 by double-clicking the icon.
- Create New Project with the New Tab.
- Choose your display type.
- Click Next.
- Choose Visi.
Add a Leddigits Widget
To add a Leddigits widget, simply click on the Widgets Tab and choose the
Digits sub-tab. From the list, you may choose the type of widget that you want
to use. In this case, the Leddigits widget.
Simply Drag-and-Drop the widget towards the What-You-See-Is-What-You-Get
(WYSIWYG) area. You may change the properties (color, number of digits, etc.)
of the widget in the Object Inspector window.
Add a Gauge Widget
To add a Gauge widget, go to the Gauges section and choose the gauge type
that you want to use. In this case the Gauge widget.
Drag and drop it towards the WYSIWYG section to proceed. You may change the
properties (color, number of digits, etc.) of the widget in the Object
Inspector window. Set the Orientation option to Vertical.
The WYSIWYG area should now look like this:
Programming the events
To control the widgets in the ViSi environment, 4DGL is used. Please paste the
following code to the code editor area.
inherit “4DGL_16bitColours.fnc”
inherit “VisualConst.inc”
inherit ” LedDigitsGaugeConst.inc”
inherit “LedDigitsDisplayGoldelox.inc”
func main()
var numx ; print(“Starting”) ;
while(!media_Init()) putstr(“Drive not mounted…”);
pause(200); gfx_Cls(); pause(200); wend
media_SetAdd(iLeddigits1H, iLeddigits1L) ;
// point to theLeddigits1 image media_Image(0, 0) ;
// show all digits at 0, only do thisonce repeat num := ABS ( RAND() % 1000) ;
ledDigitsDisplay(num, iiLeddigits1H, iiLeddigits1L, 0, 0, 4, 2, 32, 1);
num /= 10 ; media_SetAdd(iGauge1H, iGauge1L) ; image media_VideoFrame(0, 108,
numx) ; 100 (for a displayed 0 to 100)
// point to the Gauge1
// where numx is 0 to
pause(250) ; forever
end fund
This code sets both widgets to change in value every 250ms. To learn more
about 4DGL, please refer to the References section. Build and Compile the
Project
To Build/Upload the project, click the (Build) Copy/Load icon.
Copy the Required Files to the MicroSD Card
In order to display widgets on the display, it needs a microSD card to store
graphic files like the leddigits and gauge widgets. To do this, make sure that
you have a MicroSD card inserted in one of your PC ports and the display is
properly connected.
There will be a pop-up window asking for the microSD card that you want to
write into. Choose your microSD card and click on OK. Click “Yes” for the User
Account Control window and wait for the program to load.
NOTE: The visa application writes the graphics files into the microSD
card in RAW format for GOLDELOX display modules. In other words, the FAT
formatting will be removed. Please make sure you backup any important
files/data you have on the microSD card before proceeding.
You may upload your graphics files after the conversion of the FAT format to
RAW. It will also be indicated in the pop-up window that the microSD Card is
already in the RAW format. Before proceeding, make sure that you have selected
the right microSD Card.
Unmount the microSD Card from the PC and insert it to the display’s microSD
Card slot.
Application Notes
App Note | Title | Description | Supported Environment |
---|---|---|---|
4D-AN-00117 | Designer Getting Started – First | ||
Project | This application note shows how to create a new project using the |
Designer Environment. It also introduces the basics of 4DGL (4D Graphics
Language).| Designer
4D-AN-00118| ViSi Getting Started – First
Project for GoldieBlox| This application note shows how to create a new
project using the ViSi Environment. It also introduces the basics of 4DGL (4D
Graphics Language and the basic use of the WYSIWYG (What-You-See-Is-What-you
get) screen.| ViSi
4D-AN-00086| Serial Goldelox Getting Started
– The SPE Application| This application note shows how to configure a 4D
display to act as a serial slave and how to use the Serial Commander (one of
the several tools available in Workshop) to send commands to the display. This
knowledge will then allow the user to properly program any external host
controller for the display module.| Serial
4D-AN-00058| Designer or ViSi How to Draw
Circles and Rectangles| This application note shows how to program a 4D
display module in the Designer environment to make it draw circles and
rectangles on the screen.| Designer, ViSi
4D-AN-00059| Designer or ViSi How to Draw
Circles and Rectangles| This application note shows how to program a 4D
display module in the Designer environment to make it draw
circles and rectangles on the screen| Designer, ViSi
4D-AN-00060| Designer or ViSi How to Draw
Triangles and Polygons| This application note shows how to program a 4D
display module in the Designer environment to make it draw triangles and
polygons on the screen.| Designer, ViSi
Reference Documents
The following are documents to further enhance the user’s ViSi environment
knowledge and to start learning about 4DGL programming:
4 DGL Programmer Reference Manual
4DGL is a graphics-oriented language allowing rapid application development.
An extensive library of graphics, text and file system functions and the ease
of use of a language that combines the best elements and syntax structure of
languages such as C, Basic, Pascal, etc. This document covers the language
style, syntax and flow control
GoldieBlox Embedded Graphics Processor
The GoldieBlox is a custom embedded graphics controller designed to
interface with many popular OLED and LCD display panels. This document lists
and describes the specifications and features of the Goldelox processor.
GoldieBlox Processor Internal Functions Reference Manual
4DGL has a number of internal functions that can be used for easier
programming. This document covers the internal (chip-resident) functions
available for the Goldelox Processor.
GoldieBlox Processor Serial Commands Reference Manual
The GoldieBlox Processor can be programmed to act as a `SERIAL SLAVE’ device,
responding to the Serial commands sent from virtually any Host Controller.
This document shows lists the commands applicable to the Goldelox processor.
uLCD-144-G2 Datasheet
This document lists the detailed information about the ICD-144-G2.
NOTE: For more information on the Workshop4 Software in General or the other
Environments available in Workshop4, please refer to the Workshop4 IDE User
Guide, available at www.4dsystems.com.au
GLOSSARY
Software
- Comm Port A serial communication port or channel is used to connect devices such as your display.
- Driver As a group of files that enable one or more hardware devices to communicate with the display’s processor.
- Firmware A specific class of computer software that provides low-level control for the device’s specific hardware.
- GUI A form of user interface that allows users to interact with electronic devices through graphical icons and visual indicators such as secondary notation, instead of text-based user interfaces, typed command labels or text navigation.
- Image Files Are graphics files generated upon program compilation that should be saved into the MicroSD Card.
- Object Inspector A section in Workshop4 where the user can change the properties of a certain widget. This is where the widgets customization and Events configuration happen.
- PC The PC contains the low-level micro-code information (analogy of that of a soft silicon) which defines the characteristics and functionality of the DIABLO16 processor. The chip-resident 4DGL functions are part of the PC configuration file and future proofing and enhancements are available via PC updates. The PC file is programmed into the module via the COM port.
- Programming Environment As a type of programming means on which the users wants to use. In Workshop4, the four environments are Designer, ViSi-Genie, ViSi, and Serial.
- Widget Graphical objects in Workshop4.
- WS4 IDE A comprehensive software IDE for Microsoft Windows that provides an integrated software development platform for all of the 4D family of processors and modules. The IDE combines the Editor, Compiler, Linker, and Downloader to develop a complete 4DGL application code. All user application code is developed within the Workshop4 IDE.
- WYSIWYG What-You-See-Is-What-You-Get. The Graphics Editor Section in Workshop4 where the user can drag and drop widgets.
Hardwar
- Programming Cable The 4D Programming Cable is a USB to Serial-TTL UART converter cable. The cable provides a fast and simple way to connect all of the 4D devices that require a TTL level serial interface to USB.
- Embedded System A programmed controlling and operating system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts.
- Female Header A connector attached to a wire, cable, or piece of hardware, having one or more recessed holes with electrical terminals inside.
- Micro USB cable A type of cable used to connect the display to a computer.
- Processor A small chip that drives the 4D Systems displays. Its basic job is to receive input and provide the appropriate output.
- Programming Adaptor Used for programming gen4 display modules, interfacing to a breadboard for prototyping, interfacing to Arduino and Raspberry Pi interfaces.
- microSD Card A type of removable flash memory card used for storing information.
uLCD-144-G2 — USER GUIDE
www.4dsystems.com.au
Visit our website at: www.4dsystems.com.au
Technical Support:
www.4dsystems.com.au/support
Sales Support: sales@4dsystems.com.au
Copyright © 4D Systems, 2022, All Rights Reserved.
All trademarks belong to their respective owners and are recognized and
acknowledged.
References
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>