Skip to main content

How can I create an LCD module as a component?

This tutorial requires:

DesignSpark PCB V11.0.0

This tutorial shows a complete step-by-step procedure to create an LCD module for use as a component. Although this is an LCD module the techniques can be equally applied to microcontroller, RF, I/O modules as required.

A quick search will identify many different LCD modules available for character and graphic displays incorporating the main IC and display integrated onto a compact PCB display module ready for use.

How can these modules be used within DesignSpark PCB as components that will form part of the final design?

These displays modules provide 4 mounting holes and a PCB connector as the interface. They can therefore be treated as a simple connector with four spaced mounting holes, plus for convenience of assembly within an enclosure can indicate the position of the LCD window.

Essential steps in this process are to identify the correct mechanical drawing for the many LCD module configurations. Even similar ones may vary slightly between manufacturer, but some have significantly different footprints.

This shows RS 125-329 16-character 2 row module with an SIL 16 pin connector. The connector from other manufacturers may be in a totally different locations showing that it is essential to consult the mechanical diagram.

blobid0_ea4a2ec78abee17ab8d4efb04bc5ed6b949f5698.png

The following for example shows the RS 214-3525 16x02 from Powertip with a 8x2 DIL header connector.

blobid1_683651cb98c9d1bba9d079fa642f1a53b89aa146.png

Create the component.

For the purposes of this example, we shall create a component in DesignSpark PCB for the "Fordata"

RS part: (012-5329). First, we identify the key dimensions:

blobid2_d6e1eb5d217e3fa066a8b5baad8fc6a2b1723178.png

We require the connector pad hole locations and also the mounting hole locations in relation to the module board dimensions as highlighted above.

Note. Unless otherwise indicated a dimension is assumed to be symmetrical about a horizontal or vertical centre line.

Step 1. Create the schematic symbol.

The symbol will consist of 16 pins as defined below.

blobid3_0837114e3303c95f91f2b6043427702d043b8aee.png

Launch the Library Manager, select the 'Schematic Symbols' tab and click the 'Wizard' button.

blobid4_33fb5a8946bb37f81341508962f3711a5bff046d.png

Step through the configuring steps leaving everything at their default values.

Select a connector as the "..kind of symbol.." (NOTE if you were designing an 8x2 connector for the LCD type you may wish to consider a 'rectangle' symbol, but it is purely your choice for ease of visualisation).

blobid5_ac197c26a783405b02401459b28152e86967582f.png

Then at "Specify the pins required..." select 16. The other dimensions shown are for the schematic symbol, leave these at their defaults.

blobid6_5f51568f17c93bc81f717391f97f3c445ea3edef.png

Finally name the symbol for ease of identification or your local standards.

blobid7_513fc8859d80158e318819725b83742eb20d6572.png

Leave the check boxes ticked to save the symbol and select from the pulldown menu the library location where the symbol will be saved.

Also leave the check box ticked to 'edit the symbol now' which will launch the symbol editor with the symbol.

blobid8_37a651a169a5bea2110cf3a481bc7b1b600c14a9.png

The above is the basic symbol i.e., just the connections and we can now edit it to appear as we wish to see it on our schematic sheet.

You can make this as elaborate as required using the simple shapes and text option provided. Here is our symbol which just symbolically shows a matrix, it can be edited further to show 16x2 characters or just have a text description.

blobid9_c220beec1956f0af903dc468a295a87d4d53f7eb.png

Step 2. Create the PCB symbol.

This is more demanding in that it must be dimensionally accurate. Here we show some techniques on how to use some of the features to make this as easy as possible.

Launch the Library Manager, select the 'PCB Symbols' tab and click the 'Wizard' button.

Step through each window and make selections as appropriate. The key windows are detailed below.

As the datasheet is in ‘mm’ we select a metric technology file.

blobid10_06ef4a4c2451ecf29be27910d698d72ec0d33611.png

The SIP footprint is most appropriate for our requirements.

blobid11_ab43dd5aa1ec6362783f541b5690d7d7e9992117.png

Next, we specify the number of pins, pitch, hole size and pad width.

blobid12_8a45a3fbda92d9717d936f8210b35a46610e3a38.png

The Hole Diameter has been selected to match the LCD module in this example.

Step through and save and name the PCB footprint. This requires further editing for our LCD module so tick the check box to launch the footprint editor now.

blobid13_bb30e73d2b3b8d3e30dc1a272017c4a36aaf5fa8.png

In the editor we now have the basis for our LCD with just the connections.

blobid14_d00ac43776f2843a4065a1bd75e3ee574abe17b3.png

Now we will add the module outline.

Add an outline as a rectangle shape on the documentation layer that simply encloses the connector. Next select the top edge and position that 2mm above the centre of the pad hole. In this case it can be simply achieved with using the grid, but all dimensions can be checked with the measure tool as shown.

