Professional Documents
Culture Documents
Lab Repport 2 Haba (CCS)
Lab Repport 2 Haba (CCS)
Lab report 2
Presented by :
M. HABA Jules Alexandre
EE 300-0011/2023
Table of content
Page 2/15
HABA Jules Alexandre PUE 3140 2023-2024
List of Figures
List of tables
Page 3/15
HABA Jules Alexandre PUE 3140 2023-2024
Experiment title
As part of the practical application of our theoretical knowledge in the advanced embedded
systems design course, this report is the result of our second laboratory experience. This
document presents the development of two laboratory experiments: the first consists in using
a DC motor, a MOSFET and an MSP430FR5969 and the second consists in using an AC
load, a relay and an MSP430FR5969.
Page 4/15
HABA Jules Alexandre PUE 3140 2023-2024
Aim
Page 5/15
HABA Jules Alexandre PUE 3140 2023-2024
Introduction
Laboratory work is the means allowing us to master the know-how in laboratories. In this lab
text we will begin by asking the following questions:
In the rest of our work, we will answer the questions posed above step by step.
Task 1 : a DC motor, a MOSFET, a testing board, the wires for establishing connexion
between the device, a power supply which can gives 12 v as supply voltage, and a
MSP430FR5969 microcontoler for executing our program
Task 2 : we also need here a light which can take 110 V as supply voltage, a
MSP430FR5969 microcontroler for executing our program, a testing board, a
switching device having those characteristics : Switching device: Fotek SSR-50DA –
solid state relay module and AC socket which can give 110 as a power supply.
2- Results
Page 6/15
HABA Jules Alexandre PUE 3140 2023-2024
The program written in assembly language we needed for doing our task
The practical result taken as picture into the lab
3- Practical task 1
In this part we are going to design and implementation of an interface circuit to turn on and
off a DC motor using MOSFET, we need first to give some information concerning to DC
motor and MOSFET characteristics, then to give the circuit we are going to implement.
3.1- DC motor
ZYTD520 is a type of DC motor commonly used in various applications. Here is some useful
information about the engine:
Characteristic Detail
Voltages 12 V
Speed 5000 r/min
Some application Robotics, automation system, electric vehicules
Here we are going to show the image of the DC motor which has the following characteristic:
Figure 1 : DC motor
3.2- MOSFET
Page 7/15
HABA Jules Alexandre PUE 3140 2023-2024
varying the voltage. MOSFET have three main terminals: Source, Drain, Gate. Let’s see
below the images of the transistors.
Figure 2: mosfet
For doing this circuit we needed livewire software, this circuit contain DC motor having two
terminals, and then we have one MOSFET having three terminals: source, drain and gate,
source, next we can also find the ground, the pin and the direct current supply.
Here we need the program which can blink LED for doing our task, we have used that
program in the first lab, we need to copy and paste, the small deference will be to conform the
pin we are going to use in this case into the program.
Page 8/15
HABA Jules Alexandre PUE 3140 2023-2024
Here we are going to show us the picture provides into the result of our work into the lab, let’s
looking at that picture below.
In conclusion, we can say the implementation showed us the utilities of MOSFET, the
MOSFET can help us to vary the supply voltage value going throw into the DC motor. If we
increase the supply voltage value, the speed of the DC motor can increase also and when we
decrease the supply voltage, the speed of the DC motor decrease.
Page 9/15
HABA Jules Alexandre PUE 3140 2023-2024
4- Practical task 2
Here we will design and implement an interface circuit to drive an 11O v AC load using a
switching device with this parameter: Fotek SSR-50DA - Solid State Relay Module. The
objective of this experiment is to make an alternating current lamp flash.
4.1- Requirements
4.1.2- AC load
An AC load in our context refers to incandescent lamps that can use an alternating current
(AC) power supply.
Figure 7: AC load
4.1.3- MSP430FR5969
In our case we are using a family of 16 – bit microcontrollers developed by texas instrument
(TI). It has these following characteristics: low power consumption, performance, memory
option, peripheral, clocking option, development ecosystem, low-cost solution, low-energy
accelerator.
Page 10/15
HABA Jules Alexandre PUE 3140 2023-2024
Figure 8: msp430fr5969
Here we are using a lab socket which can provide 110v as a power supply, let’s see it as a
picture.
Page 11/15
HABA Jules Alexandre PUE 3140 2023-2024
Our circuit contain input terminal of the relay connected to the output pin of the
microcontroller, then the output terminal of the relay connected to AC source in series with
AC load.
During our experiment task we be carefully to implement well instruction, after our
implementation we get these images as result.
Page 12/15
HABA Jules Alexandre PUE 3140 2023-2024
Conclusion
This second laboratory work was a challenge focused on two targets. First, we succeeded to
turn on and off DC motor using a MOSFET controlled by a microcontroller MSP430FR5969.
Then, we also succeeded to blink AC load using a relay controlled by also a microcontroller.
These experiences was important task to improve our knowledge and to prepare us to be good
in lab experiment in general.
Page 13/15
References
;-------------------------------------------------------------------------------
; MSP430 Assembler Code Template for use with TI Code Composer Studio
;
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device header file
;-------------------------------------------------------------------------------
.def RESET ; Export program entry-point to
; make it known to linker.
;-------------------------------------------------------------------------------
.text ; Assemble into program memory.
.retain ; Override ELF conditional linking
; and retain current section.
.retainrefs ; And retain any sections that have
; references to current section.
;-------------------------------------------------------------------------------
RESET mov.w #__STACK_END,SP ; Initialize stackpointer
StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL ; Stop watchdog timer
;-------------------------------------------------------------------------------
; Main loop here
;-------------------------------------------------------------------------------
init:
bic.w #LOCKLPM5, &PM5CTL0;
bis.b #BIT0, &P1DIR; set p1.3 as output
main:
xor.b #BIT0, &P1OUT; toggle p1.3
mov.w #0FFFFh, R4; move a word into register 4
again:
dec.w R4; decrement register 4
jnz again; continue decreasing register 4 till 0
jmp main ; jump to main
nop;
;-------------------------------------------------------------------------------
; Stack Pointer definition
;-------------------------------------------------------------------------------
.global __STACK_END
.sect .stack
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".reset" ; MSP430 RESET Vector
.short RESET