Make/Modify a Component in Proteus (2D Graphics)

In this article, a user-friendly feature in the Proteus software is presented, which is the Make Device. For this purpose, 2D Graphics mode of the software is used. In this article, existing components are selected and their schematic view is modified. By using the 2D graphics mode, one can design various blocks that are useful for presenting their prototypes. By using this mode, the colour, shape, size and text related to the component can be modified. This makes the presentation more attractive and perceivable. Some of the possible modifications are explained step-by-step in the following examples,

  • Modifying the view of a Relay
  • Editing an IC or a Microcontroller
  • Creating UART Modules by modifying the COMPORT

Modifying the view of a Relay

Let’s begin with a simple component, the Relay. In this example, the shape and the orientation of the component are modified. A basic relay contains a coil and an SPDT switch. Now, the position of the coil and the switch are modified in this example. The expected view is shown below and the below procedure explains how to transform from the actual view to the expected view.

Actual and expected views of a relay
Actual and expected views of a relay

 

Step1: Select the component from pick devices tab.

 

Selection of component-Relay
Selection of component-Relay

 

Step2: Place the component on the worksheet. Right-Click the component and then select the ‘Decompose’ option from the Right-Click Menu.

 

Decompose the Component
Decompose the Component – Relay

 

Now, the individual segments or parts of the component get decomposed. So, these parts are now movable or editable. Select the individual parts and drag them to get the expected view.

Step3: Select all the parts of the expected view. Right-click the selected part and then select the ‘Make device’ option from the Right-click Menu.

 

Make Device
Make Device

 

Step4: Through a series of options the name of the component, Index and other reference parameters can be edited or left unchanged. After this step, the component is created in the library and can be used a regular component by placing it in the workspace. The decomposed component can be deleted.

Now, let’s verify whether the modified component works similar to the default component or not. Below is the simulation video that compares the operation of modified and default components. The procedure to modify the component is also shown.

Verification and Modifying the View of Relay – Video Demo

 

Editing an IC or a Microcontroller

In the previous example, we have seen the basic modifications like changing the shape through drag and drop option and changing component properties like the voltage. Now, let’s go to next level of modification. In this example, a microcontroller is modified. We can convert the existing microcontroller into a development board. The colours, shapes, pins/terminals layout can be changed. The actual and expected views are shown below. The component is modified such that it looks like a development board in DIP view.

Actual and Expected Views of Microcontroller
Actual and Expected Views of Microcontroller

 

Step1: Select the component from pick devices tab.

Selection of Component - ATmega8
Selection of Component – ATmega8

 

Step2: Place the component on the worksheet. Right-Click the component and then select the ‘Decompose’ option from the Right-Click Menu.

Decompose the Component - Microcontroller
Decompose the Component – Microcontroller

 

Now, the actual component is split into basic parts. It is the combination of several pins/terminals and a rectangular block. The component properties are displayed after decomposing the component.

The pin orientation can be modified by mirror option in its Right-Click Menu. Select the pin to be modified or shifted from one side of the rectangular block to the other side, then Right-Click and select X-Mirror option. Below is the procedure to ‘mirror’ the pin/part in X-direction.

Mirroring the Part or Component
Mirroring the Part or Component

 

There are some hidden pins like Vcc and GND. If desired, these pins can be shown along with other components. Double-Click the hidden pin and edit the properties as desired. The Pin number, name, their orientations etc.., properties can be modified.

Editing the Properties of Pin
Editing the Properties of Pin

 

Now, drag the pins according to the expected view i.e.., the DIP View. The rectangular block can be resized and the colour of the block also can be changed. Double-Click on the borderline of the block and a pop window containing properties of the block is displayed. The border line can be modified in the line attributes like the Line style, Width of the line and the colour of the line can be changed. The block can be edited in the ‘fill attributes’. For this purpose the ‘Follow Global’ option need to be Unselected and then editing will be allowed.

Editing Properties of Block
Editing Properties of Block

 

These properties are not only useful while modifying the components but also used to create customized blocks which may or may not be components.

The pin names can be hidden and desired names can be assigned using 2D-Graphics Text mode. This is useful when we are changing the colour of the block and a contrast colour for the text is required. The pin names can be hidden from the pin properties as discussed earlier. The ‘Draw Body’ option of the pin should be selected or otherwise, this pin will be hidden.

Hiding Pin Properties
Hiding Pin Properties

 

