Lab 3
Lab 3
Lab 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 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:
Block Diagram:
Simulation Results:
Hardware Results:
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.