![]() ![]() Here’s the Arduino sketch for this project: const int inputPin1 = 10 // Pin 10 of L293D ICĬonst int inputPin2 = 9 // Pin 9 of L293D ICĬonst int ledPin2 = 12 // pin 12 for led 2 Ensure all the Ground pins are properly grounded. Attach LEDs D1 and D2 to the digital Arduino PIN 12 and PIN 7, respectively, using 220-ohm resistors.Link the input pins (IN1 and IN2) to any Digital pins on the Arduino board (e.g., PIN 9 and PIN 10) to control the motor’s direction.Connect the output pins (OUT1 and OUT2) to the DC motor leads.Connect the Enable pins (EN1&EN2) to VSS (+5V) and VS to provide the necessary voltage for the IC and motors.PIN 16: VSS (Voltage at which you want to drive your motor)įor this project, you’ll need the following components:.L293D IC is a 16 pin IC the function of various pins is as follows. Motor driver take the input signals from microcontroller and generate corresponding output for motor. The arduino microcontroller cannot give sufficient current to drive the DC motors, they need external supply to drive the motors, so driver IC play role in between motor and microcontroller. L293D is a 16 pin IC having two enables pins which should always be remain high to enable both the H-bridges. L293D IC is a current attractive IC as the output from the sensor is not able to drive motors itself so L293D is used for this purpose. One H-bridge is capable to drive a dc motor in bidirectional. L293D IC is a dual H-bridge motor driver IC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |