Sunteți pe pagina 1din 10

Control System Design Project

TER3M Final Evaluation


Ravkiran & Saksham - January 20, 2017

FINAL EVALUATION- RAVKIRAN & SAKSHAM

Introduction
For our Control System Design Project we used National Instruments myDaq
integrated with myStem Board and LabView. NI myDAQ provides analog input (AI), analog
output (AO), digital input and output (DIO), audio, power supplies, and digital multimeter
(DMM) functions in a compact USB device. Integrated circuits supplied by Texas Instruments
form the power and analog I/O subsystems of NI myDAQ. The NI myDaq kit contains NI
myDAQ Student Instrumentation Device, NI myDAQ Software Suite DVD, USB Cable,
Screw-Terminal Connector, Digital Multimeter (DMM) Probes, 3.5 mm Audio Cable and a NI
Screwdriver. After you install the NI myDAQ software Suite DVD in the computer now you
can do the hardware setup. For the hardware setup, you are supposed to connect one end of
the USB cable to your NI myDAQ and the other end to the computer. Also make sure the
Blue LED lights up, which indicates that the myDAQ is being powered. The windows will
take few minutes or seconds depending on the CPU power to install the driver for myDaq
but after that you can continue with the setup and install LabView and additional programs.
Such as Digital Multi-Meter (DMM) or Digital Writer to help you through the process of
checking connect with the device and with myStem Board. Figure 1.0 depicts the
arrangement and function of the NI myDAQ subsystems.

FINAL EVALUATION- RAVKIRAN & SAKSHAM

Analog Input (AI)


There are two analog input channels on NI myDAQ. These channels can be configured
either as general-purpose high-impedance differential voltage input or audio input. The
analog inputs are multiplexed, meaning a single analog-to-digital converter (ADC) is used to
sample both channels. In general-purpose mode, you can measure up to 10 V signals. In
audio mode, the two channels represent left and right stereo line level inputs. Analog inputs
can be measured at up to 200 kS/s per channel, so they are useful for waveform acquisition.
Analog inputs are used in the NI ELVISmx Oscilloscope, Dynamic Signal Analyzer, and Bode
Analyzer instruments.

Analog Output (AO)


There are two analog output channels on NI myDAQ. These channels can be configured
as either general-purpose voltage output or audio output. Both channels have a dedicated
digital-to-analog converter (DAC), so they can update simultaneously. In general-purpose
mode, you can generate up to 10 V signals. In audio mode, the two channels represent left
and right stereo outputs.
Analog outputs can be updated at up to 200 kS/s per channel, making them useful for
waveform generation. Analog outputs are used in the NI ELVISmx Function Generator,
Arbitrary Waveform Generator, and Bode Analyzer instruments.

Digital Input/Output (DIO)


In addition to the Analog ports there are eight DIO lines on NI myDAQ. Each line is a
Programmable Function Interface (PFI), meaning that it can be configured as a generalpurpose software-timed digital input or output, or it can act as a special function input or
output for a digital counter.

FINAL EVALUATION- RAVKIRAN & SAKSHAM

LabView
One key component in getting started with the NI myDaq is LabVIEW. LabView is an
integrated development environment designed specifically for engineers and scientists
building measurement and control systems. With a native graphical programming language,
built-in IP for data analysis and signal processing, and an open architecture that enables
integration of any hardware device and any software approach, LabVIEW is the software you
need to build the optimal solution that can meet your custom requirements and solve the
challenges at hand.

myStem Board
The Studica mySTEM Project Board for myDAQ is an essential tool for the introduction
of control systems. It is ideal for teaching and learning science, technology, engineering, and
mathematics (STEM). The mySTEM Project Board features learning resources that any
beginner in the STEM field can use to gather data, make decisions, and control output
devices. Students can use the board to control the state and direction of four output channels
that support a wide range of field devices.

System Designs
1. Stair Case Lighting with a Fan
-

This system design basically represents a light which

can be used as a Stair Case or Street light. This design is for


the FisherTechnik kit. You can get all the parts and start
building it on the black base board (Provided in the kit).
-

As you can see in the pictures, we started off with

putting the two (2) switches on both sides of the board,


leaving some space in the middle.
-

We then made a tower in the middle with a LED

connected to it. Also we connected a fan with the LED. The


