You are on page 1of 13

INSTRUMENT INDUSTRI

PRACTICUM REPORT

Class : 3C – Elektronika

Name/NIM : Dede Abdul Rohman/211354007

Experiment Number :2

No/Practicum Module Name : 2/KOMUNIKASI SERIAL

Practicum Date : 29 August 2023

Reporting Date : 2 September 2023

D4 ELECTRONIC ENGINEERING STUDY PROGRAM


BANDUNG STATE POLYTECHNIC
5rd Semester
2023
1. Practical Objectives
The aims of this practicum are:
1. Recognize and study serial communication in data transfer on Instrument system.
2. Create a simple simulation program for serial communication with using
ARDUINO on PROTEUS and virtual terminals.
3. Create a simple simulation program for serial communication on the system
instrumentation (sensors, processors and actuators) using ARDUINO on
PROTEUS and virtual terminal.

2. Tools and Materials


The tools and materials used in the practicum are :
Table 1. Tools and Materials
No. Component Name Spesification Quantity Description
1 PROTEUS - 1 Software
ARDUINO LIBRARY for
2 - 1 Software
PROTEUS
3 ARDUINO IDE - 1 Software
4 PC/LAPTOP - 1 Hardware
Virtual Serial Port
5 - 1 Software
Emulator(VSPE/VSPD)
6 Hyperterminal - 1 Software

3. TASK
a. Building a suite of three sensors (LDR, LM35, DHT11), and data acquisition
from The sensor and display it on the hyperterminal under the following
conditions:
- If the sensor used is an analog sensor, use analog input pins. If
Sensors used digital sensors, use digital pins.
- To each sensor add the following words:
• Data Sensor LDR :xxxx
• Data sensor LM35 :yyyy
• Data sensor DHT11 :zzzz
Note: The values of 'xxxx', 'yyyy' and 'zzzz' are the result of data
acquisition sensor.

Answer:
Sensor LDR =>> Analog 0
Sensor LM35 =>> Analog 1
Sensor DHT11=>> Digital 2
In figure 3.1 the three sensors namely LDR, LM35 and Paired with Arduino
according to the above, these three sensors send data to Arduino and displayed on
the virtual terminal, Arduino also sends the data through COMPIM and will be
displayed on Hyperterminal.
In figure 3.2 it is the program for the circuit contained in figure 3.1

Figure 3. 1 Acquisition Data


Figure 3. 2 Program
b. Create a suite of instrumentation systems consisting of temperature sensors
(type censorship free). If the upper limit temperature value is 80 oC then FAN
will be ON (Heater / Oven OFF) and if the lower limit temperature value is 25
oC then the heater will ON (FAN OFF). The criteria are as follows:
- Plant (actuator) namely FAN and Heater / Oven are on pins 5 and 6
- The input (sensor) is on pin A0.
- For the oC value at temperature, adjust it to the PWM value.
Answer:
LM35 =>> Analog 0
FAN =>> Digital 4
HEATER =>> Digital 5

In the picture below from 3.3 – 3.5 is the result of the temperature control
system, in figure 3.3 when the temperature is below 25 ° C then HEATER ON
&; FAN OFF, in figure 3.4 when the temperature is between 25 ° C and 80 ° C
then HEATER OFF &; FAN OFF, in figure 3.5 when the temperature is above
80 ° C then HEATER OFF &; FAN ON.
From all the provisions above, all data is sent from analog 0 from the LM35
reading, then Arduino sends via COMPIM and will be read on the
hyperterminal.

Figure 3. 3 Temperature x<25


Figure 3. 4 Temperature 25<x<80

Figure 3. 5 Temperature x>80


4. QUESTION
A. What do you understand from module 2?
Answer:
In module two, knowing that Arduino can communicate serially using VSPE and
Hyperterminal, to be able to communicate on Arduino in the COMPIM input
proteus simulation and must set the configuration of the COMPIN as in the
jobsheet, after that open VSPE and pair between COM according to the selected.
Then also open HyperTerminal and configure it according to what was selected
earlier. Then run proteus assuming you have entered the HEX file as in module 1.
Then Arduino can already do serial communication
B. Implement the knowledge you gained in module 2 by Create an instrumentation
system consisting of sensor elements (minimum 3 types of sensors), processing
elements (ARDUINO), actuator elements (at least 3 types of actuators) and display
the data obtained from each sensor on the hyperterminal ?
Answer:
This time I will create an instrumentation system for controlling water levels with
the following conditions:
• Sensor: Ultrasonic, LM35, DHT11
• Actuators: pump, red led, green led, and buzzer
• The range of the tank is 10cm-100cm
• if the water is <20cm then the pump is on, and the green light is on, and the
serial monitor says pump on
• if the water = 100cm then the pump turns off, and the green light turns off,
and the serial monitor says pump off
• if the water temperature is >100 oC then the red light is on and the serial
monitor says Hot Temperature
• if the water temperature is <100 oC then the red light turns off and the serial
monitor says Normal Temperature
• if the tank humidity is below 80% then the buzzer goes off and the serial
monitor says system is on
• if the tank humidity is >=80% then the buzzer is on and the serial monitor
says the system is off and turns off all actuators.

Figure 4. 1 Simulation-1
Figure 4. 2 Simulation-2

Figure 4. 3 Simulation-3
Figure 4. 4 Simulation-4
Figure 4. 5 Program1.1
Figure 4. 6 Program1.2

Note:

All the data on the sensors that are read will be sent to the Arduino and the
Arduino and displayed on the virtual terminal, the data from the Arduino is also
sent to the hyperterminal via VSPE by pairing the COM on COMPIM and the COM
on the Hyperterminal, so the Hyperterminal can also see the data contained in
Arduino
5. ANALYSIS
In this serial communication practicum, you must pay attention to the
configuration of the COM used, the wiring used and the program. To configure the
COM, adjust it to what is on the job sheet. If there is an error in this then the next step
is an error. For the COM configuration, it includes COMPIM. and Hyperterminal, then
to connect using an external application, namely VSPE. The VSPE is for the pairing
used between COMPIM and Hyperterminal.
In terms of wiring, don't reverse the rx and tx because if it's wrong then the data
won't be sent to Hyperterminal, and lastly, in the program, don't get the syntax or coding
wrong because if it's wrong then it won't run.

6. CONCLUTION
• Arduino on proteus can perform serial communication using VSPE, COMPIM
and Hyperterminal applications
• To perform serial communication on Proteus, the configuration of each COM
must be considered and must be filled in correctly
• Make sure the COM used is correct and there are no errors on the computer so
that the simulation runs smoothly

You might also like