Question: Answer the following the questions based on the code snippet below; vold loop ( I ) ( U . Set notor a speed asd direction
Answer the following the questions based on the code snippet below;
vold loop I
U Set notor a speed asd direction
ansloghriteend; Speed control
digitaitrite inl Higin:
diqcaXWetten LCW;
et notor B speed and direction
analoghirice lens, ; speed control
digivalivitee n Ha;
a Create a variable called motorSpeed that will store the speed of the dc motors. Rtwrite the code ariable is substituted for the value and the motors are spinning in the opposite directions.
b Create a second variable motorpeed Using motorSpeed and motorSpeed modify the code so that the motor spinning at twice the speed of motor in the same direction.
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
