Vous êtes sur la page 1sur 2

LABVIEW INTRODUCTION AND VIRTUAL INSTRUMENT II

Yusrinourdi Muhammad Zuchruf (081611733050)


Dosen : Akif Rahmatilah, S. T, M. T
Tanggal Percobaan: 12/03/2019
Biomedical Instrument Practical
Biomedical Instrument Laboratory – Faculty of Sains and Technology UNAIR

Abstract Microcontroller based PWM applications are


This experiment aims to learn simple instruments using LabVIEW usually in the form of DC motor speed control,
and acquire LINX-based data. The experiment was done by making Servo Motor control, LED bright flame settings.
a sequence which was then connected with LabVIEW using a PWM signals generally have a fixed amplitude
microcontroller. So that the results obtained are the greater the input and basic frequency, but have varying pulse
voltage will increase widths. PWM Pulse Width is directly
Key Word: Intrumen, LINX, Mikrokontroller proportional to the amplitude of the original
signal that has not been modulated. That is, the
1. INTRODUCTION PWM signal has a fixed wave frequency but the
Lighting technology is now experiencing very rapid duty cycle varies (between 0% to 100%)
development. One of them is energy saving lamps,
namely LED. LED or Light Emitting Diode is a diode that b. Arduino
can emit light when receiving forward bias. Arduino UNO is a microcontroller board based
However in some lighting conditions, the intensity on ATmega328. Arduino UNO has 14 digital
of the emitted lamp is too large than needed. So that it is input / output pins (6 of which can be used as
necessary to set the light intensity that can be adjusted as PWM output), 6 analog inputs, a 16 MHz Crystal
desired. With the Pulse Width Modulation (PWM)
oscillator, a USB connection, a power jack, an
method that uses a microcontroller, this can be achieved.
ICSP header, and a reset button. Arduino UNO
2. STUDY LITERATURE contains everything needed to support a
microcontroller, easily connects it to a computer
a. Pulse Width Modulation (PWM) with a USB cable or supplies it with an AC
Pulse Width Modulation (PWM) is generally a adapter to DC or uses a battery to get it started.
way of manipulating the signal width expressed
by pulses in a period, to obtain different mean
stresses. PWM is a technique for getting analog
signals from a digital device. Some examples of
applications are modulating data for
telecommunications, controlling power or
voltage entering the load, voltage regulator,
audio effect and reinforcement, and other
applications.

c. LabVIEW
LabVIEW (short for Laboratory Virtual
Instrumentation Engineering Workbench) is a
platform and development environment for the
visual programming language of National
Instruments. The graphic language is named "G".
Initially released for Apple Macintosh in 1986,
LabVIEW is usually used for data acquisition,
instrument control, and industrial automation on
various platforms including Microsoft Windows, 4. ANALISYS
various flavors of UNIX, Linux, and Mac OS X In this experiment make a system where the LED will
get brighter when the duty cycle gets higher, so that
between the led and photodiode are the opposite. The
experiment was carried out by first assembling the
required components on the breadboard, then connected
with Arduino. As explained in the methodology, the
photodiode sensor is connected with analog in A0 and 5V
input. because the sensor is the input of this instrument,
and the signal is an analog signal, it reads the brightest of
the sensors. Then the LED foot is connected to the
ground, the other leg is connected to the resistor
connected to the digital PWM. Digital PWM manipulates
digital output in such a way as analog output. One of the
advantages of Arduino is that it can send high and low to
activate or deactivate something, so that with this PWM
it can make the state of life and death smoother. And
because the life and death of the LED occurs because it
depends on the intensity received by the photodiode
sensor.
Then after the circuit in the breadboard is finished,
then continue by making the source code in the LabVIEW
diagram block. First connect Arduino with LabVIEW. To
3. METHODOLOGY connect Arduino, NI-Visa is required to open serial
In this experiment using the following tools and communication on LabVIEW, so after that it can be
materials: chosen which port is used to connect the Arduino. The
program code is made almost similar to the Arduino
- Program LabVIEW circuit, adding an analog read channel that is adapted to
- Arduino Uno Arduino which is on channel 1 where the input is from
the photodiode sensor. The input from the photodiode is
- Resistor 220 Ω divided by 5, the result of the distribution is reduced 1.
- LED The results of the operation are given an absolute sign so
the results obtained will always be positive, if there is a
- Photodiode voltage read by analog read, the result of the voltage
Practical procedure: issued by digital pin 3 Arduino will have a value from the
inverse voltage read by Arduino analog pin 0.
Arrange the circuit as shown. 2 and connect with
Arduino UNO Data results obtained by giving photodiode light or
not so that it will affect the intensity of the LED. The value
of the PWM displayed on the Front Panel has gone
through the multiplication result of 100 (the duty cycle
Connect Arduino to PC and integrate Arduino percentage).
with LabVIEW program using LINX tools
(Tools> MakerHub> LINX> LINX Firmware 5. CONCLUTION
Wizard)
By using an Arduino device and other components
arranged in such a way and LabVIEW software can create
PWM control simulations. The Arduino input is 5V and
the output will be displayed 0-5V. The voltage read by the
photoresistor will affect the PWM value in reverse so that
Create a setup program for one channel PWM when the voltage read the sensor is high then the PWM
in LabVIEW (%) is low and the LED will dim.

REFERENCE
[1] Hans Petter Halvorsen, Introduction to LabVIEW,
Run the program and adjust the intensity of the Telemark University College, Norwegian, 2014.
LED by adjusting the lighting intensity on the
photodiode [2] Tim Dosen Teknobiomedik, Pedoman Pratikum
Instrumentasi Biomedis, FST - Univesitas Airlangga,
Surabaya, 2018.

Vous aimerez peut-être aussi