Now, by using 2D-Graphics Text Mode, the pin names can be written in the desired style, colour and font etc.., Unselect the Follow Global option whenever required. Similarly, write the Pin numbers as shown below. Make sure that, the pin numbers a placed at the edge of the pins because during the simulation the State of the pin is graphically indicated beside the pin name and immediately out of the box.

Writing Pin Names and Pin Numbers
Writing Pin Names and Pin Numbers

 

Step3: Select all the parts of the expected view along with all the component properties. Right-Click the selected part and then select the ‘Make device’ option from the Right-click Menu.

 

Make Device - Microcontroller
Make Device – Microcontroller

 

Step4: The name of the component can be changed to a desired one. Do not change the design related files in any of the steps, which may lead to malfunctioning of the component.

Now, let’s verify whether the modified component works similar to the default component or not. Below is the simulation that video compares the operation of modified and default component. Same program code is loaded in the microcontrollers which blink the PORTD for every 500mS.

Verifying the Modified Microcontroller – Video Demo

 

Creating UART Modules-Modifying the COMPORT

The Proteus software has an option to interface with external modules in real-time through the COMPIM (Comport Physical Interface Module) component. Its default view is a DB9-Pin Serial Port connector. This component makes it possible to connect various UART Modules like GSM, GPS, Wi-Fi etc.., in real-time with the circuit designed in the worksheet. So, to make the circuit more comprehensible, let’s modify the view of this component. The actual and expected views are shown below,

Actual and Expected Views of COMPORT
Actual and Expected Views of COMPORT

 

Step1: Select and place the COMPIM component on the Sheet/Workspace.

Selection of COMPORT Component
Selection of COMPORT Component

 

Step2: Right-Click on the component and select ‘Decompose’ from the Right-Click Menu.

Decompose the COMPORT Component
Decompose the COMPORT Component

 

The expected view is similar to the real-time modules like the GSM Module etc.., which contain TX, RX and GND Pins in common excluding the Power supply terminals. As the serial port has Flow control terminals in addition to the previously mentioned pins, we can remove the unwanted pins.

 

Removing Unwanted Pins
Removing Unwanted Pins

 

The connector shape can be made invisible either by removing the block or by placing a desired shape over the connector, but the pins shouldn’t be covered. Every unwanted part like the lines or circles can be deleted. ‘Any component in the worksheet can be deleted by Double Right-Click on the component or part’.

Hiding the Pin Name and Number
Hiding the Pin Name and Number

 

The actual circuit connections are such that, the TX, RX pins of the microcontroller are connected to the TX, RX pins of the COMPORT respectively. But, the schematic view or in the circuit diagram, the TX and RX pins of the microcontroller and the module are cross-connected. So, we have to write 2D-Text for the TX and RX pins of the COMPORT as RX and TX respectively.

Adding 2D Graphics Text to the Pins
Adding 2D Graphics Text to the Pins

 

The modules have the Ground Pin that should be connected to the circuit ground. In the software, it is not necessary as they are programmed. But to show them in the circuit diagram, we can add a new pin for Ground. The pins mode is used for this purpose.

Adding Ground Pin to Module
Adding Ground Pin to Module

 

Place the pin on the workspace. The edge of the pin that has the cross symbol indicates that it should be connected to the external components in the circuit diagram. Edit the properties of the Pin such that, name and number are hidden.

Adding 2D Graphics Text to the GND Pin
Adding 2D Graphics Text to the GND Pin

 

Additional text or blocks can be added to enhance the view of the module like the antenna and Power supply block from the 2D-Graphics Box mode.

Step3: Select all the parts of the expected view. Right-click and select ‘Make device’ from the Right-click Menu.

Make Device - COMPORT
Make Device – COMPORT

 

Step4: Through a series of options, the name of the component, Index and other reference parameters can be edited or left unchanged. After this step, the component is created in the library and can be used a regular component by placing it in the workspace. The decomposed component can be deleted. Let’s check whether this component is shown in the Devices.

Finding the Modified Component
Finding the Modified Component

 

The properties of the component are left unchanged. So, the selection of Port parameters is same as that of the default component. Let’s connect a module and verify it in real-time. For this purpose, a GSM Module is connected to the computer through a USB-Serial converter. The port number of this converter is obtained from the ‘Devices and Printers’. The port parameters in the component are set as shown below.

Verifying the Modified COMPORT – Video Demo

 

Author

Comments are closed.