This post has more to do about the microcontroller and its programs.
Here I will discuss how to drive the movement of a dc motor with the input of the microcontroller AT89S52 or ATMega? If we directly connect the microcontroller to the DC motor, the DC motor will not be able to move, it caused the output of the microcontroller has a low current rate of about mA. So, we need another component that can strengthen the output of the microcontroller. L298 is a simple DC motor driver is most appropriate to be used as a solution to this problem, because this IC can pass currents up to 4A and the voltage to 46 volts.
L298 is a dual full-bridge driver, said it's because it has two enable inputs, two pairs of input and two output pairs. We can see in the picture below:
Pins 5 and 7 is the first input pair, pins 2 and 3 are mining output pairs. To activate this section, enable at pin 6 must be logic hight (1), we can do this by programming the microcontroller and then connect it to a DC motor driver. For giving the source voltage to operate DC motors found on pin 4, this pin can be bypassed with a voltage 46 volts and 4 amperes current. When we input logic 1 and 0 at each pins 5 and 7 then the output is also logic 1 and 0 in each of the pins 2 and 3. Well, by changing the logical substitute for diver then entered into a dc motor movement will also change.
see alse DC motor control, light detection with comparator circuit.
0 comments:
Post a Comment