Now we will add the module outline.>

Add an outline as a rectangle shape on the documentation layer that simply encloses the connector. Next select the top edge and position that 2mm above the centre of the pad hole. In this case it can be simply achieved with using the grid, but all dimensions can be checked with the measure tool as shown.>

blobid15_266fe50b4ad47f74558cb050a2fcf72793c1dd7d.png

Next, we position the remaining edges.

For example, select the lower board edge and press the shortcut key '=' to display the current coordinates from the Relative Origin, type in the required new vertical dimension, click 'OK' at it will be precisely set.

blobid16_fcc865faaf22bdb353c055ea652359b4503924c7.png

Repeat for all edges setting the relative origin and a reference point and using the shortcut '=' for the selected line update its 'X' or 'Y' dimension as appropriate.

We now have the board outline positioned correctly relative to the connector.

blobid17_cb1d314f237559b4025449a2e1a24992404f7d2f.png

We now add the mounting holes which are 2.5mm diameter and 2.5mm in from each board edge at the corners. We wish to place these as circles on the documentation layer, however it is simpler to place these as a pad, convert to a shape and move to the documentation layer as shown.

(Note: circle position when used as a shape is defined from the circumference, hence the pad is a better solution in this instance).

Set the Relative Origin at a corner if it is not in the required location, zoom in and with the cursor at the required position press the shortcut key 'O'. You may alternatively select the left vertical board edge and from the right click menu select Origins--> Set relative origin at item.

blobid18_3304274005d5c4dc5083335433db2e00c937346d.png

NOTE. The relative origin of a line is at one end, so select either of the intersecting board outlines that provides the origin in the desired position.

Now place the mounting holes which are pads without copper.

Select the Pad icon, Press the shortcut key 'S' to change the Pad Style. Name the hole with a descriptive name such as 'mounting hole 2.5mm' and set the values as required, here we have the settings for a simple hole, click OK and accept and close any warnings. 

blobid19_e4e82f43cc4a8dca5c620d8af41cdc20e68af810.png

With the newly dimensioned mounting hole selected on the component press the short cut key '=' to easily position. Ensure the relative check box is selected and edit the position values for the required location. Press 'OK' to place.

blobid20_d6526c19a5b081195eaa4ee3e7621e5269b54e5e.png

Repeat for the other positions and your basic LCD footprint is complete.

blobid21_79860167434a94ba20efc3500ca4f081576e3a68.png

Finally move all these holes to the documentation layer (otherwise the holes will remain as component pads).

Click each pad in turn to select and from the right click options change the pad type to a shape.

blobid22_e7daed612d634db56a0837e7cff2562f3e30e4de.png

Then change the layer to 'Documentation' using the 'Change Layer' option or the shortcut 'L'.

blobid23_fed4caddb966ee399081a3a91ab5e17bcbf72786.png

repeat for the four mounting holes and save the footprint.

You are now ready to create the component.

Step 3. Create the LCD component.

In the Library Manager open the 'Components' tab and click the 'Wizard' button. Step through the wizard completing each form.

Select a 'normal' component, this will have a schematic and footprint symbol.

Complete the component details window.

blobid24_97992da0047d8bf67a9e49c138f9a67acb46ca59.png

Add the part number used by the BOM, a descriptive component name to easily identify in the library, define the package as 'User' as it is nonstandard and select or provide a reference designator.

Define the part as 16 pins and the number of gates as one as there are no duplicate entities.

We next select our schematic component from the list which will be all symbols that match the pin count from the selected library. Locate your schematic symbol in the library.

blobid25_d822d34809990c14f0d511603092d89b2c30b60f.png

Then we select the appropriate PCB symbol.

blobid26_3c2a00e63ce2f3ef3a324bfbb0efc3e1b7d7c666.png

Now the symbols are brought together by mapping the schematic symbol pins to the footprint pins, click the 'Assign 1:1' for this part.

blobid27_31bd5322434f690feb65919f927fa6ae765faea5.png

and finally click the 'Finish' button with the check boxes ticked.

blobid28_ac2ace9e6b4a120bef9076db59724157e75fd471.png

In the component editor that opens we can assign pin names.

blobid29_b2eeda6da5c031a63fe5ef002eba2cdb08e09695.png

Now save the component and it is ready to use from the library in your schematic and PCB designs.

Further improvements to both the schematic and PCB symbols can be made as required, such as having a true 16x2 character layout for the schematic and adding the actual positions of the LCD characters on the PCB footprint as may be required to align with an enclosure cut-out.

RS DesignSpark is the go-to platform for students, makers, hobbyists and professional design engineers, providing design resources such as the award winning DesignSpark PCB and DesignSpark Mechanical CAD software. Join the community today at https://www.rs-online.com/designspark/register