Question: In C Arduino Please Q4) Create an Arduino program that uses enum to create 3 states and does the following in the states respectively: State
In C Arduino Please
Q4) Create an Arduino program that uses enum to create 3 states and does the following in
the states respectively:
State 1 - Starts a DC motor moving forward (this action should not stop)
State 2 - Waits for either your IR or Ultrasonic sensor to register an object within 10 centimeters.
State 3 - Turns the DC motor backwards for 1 second.
The program should run through the states in a repeating loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
