Please answer this question. I have also added "Lab 5 To-do Test 1" below.  //LAB5 To-do TEST1: Change this code to implement the behavior described in the prelab section "Programming the Stepper Motor"     //Enable this code to test the stepper motor separately   Serial.println("Turning clockwise"); //output message to serial monitor     steppermotor.setSpeed(60); //set speed to make 20 rotations per minute (each rotation takes 2 seconds)     steppermotor.step(300); //rotate clockwise by 300 steps (5 revolutions since STEPS is 60    //END TEST1

Electricity for Refrigeration, Heating, and Air Conditioning (MindTap Course List)
10th Edition
ISBN:9781337399128
Author:Russell E. Smith
Publisher:Russell E. Smith
Chapter13: Heating Control Devices
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question

Please answer this question. I have also added "Lab 5 To-do Test 1" below. 

//LAB5 To-do TEST1: Change this code to implement the behavior described in the prelab section "Programming the Stepper Motor"
    //Enable this code to test the stepper motor separately
  Serial.println("Turning clockwise"); //output message to serial monitor
    steppermotor.setSpeed(60); //set speed to make 20 rotations per minute (each rotation takes 2 seconds)
    steppermotor.step(300); //rotate clockwise by 300 steps (5 revolutions since STEPS is 60
   //END TEST1
Prelab item #1:
Locate the code in
Modify the current code in this section and create a test code so that the motor behaves in the following
ecen100lab_remote_stepper.ino
file labeled "LAB5 To-do TEST1".
manner:
●
●
●
●
●
●
Set the speed to faster than currently specified (i.e. faster than 30 revolutions per minute)
Rotate the shaft for 3 full revolutions counter clockwise.
Output to the Serial Monitor the message "Done counter clockwising!".
Wait for 3 seconds.
Set the speed to slower than currently specified (i.e. slower than 30 revolutions per minute)
Rotate the shaft 5 full revolutions clockwise.
Output to the Serial Monitor the message "Done clockwising!".
Wait for 2 seconds.
Output to the Serial Monitor the message "And again!”.
The motor movement repeats these steps until terminated (should be automatically done since this is in
the loop() portion of the code).
Make your modifications to the ecen100lab_remote_stepper.ino file and also copy the code in
the box below:
Transcribed Image Text:Prelab item #1: Locate the code in Modify the current code in this section and create a test code so that the motor behaves in the following ecen100lab_remote_stepper.ino file labeled "LAB5 To-do TEST1". manner: ● ● ● ● ● ● Set the speed to faster than currently specified (i.e. faster than 30 revolutions per minute) Rotate the shaft for 3 full revolutions counter clockwise. Output to the Serial Monitor the message "Done counter clockwising!". Wait for 3 seconds. Set the speed to slower than currently specified (i.e. slower than 30 revolutions per minute) Rotate the shaft 5 full revolutions clockwise. Output to the Serial Monitor the message "Done clockwising!". Wait for 2 seconds. Output to the Serial Monitor the message "And again!”. The motor movement repeats these steps until terminated (should be automatically done since this is in the loop() portion of the code). Make your modifications to the ecen100lab_remote_stepper.ino file and also copy the code in the box below:
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Proportional, Integral, Derivative Controllers and their Combinations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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