TRAIN YOURSELF IN ELECTRONICS
In this Project, we will learn about L298N Motor Driver and also about interfacing DC Motor with 8051(89S52) Microcontroller with the help of L298N. When we are talking the controlling the robot, the first things come into the mind is controlling DC motors. Interfacing DC Motor to the Microcontroller is very important concept in Robotic Applications. By interfacing DC Motor to the Microcontroller, we can do many things like controlling the direction of motor, controlling the speed of motor. This project tells about that how to control DC Motor using 89S52.
After loading the Program in the Microcontroller the motor will not start turning until the buttons are not clicked. According to my work, When I click the switch 1, the motor will start in clockwise direction. When I click the switch 2, the motor will start inAnti-clockwise direction. When I click the switch 3, the motor will stop.
Code (Reference by www.electronicshub.org)