basic design was to light up the LED when the switch is
turned on. However, we gave it our personally touch my

FINAL EVALUATION- RAVKIRAN & SAKSHAM

adding in the motor using it as a fan.


-

Then we wired the switches with the LED and also dedicated a single switch for the

fan. This reticular design did not needed any assistance from LabView and StemBoard, So
we used MyDAQ as the power supply for the whole system. In the picture when the left
switch is turned on the Fan powers up and when the right switched is pressed it powers up
the LED.

2. Traffic Light Control


-The

main idea for this system is similar

to the Stair Case Lighting System. We


used the FisherTechnik kit to build a
Traffic Light Control which is operated
by a motor and 2 different LEDs (one
red and one green).
-We

started with putting switches on the

board and then added a tower with 2


LEDs on it (red and green). Which were
connected with the switches and the
gears.
-All

these things were connected

through wires, and was also connected with the MyDAQ which was the power supply for
the control system. When the gears move the switch turns either the red light or green light
ON. This system is related to traffic street lights. Each of the colours (Green,Yellow,Red) are
timed controlled. What that means is the green light will stay green for a certain amount of
time then it will switch to yellow and then red. In real life situation their are many
additional sensors that detect the amount of cars and changes the lights based on that,
making sure that their are no traffic jams. Our system also represents the same idea. When
one LED is ON the other one stays of and vice versa.
-

The switch is used as a main power breaker. When turned on it power ups the motor

which activates the gears.

FINAL EVALUATION- RAVKIRAN & SAKSHAM

~ Traffic Light Control System Circuit Diagram

3. Alarm System
-

Again, all the parts for the alarm system are from the FisherTechnik kit. However, in

this project we have used LabView, myStem Board and myDaq.


-

First using the building material, we made a small house with a door to represent

how home security system works or alarm sounds when the door opens. Then we used
two (2) LEDs to represent whether the Security system is armed or disarmed. Red LED
lights up when the alarm is armed and activates the door sensors and buzzers. Now while
the alarm is armed if the door opens, it sounds the alarm.
-

However when the alarm is not armed, Green LED lights up and the door can be

upend as many times as you want without activating the alarm.


-

We used myStem Board to wire each element of the alarm system with the myDaq,

making it easier to control each element individually.


-

After wiring myStemBoard, we used LabView to write our code which activates and

deactivates the Alarm System.

FINAL EVALUATION- RAVKIRAN & SAKSHAM

~ Alarm System System LabView Program

4. Temperature Converter
-

To extend the understanding of LabView we made a Temperature Convert which

converts the Temperature from Fahrenheit into Celsius using LabView.


-

In this Program, their is a Toggle Switch, Boolean Indicator, 2 Displays (one fore

temperature in Fahrenheit and one fore temperature in Celsius) and a stop button to
terminate the program.
-

First we use the toggle switch to tell the program whether we want to convert the

temperature to Celsius or not. If we turn the switch on, the green indicator lights up.
-

Now we can use the slider on the left (light blue colour) to enter the amount of

Temperature in Fahrenheit and will can see the results on the right side (red thermometer).
If we keep the toggle switch on OFF then the Thermometer will show the temperature in
Fahrenheit. It wont convert the temperature.
-

in addition to that, we have a 100 millisecond break inner program which improves

the efficiency and the performance of both the CPU and the program.

FINAL EVALUATION- RAVKIRAN & SAKSHAM

~ When the Toggle Switch is ON

~ When the Toggle Switch is OFF

~ Temperature Converter LabView Program

FINAL EVALUATION- RAVKIRAN & SAKSHAM

5. LabView Calculator
-

At last, we used LabView to make a Calculator that can Add, Subtract, Multiply and

Divide at the same time with one click on the google switch.
-

Basically, it woks exactly like a normal calculator. However, in this particular

calculator their are two (2) displays. One at the top and one at the bottom. The toggle
switches represent Addition, Subtraction and Multiplication respectively. But, when the
user wants to divide a function they will have to turn both addition and subtraction toggle
switches on and they will get that result on the second display (the one at the bottom of
the calculator)

~ Calculator
FINAL EVALUATION- RAVKIRAN & SAKSHAM

~ LabView Calculator Program

FINAL EVALUATION- RAVKIRAN & SAKSHAM

10

S-ar putea să vă placă și