Activity: 1.Construct the circuit on the breadboard to testing the stepper motor interface with driver
2. Write the coding for motor and troubleshoot the error during writing the coding
Objective: 1. To ensure the motor is functioning well and can interface with the microcontroller
2. To write the coding for the motor movement using Keil UVision
Procedure :
1. Construct the simple circuit on the bread board
2. Compile the coding and burn it into the AT89S52 chip
The video above shows the testing of the stepper motor with L293D . The movement of motor is back and forth.
Results/analysis:
The motor movement is back and forth because of the wrong leads connections. If the leads between A1, A2,B1 and B2 is wrongly placed, the stepper motor is not move sequence as follow by the coding that has been setup.
Conclusions:
Troubleshoot the coding and check the right leads for A1,A2, B1 and B2
No comments:
Post a Comment