Code
After wiring, please open the program in the code folder- Lesson 8 L298N Motor Driver and click UPLOAD to upload the program. See Lesson
3 for details about program uploading if there are any errors.
After connection and power-on, two motors rotate clockwise for 2 second at a speed of 200 (PWM value is 200) and then stop for 2 second; two
motors rotate anticlockwise for 2 second at a speed of 100 (PWM value is 100) and then stop for 2second; circulating like this.