Skip to main content

DC motor with L298N driver by ATmega16A

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

Popular posts from this blog

Star Delta Starter with Arduino Nano

This project about star delta connection for a three phase motor. I did'n have three phase induction motor so I used three signal lamp instead. In star delta connection first, star connection actives and then after a while delta connection will active. The time between star and delta connection depends on how powerful your motor is. In this project it is possible to change the time from 0 second to 100 seconds by potentiometer connected to A0. I used Arduino Nano instead of any industrial PLC. The outputs of the Arduino is connected to the relay board and then it is connected to contactors. Contactor is a devise that can connect three phase voltage to an induction motor. There is a video of how this circuit works. Download link: https://drive.google.com/open?id=1rkaE7WTPg93gEQ8l0ehYUHintUx-WcQG

Switch on and off a LED with AVR ATmega16

This project is about turning on and off one led by ATmega16 AVR microcontroller. One push button is used for turning LED on and one is used for turning it off. There is a simulation in Proteus.   Download link  

Single phase half-wave diode rectifiers

Half-wave rectifier with resistive load: Half-wave rectifier with R-L load: Half-wave rectifier with freewheeling diode: Half-wave rectifier with capacitor filter: Download link: https://drive.google.com/open?id=1609_GDuzLA2BWE0a7nPnaERC9rhMrg8N