Stepper Motor Control Circuit L298

49 comments

Simple PWM DC motor control using MOSFET H Bridge with AVR ATmega. Hi friends,here is a very simple project of controlling a small DC motor taken from an old personal cassette player with ATmega. The ATmega. 8 is having three PWM channels, out of which two are used here. PWM waveforms are fed to MOSFET RFD3. H bridge. Here, direction is controlled using a two position toggle switch and speed of the motor is controlled by two push buttons, one for increasing the speed and other for reducing. The schematic is geiven here click on the image to enlarge When switch SW1 is closed, OC1. A channel is active which will feed the PWM signal to Q1 Q4 MOSFETs. The OC1. B pin will remain low keeping the Q3 Q2 in OFF condition. Ms-7387 Vga Drivers on this page. When SW1 is toggled to open position, OC1. A pin will become low, making Q1 Q4 OFF and OC1. B will feed the PWM signal to Q3 Q2, resulting in the change in the direction of current flow hrough motor. Hence, motor rotation direction will change. Zv0OyHfJDWg.jpg' alt='Stepper Motor Control Circuit L298' title='Stepper Motor Control Circuit L298' />The speed is controlled by Push buttons S2 S3. Pressing S2 will increase the speed in fixed steps. Similarly, pressing S3 will reduce the speed in fixed steps. The closer look to the motor and the circuit Here on the bread board, Ive used two push buttons but the direction control switch is replaced by a small wire which was connected to ground or kept open for changing the direction since I was not having the toggle switch in stock at the moment. Cache-2910106043_cc1b257185.jpg' alt='Stepper Motor Control Circuit L298' title='Stepper Motor Control Circuit L298' />The bread board also includes 6 pin In System Programming connector which is not shown in the schematic. The In. System. Programming ISP connector is shown in my earlier posts, hence omitted here But, if you are new to ISP, refer to my post DIY AVR Programmers to make one yourselfThe schematic and code for this PWM motor control can be downloaded from here Schematic Code on Google Docs. Source code in Code. Vision format C fileDownload datasheet RFD3. Thanks ccddharmanitech. New Headway Academic Skills Level 3 Pdf on this page. H6O8t.jpg' alt='Stepper Motor Control Circuit L298+l297' title='Stepper Motor Control Circuit L298+l297' />Stepper Motor Control Circuit L298The LN298 is a high voltage, high current, dual fullbridge motor driver designed to accept standard TTL logic levels and drive inductive loads such as rel. A stepper motor controller with driver circuit is explained in detail with a schematic.