Question: Write an arduino program for two motors using H - bridge 1 2 9 8 n ( using two enable pins ) for direction and

Write an arduino program for two motors using H - bridge 1298n ( using two enable pins ) for direction and speed. In this code the motor ( asumming that the motor is Car), this car must work like that:1. when we press 1 in the keyboard the car goes forward.2. when we press 2 in the keyboard the car goes backward3. When we preess 3 in the keyboard the car goes right4. when we press 4 in the keyboard the car goes left.5. when we press 5 in the keyboard the car goes right with incresing speed.6. when we press 6 in the keyboard the car goes right wirh decrising speed.7. When we press 7 in the keyboard the car goes left with increasing speed.8. when we press 8 in the keyboard the car goes right with the decreasing speed.9. When we press 9 in the keyboard the car stop#using Serial.printIn# #using parselnt in void loop#

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!