Project PC
Project PC
College of Engineering
Department of Mechatronics
Project
Servo Motor Position Control and Monitor
By:
Ali Adnan Aya Faris
Objective
This project aims to design and implement a system to control the
positions of three servo motors using LabVIEW for real-time operation
and monitoring. The system provides precise control of each motor's
position through a simple and visual software interface.
Project Parts
Number To Decimal String Function : Converts number to a string of
decimal digits at least width characters wide or wider if necessary. If
number is floating-point or fixed-point, it is rounded to a 64-bit integer
before conversion.
VISA Write Function : Writes the data from write buffer to the device
or interface specified by VISA resource name.
VISA Close Function : Closes a device session or event object specified
by VISA resource name.
Wait (ms) Function : Waits the specified number of milliseconds and
returns the value of the millisecond timer. Wiring a value of 0 to the
milliseconds to wait input forces the current thread to yield control of
the CPU.
This function makes asynchronous system calls, but the nodes
themselves function synchronously. Therefore, it does not complete
execution until the specified time has elapsed.
VISA Configure Serial Port VI : Initializes the serial port specified by
VISA resource name to the specified settings. Wire data to the VISA
resource name input to determine the polymorphic instance to use or
manually select the instance.
While Loop: Repeats the sub diagram inside it until the conditional
terminal, an input terminal, receives a particular Boolean value. The
Boolean value depends on the continuation behavior of the While Loop.
Right-click the conditional terminal and select Stop if True or Continue
if True from the shortcut menu. You also can wire an error cluster to the
conditional terminal, right-click the terminal, and select Stop on Error or
Continue while Error from the shortcut menu. The While Loop always
executes at least once.
Servo Motor: A servo motor is a type of motor used to move things
accurately. It can move a specific part to a set angle, like moving a robot
arm or steering a wheel in model airplanes. The servo works by
receiving an electrical signal from a controller, then moves to the desired
angle. It is known for its ability to control movement with high precision
and maintain its position for a long time. It is widely used in robots and
devices that require precise movement.
Arduino: Arduino is a programmable electronic circuit board used in
electronic projects. It contains a small processor that can be programmed
using a special software on a computer, and it can be connected to a
variety of devices such as sensors, lights, and motors. Using Arduino,
the user can control these devices and perform specific tasks based on
the programming they write.
Block Diagram
Front Panel