Question: Write an arduino program for two motors with H - bridge ( L 2 9 8 N ) in this program we use ( Serial

Write an arduino program for two motors with H-bridge(L298N)
in this program we use (Serial.printIn) like this:
1-press 1 in the monitor the motors work forward for some time and stop
2-press 2 in the monitor the motors work backward for some time and stop
3-press 3 in the monitor the motors turn right
4-press 4 in the monitor the motors turn left
5-press 5 in the monitor the motors turn right with the increase of speed
6-press 6 in the monitor the motors turn right with the decreasing speed
7-press 7 in the monitor the motors turn left with increasing speed
8- press 8 in the monitor the motors turn left with decreasing speed
9- press 9 the motors stop.
Show the output for this program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!