I am connecting my Arduino Uno R3 board to an L293D Motor Driver and an HC-SR04 Ultrasonic Sensor. The L293D Motor Driver should move the DC Motors at a PWM speed of 80. Every 8 seconds, it should take a 2-second pause at a PWM speed of 0. While the L293D Motor Driver moves the DC Motors at a PWM speed of 80, if the HC-SR04 Ultrasonic Sensor senses an object at most 10 centimeters away, the L293D Motor Driver should change its PWM speed to 20 until the object leaves. What is the Arduino IDE code?

Power System Analysis and Design (MindTap Course List)
6th Edition
ISBN:9781305632134
Author:J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Publisher:J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Chapter12: Power System Controls
Section: Chapter Questions
Problem 12.4P
icon
Related questions
Question

I am connecting my Arduino Uno R3 board to an L293D Motor Driver and an HC-SR04 Ultrasonic Sensor. The L293D Motor Driver should move the DC Motors at a PWM speed of 80. Every 8 seconds, it should take a 2-second pause at a PWM speed of 0. While the L293D Motor Driver moves the DC Motors at a PWM speed of 80, if the HC-SR04 Ultrasonic Sensor senses an object at most 10 centimeters away, the L293D Motor Driver should change its PWM speed to 20 until the object leaves. What is the Arduino IDE code?

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Power System Analysis and Design (MindTap Course …
Power System Analysis and Design (MindTap Course …
Electrical Engineering
ISBN:
9781305632134
Author:
J. Duncan Glover, Thomas Overbye, Mulukutla S. Sarma
Publisher:
Cengage Learning
Electricity for Refrigeration, Heating, and Air C…
Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L