You are on page 1of 7

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.

This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
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 V or mV V or mV
Before press 9V 0V
While pressing 42.7 V 5V

Using the L293D IC

1. Wire the circuit shown (Note: Look at the pin connections carefully before you connect and power the
circuit)

This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
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

This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
CONCLUSION:

When the switch is pushed, the motor runs. The voltage and rpm changes when the button is pressed,
and the rpm and voltage are directly proportional to each other. The 2nd procedure is the inverse of the
1st one, with the potentiometer controlling the rpm of the motor.

1. Using the MOSFET transistor only, implement the circuit and code that would control the speed of the
Motor.

This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
https://www.tinkercad.com/things/9YdDij2bQwX

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.

This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
https://www.tinkercad.com/things/kM0y63uoOih

This study source was downloaded by 100000864127622 from CourseHero.com on 03-20-2023 01:03:16 GMT -05:00

https://www.coursehero.com/file/93491533/Activity-5pdf/
Powered by TCPDF (www.tcpdf.org)

You might also like