L298 DC Motor Control

Project Info
Author: Chris
Difficulty: Easy-Medium
Time Invested: 2 Hours

Prerequisites
  • PIC Microcontroller
  • DC Motor Control


  • Take a look at the above
    tutorials before continuing
    to read this tutorial.
               DC Motor Control has previously been covered by PyroElectro, however that tutorial used a somewhat simpler and less advanced (in some ways) motor controller. The LMD18245 was introduced in that tutorial as a motor controller.
               This tutorial will used a more standard motor driver; the L298, specifically the L298HN. This chip is much more widely used and adopted in applications. The main difference between the chips is that the L298 will require two PWM inputs inorder to drive the motor fast, slow, forwards or backwards.

    The 12v DC Motor


    The L298 Motor Driver

    Purpose & Overview of this project
               The purpose of this project is to control one 12v dc motor using the L298 (or L298HN) motor driver using a PIC microcontroller. The software developed should be able to control motor speed and direction without any issue.

    » Next Page »