0% found this document useful (0 votes)
68 views5 pages

Condition V (V or MV) V (V or MV) Before Pressing The Switch 9 V 0 V While Pressing The Switch 42.7 MV 5 V

This document describes an activity involving controlling DC motor actuators using an Arduino board. It discusses two procedures: 1) using an NMOSFET transistor and switch button to power and control a motor, and 2) using an L293D motor driver IC to control speed and direction of a motor using a potentiometer and button. Supplementary activities involve using only an MOSFET to control motor speed, and modifying the code to add two speed modes using one button with the L293D. The conclusion discusses learning about MOSFET and motor driver circuit operation and coding's role in control.

Uploaded by

Gong Bo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views5 pages

Condition V (V or MV) V (V or MV) Before Pressing The Switch 9 V 0 V While Pressing The Switch 42.7 MV 5 V

This document describes an activity involving controlling DC motor actuators using an Arduino board. It discusses two procedures: 1) using an NMOSFET transistor and switch button to power and control a motor, and 2) using an L293D motor driver IC to control speed and direction of a motor using a potentiometer and button. Supplementary activities involve using only an MOSFET to control motor speed, and modifying the code to add two speed modes using one button with the L293D. The conclusion discusses learning about MOSFET and motor driver circuit operation and coding's role in control.

Uploaded by

Gong Bo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Activity No.

5
Controlling DC Motor Actuators
Course Code: CPE014 Program: BSCPE
Course Title: Embedded Systems Date Performed: 04 / 27 / 21
Section: CPE22S4 Date Submitted: 04 / 27 / 21
Name: Espela, Emerson R. Instructor: Engr. Cris G. Hate

Using the LDR and Plotting Light Data

1.Implement the circuit as shown in the Breadboard below:


2.Open the Arduino IDE, and copy the code as shown below:
3.Upload the code to your Arduino Board. Observe the output.

Figure 1.1

4.Measure the VDS and VGS of the MOSFET while the tactile switch is not pressed and measure again
while the tactile switch is pressed.

Condition VDS(V or mV) VGS(V or mV)

Before pressing the switch 9V 0V

While pressing the switch 42.7 mV 5V


Table 1.1

Link: https://www.tinkercad.com/things/fsmp2Lv30mt-using-the-ldr-and-plotting-light-data
Using the L293D IC

1.Wire the circuit shown (Note: Look at the pin connections carefully before you connect and power
the circuit)
2.On the Arduino IDE, type and upload the program below:
3. Upload the code to your Arduino Board. Observe the output. Explain the process of the code used
to control the L293D.

Figure 2.1

Link: https://www.tinkercad.com/things/fw5p5RD0KL5-using-the-l293d-ic

DATA ANALYSIS:
In the first procedure, I used the NMOSFET as the transistor, its purpose is mainly to power up the motor using a
switch button. As the result after simulating it, I got 17845 rpm at constant as I press the button then it goes
back to 0 after pressing. In table 1.1, I think that in VDS, it refers to the voltage that the battery source supplies
then VGS is the voltage that came from the Arduino. Both voltages are being held at the MOSFET whether the
button is pressed. The 2nd procedure on the other hand is more organized. I used a motor driver that acts as an
interface between the motors and the control circuits. In figure 2.1, I was able to change the speed and direction
of rotation of the motor with the presence of potentiometer and another button unlike on figure 1.1 which is
unidirectional and have a fixed rotation speed of the motor. The second pin and second to the last pin of the
L293D used to control the direction of the rotation of the motor. Based on the code whenever you press the
directionSwitchState button it interchanges the pins 2 or 3 to change the direction of rotation. The pin 1 of the
motor driver w/c is connected to pin 9 controls the on/off of the motor then the potentiometer
dictates the speed which is connected as analog to the pin 1 as the motorspeed.
Supplementary Activity:
1. Using the MOSFET transistor only, implement the circuit and code that would control the
speed of the Motor.
link: https://www.tinkercad.com/things/e5nw0uAahv5-act-5-supplementary-1

Code:
2. Using the L293D, modify the given code and circuit (remove the potentiometer) so that the
motor would be able to support two modes of modulated speed using one button only.
Link: https://www.tinkercad.com/things/4b9p0GRLjUe-act-5-supplementary-2

Code:
Conclusion
Upon doing this activity, I’ve learned about how MOSFET and Motor Driver works in a
circuit and how they can affect to the functioning of the motor. I’m also able to control the
motor without using an IC on supplementary activity 1. I realized that coding is also a critical
part for making this circuit to work. There are many useful applications of Dc motors in the
industry like on elevators, electric trains etc. and using DC motors might be a fundamental
part of our project as an engineering student in the near future, that’s why knowing the
basics about them and how to properly operate them would be a step forward for me as a
student.

You might also like