Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode

19066
Mark as Favourite

DC Motor Driver is a L293D based motor driver interface board from ABLab Solutions. The main aim of interfacing DC motor with any microcontroller is to control the direction and speed of a DC motor. But due to high voltage and current requirement of DC motors, it cannot be interfaced directly with microcontrollers. For to interface DC motor with any microcontroller, you need a motor driver. Motor driver is basically a current amplifier which takes a low-current signal from the microcontroller and gives out a proportionally higher current signal which can control and drive a motor. L293D is a dual H-Bridge motor driver IC. With one L293D IC we can interface two DC motors which can be controlled in both clockwise and counter clockwise direction.

In this project, we will learn How to interface a L293D based DC Motor Driver in 5V mode with AVR ATmega16 microcontroller. The 5V mode is used to run a DC motor at constant speed in clockwise and anti-clockwise direction. In 5V mode, 5V is given to two enable pins of L293D. Here, we will use the DC Motor Driver to control the direction of two DC motor mounted on a Robot at constant speed. The ATmega16 microcontroller will provide the necessary signal to the DC Motor Driver to run the robot in forward, left, right, reverse direction and to stop it respectively each for 2 minutes. The below table shows the different directions of DC motor with different signals to DC Motor Driver.

Input 1

Input 2

Direction of DC Motor

0

0

Stop

0

1

Anti-Clockwise

1

0

Clockwise

1

1

Stop

 

Softwares Required

Hardwares Required

Name / Unit Price Quantity Total Price
AVR Trainer Board-100 with ATmega16
Rs. 700.00
1pc
Rs.700.00
AVR USB Programmer
Rs. 350.00
1pc
Rs.350.00
12V, 1A DC SMPS Adaptor
Rs. 130.00
1pc
Rs.130.00
DC Motor Driver
Rs. 200.00
1pc
Rs.200.00
Robot V 4.1
Rs. 330.00
1pc
Rs.330.00
1 to 1 Connector-Female to Female
Rs. 4.00
1pc
Rs.4.00
10 to 10 FRC Female to Female Connector
Rs. 15.00
2pc
Rs.30.00
TOTAL Rs.1744.00

Circuit Diagram

L293D-based-DC-Motor-Driver-Interfacing-with-AVR-ATmega16-Microcontroller-in-5V-Mode-Circuit-Diagram-1024x708

Connection Guide

The step-by-step connection guide for L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode is as follows:

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header of AVR Trainer Board-100 with Input header of DC Motor Driver with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect the 12V pin of PWM & Motor Voltage header of DC Motor Driver with the 12V header of AVR Trainer Board-100 with a 1 to 1 Connector.

    Steps - 3 ( 0f 9 )

  • Connect the Robot connector to the Output header of the DC Motor Driver.

    Steps - 4 ( 0f 9 )

  • Switch off the Mode Switch of DC Motor Driver.

    Steps - 5 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 7 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 9 )

  • Download the L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 9 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header of AVR Trainer Board-100 with Input header of DC Motor Driver with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect the 12V pin of PWM & Motor Voltage header of DC Motor Driver with the 12V header of AVR Trainer Board-100 with a 1 to 1 Connector.

    Steps - 3 ( 0f 9 )

  • Connect the Robot connector to the Output header of the DC Motor Driver.

    Steps - 4 ( 0f 9 )

  • Switch off the Mode Switch of DC Motor Driver.

    Steps - 5 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 7 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 9 )

  • Download the L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 9 )

Downloads

L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode C File
  • 91 downloads
  • 2 Kb
L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode Hex File
  • 70 downloads
  • 1 Kb
L293D based DC Motor Driver Interfacing with ATmega16 in 5V Mode Circuit Diagram
  • 61 downloads
  • 803 Kb

Post a Comment