Lab 3

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

LAB REPORT # 3

Title:
Interfacing seven-segment display and D.C motor with myRIO

OBJECTIVE:
The main objective of this lab is to operate seven segment display and DC motor with the help
of myRIO.

Seven Segment Display:


A 7-segment display is an electronic device that can be used for displaying numerals and some
letters. Different letters/numbers can be represented by connecting different pins on the display to
the battery, which turns on the LEDs in parallel. This activity introduces how to use a 7-segment
display using only a battery, a breadboard, a resistor, and some wires.

Seven segment displays are commonly used in many electrical applications, including alarm clocks,
timers, and scales. In this tutorial, you will learn how to use your own 7-segment displays!
DC Motor:
DC motors are rarely utilized in normal applications as a result of all electrical supply firms furnish
electrical energy but, for special applications like in steel mills, mines and electric traction, it's
advantageous to convert AC into DC so as to use DC motors. The rationale is that speed/torque
characteristics of DC motors are much more superior thereto of AC motors. Therefore, it's not
stunning to notice that for industrial drives, DC motors are as common as 3-phase induction
motors. Similar to DC generators, DC motors are also classified into 3 kinds; they are series-
wound, shunt-wound and compound- wound. The employment of a specific motor depends upon
the mechanical load it's to drive.
TASK#1 Interfacing MyRio with seven segment display:
First of all, in this task we will connect My Rio with the LABVIEW. Then in the VI an array will
be selected and push buttons are added in this array for controlling the display of numbers.
For active low, we will use not gate before adding the index array. Then with the digital out
we will select the pin of MyRio which will be connected with pins of seven segment display.

With seven segment display, for active low we will make both the common anode pins as
short and then connect them with a 220 Ω resistor. The other end of the resistor will be
connected with pin 33 of MyRio.
Circuit Diagram:
For 0:

For 1:
For 2:

For 3:
For 4:

For 5:

For 6:
For 7:

For 8:

For 9:
Post lab task:

Task 2: Interfacing MyRio with seven segment display


Interface seven-segment display with myRIO and automatically change the displayed
number

Block Diagram:

Simulation Results:
Hardware Results:

TASK#3 Interfacing DC motor with MyRio:


In this task we have interfaced DC motor with MyRio. This DC brushed motor has the:
Operating voltage= 1.5-4.5V

Nominal Voltage= 3.0 V

Rpms=12800 at no load (at that time it gives 0.32 A)

Max efficiency at 10,000 rpms (at this it gives 1.28A)

We will connect MyRio with LABVIEW. Then we will take digital output in the VI. When we
will run it then the motor that is interfaced with it will start with it. For circuit on
breadboard we will use IRF510 Power MOSFET, ZVP210 and ZVN210. We will connect these
with each other and also with motor and then we will provide them supply voltage and
ground them also.

Circuit Diagram:
Simulation:

Hardware Results:

CONCLUSION:
In this lab we have learned how to interface seven-segment display with my myRIO
and how to change the digit appearing on it using labVIEW. We have also learned how to
interface a simple DC motor with myRIO. We have also learned how to change the speed of
a DC motor using Pulse Width Modulation (PWM) from myRIO to the input of the DC motor.

You might also like