![]() ![]() ![]() The speed is controlled by Push-buttons S2 & S3. Hence, motor rotation direction will change. When SW1 is toggled to open position, OC1A pin will become low, making Q1 & Q4 OFF and OC1B will feed the PWM signal to Q3 & Q2, resulting in the change in the direction of current flow through motor. The OC1B pin will remain low keeping the Q3 & Q2 in OFF condition. When switch SW1 is closed, OC1A channel is active which will feed the PWM signal to Q1 & Q4 MOSFETs. ![]() The schematic is geiven here (click on the image to enlarge): 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. PWM waveforms are fed to MOSFET (RFD3055) H-bridge. The ATmega8 is having three PWM channels, out of which two are used here. Here is a very simple project of controlling a small DC-motor (taken from an old personal cassette player) with ATmega8. PWM Motor Driver with MOSFET H-Bridge and AVR ATmega8 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |