Explain the process you used in this lab to arrive at the final design of both the hardware and the software portions to achieve the design objectives.

  1. Using Motors with the Arduino

 

Lab 4a:

 

Procedure:

 

  • Watch the video:

 

  • Construct the breadboard circuit and implement the program presented in the video and Chapter 4 (pp. 65-69) of your textbook to control a DC motor via a distance controller

 

Lab 4b:

 

Procedure:

 

  • Design a circuit and Arduino program that accomplishes the following:

 

    • An IR distance sensor will detect the presence (through waving of a hand)
    • A H-Bridge circuit with 9V battery power will control the direction of the DC motor as described in Chapter 4 (pp. 70-79) of your textbook.
    • When a hand is waved over the IR sensor, the motor moves in one direction (simulating opening a door). There is a 2 second pause, and then the motor moves in the opposite direction (simulating closing the door).
    • The motor stops until another hand is waved over the IR sensor again.
  • Please video record demonstrating the operations of the circuit with a hand motion near the sensor. Show the motion of the motor in both directions along with the pause in between. Take a screenshot of the program and the circuit board.
  • Send your code file (.ino) of the lab completed and operational as well for credit.

 

Analysis/Discussion:

 

  • Explain the process you used in this lab to arrive at the final design of both the hardware and the software portions to achieve the design objectives.
  • What aspects of the data sheets were critical in order to properly interface the Arduino to the H-Bridge and the DC motor?
  • Although not required in this lab, describe how you might expand on this lab to minimize any possible false openings of the door.
  • Submit your answers with your video of your circuit in operation, the code, and any computer screenshots during its operation
Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: