EasyManua.ls Logo

LAFVIN Obstacle Avoidance Smart Car Kit - L298 N Motor Driver Code Example

LAFVIN Obstacle Avoidance Smart Car Kit
80 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
69/78
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.