This project is about connecting a DC motor to ATmega16A. I used a variable resistor connected to A7 as an analog reference for controlling motor speed. PORTD.7 is used as a PWM port and it is connected to L298N driver ENABLE pin. We can not connect the motor directly to our micro controller because micro controller's ports are not strong enough to provide that amount of current for motor. I wrote my codes in Arduino IDE, that means I did not use codevision and do all my programming in Arduino IDE and then exported HEX file and transfered it into ATmega16A. There is a simulation in Proteus.
Download link:
Comments
Post a Comment