DC motor interfacing using AT89C51RD2
SIMULATOR: PROTEUS 8.0 SOFTWARE: KEIL 4.0 CIRCUIT DIAGRAM: PIN DESCRIPTION of L293D: VSS and VS: +5v to +9v GND: GND EN1: Enable pin of motor 1 EN2: Enable pin of motor 2 IN1 and IN2: Input pin of motor 1 IN3 and IN4: Input pin of motor 2 OUT1 and OUT2: Output pin of motor 1 OUT3 and OUT4: Output pin of motor 2 CIRCUIT DESCRIPTION: EN1 and EN2 are the enable pins of dc motor 1 and dc motor 2 respectively. Both the enable pins must be connected to VCC to run the dc motors. IN1and IN2 pins are connected to p2.0 and p2.1 respectively.IN3 and IN4 pins are connected to p2.3 and p2.4 respectively.OUT1 and OUT2 pins are connected to dc motor1.OUT3 and OUT4 pins are connected to dc motor2. Switch 1 and Switch 2 are connected in pull-up arrangement to port1.0 and port 1.5 respectively. WORKING: In this project, I have interfaced two dc motors using the AT89c51RD2 controller. Motor driver L293D is used to drive both the dc motors. Whenever switch1 is pressed, dc mot