You are on page 1of 9

TECHNOLOGICAL INSTITUTE OF THE

PHILIPPINES COMPUTER
ENGINEERING DEPARTMENT Quezon
City

Activity Manual

Embedded Systems

Engr. Jeffrey R. Perpuse

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
Course Code: CPE014
Course Title: Embedded Systems
Section:
Members:

1. Objective(s):
This activity aims to introduce the concept of DC Motor Control using a microcontroller.
2. Intended Learning Outcomes (ILOs):
After performing the laboratory activity, the students should be able to:
2.1 Implement the circuit and write the program for light and temperature sensors
2.2 Graph/Plot the data being read from the sensors
3. Discussion:
Actuators convert electric signals to another form of energy.

Some of the different types of actuators you would encounter or already have
encountered:
• Light Actuators
• Sound Actuators
• Force, Displacement, and Motion Actuators
• Heat Actuators

Motors are also the driving force behind lots of useful products such as water pumps,
linear actuators, and robotics systems. DC Motors are extensively used in precision
position-control systems and other electronic systems, particularly in low-power
applications. This activity will focus on DC motor control using Transistors and an
Integrated Motor Driver Circuit.
4. Materials and Equipment:

Arduino UNO Board with USB Cable


Desktop Computer with Arduino IDE
IRF520 (N-Channel MOSFET)
L293D (Motor Driver IC)
Brushed DC Motor
Breadboard
Connecting Wires

5. Procedure:
Using the LDR and Plotting Light Data
1. Implement the circuit as shown in the Breadboard below:

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
2. Open the Arduino IDE, and copy the code as shown below:

3. Upload the code to your Arduino Board. Observe the output.


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
Before pressing the switch
While pressing
This study source was downloaded thefrom
by 100000863779161 switch
CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
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:

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
3. Upload the code to your Arduino Board. Observe the output. Explain the
process of the code used to control the L293D.

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
6. Data and Code Analysis:

7. Supplement
ary Activity: Tasks
1. Using the MOSFET transistor only, implement the circuit and code that
would control the speed of the Motor.
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.

Write your code here:

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
Write your code here:

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
8. Conclusion:

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
9. Assessment Rubric:

This study source was downloaded by 100000863779161 from CourseHero.com on 03-21-2023 08:18:36 GMT -05:00

https://www.coursehero.com/file/94154303/CPE-014-Activity-5-1docx/
Powered by TCPDF (www.tcpdf.org)

You might also like